IP addresses are part of every email that is sent to you. These addresses indicate the location from where the email has been sent. They can be used to effectively block emails from coming from that address by making a simple filter within your Cpanel. The following tutorial explains the email IP address, how to find it, and how to create the account filter used to block emails from hitting your email account.
All emails that are delivered come with header information that includes the IP address of their originating server. This information can be used to create a rule that blocks emails from arriving in your mailbox. The header information of an email is not always apparent when you read your emails because it is often hidden from view. You can view email headers by looking at the email source. You can view the email source by using your email client (e.g. Outlook, Thunderbird, Apple Mail, etc.), or by simply saving the email to your desktop and then opening the resulting file with a text editor such as Notepad.
When you are viewing the message source, you can determine the IP by simply looking "receive" and "from". The IP addresses (also called IPv4 addresses) will be in this format: xxx.xxx.xxx.xxx (e.g. 256.256.256.256). In the future, you may see addresses in a new format IPv6, but for now, emails are still using the older format. For information on IPv6, go to Internet Protocol version 6.
The following steps explain how to add the account-level filter using the IP address information that you obtained from the email header:
If you wanted to add a range of IP addresses, you could do this in Step 6. You can also add further conditions by simply clicking on the "+" sign to the right of the RULE. Bear in mind though that you would need to make sure that the connecting article says "OR" in order for any ONE rule to apply to the email you're trying to block. If you set it to "AND" (which can be selected as per the screenshot at right), then BOTH rules must be true before the ACTION (set to Discard Message) will take place. If you're unsure of how to use multiple rules, then keep it simple and leave it at one rule.
n/a Points
|
2014-09-17 8:20 pm
How do you "write" the rule for "add a range of IP addresses" |
Staff 2,342 Points
|
2014-09-17 8:32 pm
You can indeed do so using regular expressions. I have located a 3rd party blog post that describes adding IP address ranges using regular expressions.
|
n/a Points
|
2015-09-07 4:05 pm
this article seems to have moved. i wanted to block all emails from a range of IP addresses (starting with 107.179.2.) so I just selected Any header then Contains, then i typed the start of the IP address: 107.179.2. it seems to work now, im so glad, spam is a nightmare |
n/a Points
|
2015-09-07 4:06 pm
By the waym in the CPanel, Account-Level Filtering doesnt exist anymore, please update this article |
Staff 12,339 Points
|
2015-09-08 7:50 pm
Hello tuan,
Thank you for contacting us. I confirmed Account-Level Filtering is still available in cPanel. If you are not seeing it, I recommend contacting Live Support so they can review your cPanel. Thank you, John-Paul |
Staff 153 Points
|
2020-02-14 10:38 pm
For that, you are going to want to create a blacklist rule in either Spam Assassin or Spam Experts. Please note that while most advice is going to be about blacklisting a specific domain, there are ways to set the rules up that will blacklist any address ending in .host.
|
1. | What is Spam? |
2. | Using SpamCop to stop Spam emails |
3. | Restrict IP addresses from sending you email |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!