{"id":4004,"date":"2016-11-10T20:23:10","date_gmt":"2016-11-10T20:23:10","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2016\/11\/10\/how-to-filter-emails-for-an-ip-range\/"},"modified":"2023-06-12T10:10:11","modified_gmt":"2023-06-12T14:10:11","slug":"how-to-filter-emails-for-an-ip-range","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/","title":{"rendered":"How to Filter Emails for an IP Range"},"content":{"rendered":"<p>If you need to filter or block multiple IP addresses, it can sometimes be much quicker and more efficient to block an IP range. In this article, we will show you how you can block an entire range of IPs from sending mail to your email addresses using cPanel and regular expressions.<\/p>\n<h2>What is an IP range?<\/h2>\n<p>An IP range is exactly that. It is simply a group of IP addresses between one address and another. For example, many consumer routers will assign IP addresses between 192.168.1.101 and 192.168.1.150. The group of IP addresses between, and including these two addresses, would be an IP range.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_03.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_03.png\" alt=\"cPanel login screen\"><\/a>Log into cPanel\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_67.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_67.png\" alt=\"Email filters icon\"><\/a>Under <em>Email<\/em> choose <strong>Email Filters<\/strong>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 04 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_68.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_68.png\" alt=\"manage filters link\"><\/a>For the example email account choose <strong>Manage Filters<\/strong>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 06 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_69.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_69.png\" alt=\"create a new filter option\"><\/a>Click <strong>Create a New Filter<\/strong>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 07 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_71.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_71.png\" alt=\"new filter settings\"><\/a>Fill in the dropdown fields. For the <em>From<\/em> field, choose <strong>Any header<\/strong>. For the second dropdown, choose <strong>Matches regex<\/strong>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 08 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_72.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_72.png\" alt=\"add rule\"><\/a>Here you will add your rule, which will look similar to this:<br>\n<code>^192\\.168\\.1\\.[0-9]{1,3}$<\/code>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 10 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_74.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_74.png\" alt=\"Actions dropdown\"><\/a>Choose an action for this filter. (You will most likely want to Discard the message, but you can also filter it to a folder.)\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><!-- 11 --><a href=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_73.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/cpanel\/lanternUpdatesMay17\/cmPape_73.png\" alt=\"blue create button\"><\/a>Click <strong>Create<\/strong>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>Well done on completion of this tutorial. You now know how to filter an IP range.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need to filter or block multiple IP addresses, it can sometimes be much quicker and more efficient to block an IP range. In this article, we will show you how you can block an entire range of IPs from sending mail to your email addresses using cPanel and regular expressions. What is an<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4004","post","type-post","status-publish","format-standard","hentry","category-email"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Filter Emails for an IP Range | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Filter Emails for an IP Range | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-10T20:23:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-12T14:10:11+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Filter Emails for an IP Range\",\"datePublished\":\"2016-11-10T20:23:10+00:00\",\"dateModified\":\"2023-06-12T14:10:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\"},\"wordCount\":205,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Email\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\",\"name\":\"How to Filter Emails for an IP Range | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2016-11-10T20:23:10+00:00\",\"dateModified\":\"2023-06-12T14:10:11+00:00\",\"description\":\"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Filter Emails for an IP Range\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Filter Emails for an IP Range | InMotion Hosting","description":"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/","og_locale":"en_US","og_type":"article","og_title":"How to Filter Emails for an IP Range | InMotion Hosting","og_description":"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.","og_url":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2016-11-10T20:23:10+00:00","article_modified_time":"2023-06-12T14:10:11+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Filter Emails for an IP Range","datePublished":"2016-11-10T20:23:10+00:00","dateModified":"2023-06-12T14:10:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/"},"wordCount":205,"commentCount":4,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Email"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/","url":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/","name":"How to Filter Emails for an IP Range | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2016-11-10T20:23:10+00:00","dateModified":"2023-06-12T14:10:11+00:00","description":"In this article, you will learn how to filters email for an IP range. Block unwanted IPs from your email.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/how-to-filter-emails-for-an-ip-range\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Filter Emails for an IP Range"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4004"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4004\/revisions"}],"predecessor-version":[{"id":105100,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4004\/revisions\/105100"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}