|
How
to
Stop Spam Condoning Countries
With Regular Expression Filters in cPanel. Or How To Leverage Foreign Email Servers To Encourage Their Government To Discourage Spam Condoning IPs. Since there is no necessity to continually update the filters it might impart a sense of urgency on the abuse enabling country to clean up their internet providers. On going: Ticket ID: JKM-13297987 and Ticket ID: KAI-13229733 |
![]() Go to LIST. |
* [] hostgator.com [] (web host - opens in a new window.) which uses
* [] esmtp (Exim 4.69) [] email software and
* [] cPanel [] (web site control panel and email filtering software),
* The FL State Consumers Protection laws. (A recent spam seemed to have come from Miami, FL.) File a complaint to the FL. Attorney General . Of course any of the other US states Attorney Generals with jurisdiction could also be contacted.
* The Federal Trade Commission [] FTC [] ( The gov agency responsible for spam control in the USA .)
* The Federal Bureau of Investigation [] FBI [] ( The gov agency responsible for malicious DDoS (Distributed Denial of Service) crimes in the USA .)
Therefore, the goal is to identify the Top Level spamming IPs and its country of registration and then block all of their business enterprises which might generate a small amount of commercial concern to create an incentive to clean up the spammers.
|
Are
There Any Consequences To Blocking The
Offending Domain & Country From My Email Server? The following quote is from the SPAM or UCE web page; specifically, the "complain to" paragraph with my comments & answers in Magenta. Positive Aspects
|
|
Verify
the Locations of the Foreign IPs.
FireFox: highlight
an IP below
without the brackets and click this FF=Geo
IP link to open a map showing
the IP: city and country
of registration.
Internet Explorer: highlight an IP below without the brackets and click this link: IE=Geo-IP . |
| List of Good IPs | List of Bad or Foreign IPs |
| This is the list of IPs that are under USA regulation or are granted exception based on national language, authority or locality. | This list is a personal collection of IPs that have been collected from spam headers over an unknown period of time. |
|
(34ea +/-) [9.0.0.0]KS USA [63.0.0.0] US [64.0.0.0] [65.0.0.0] [66.0.0.0] [67.0.0.0] [68.0.0.0] [69.0.0.0] [70.0.0.0] US [71.0.0.0] [72.0.0.0] [73.0.0.0] [74.0.0.0] [75.0.0.0] US [76.0.0.0] [97.0.0.0] US [99.0.0.0] US [110.0.0.0] AU [130.0.0.0] [140.0.0.0] [160.0.0.0] NY [172.0.0.0] USA [173.0.0.0] Hi ? [174.0.0.0] CA [192.0.0.0]TX USA [204.0.0.0] US [205.0.0.0] US [206.0.0.0] US [207.0.0.0] US [209.0.0.0] US [214.0.0.0] US [215.0.0.0] US [216.0.0.0] US 34 ea. The reason for listing the "Good" IPs here is that a future Reg. Ex. Filter might be designed to Allow only eMail from the "Good" IPs and Trashing all others. However the purpose of this page is to eliminate the "Bad" IPs and to get Reg Ex Filters working in cPanel.. 6/14/11 Quick count of "Good"(34 ea.) vs "Bad" (96 ea.) suggests changing to an Allow filter instead of the Rejection filter. 1/24/11 Pending: move of "[98.0.0.0] US" to "Bad" side b/c of email hijacking and spam from 98.139.91.82 (Yahoo). |
(96 ea +/-) [1.0.0.0] vn [41.0.0.0] [46.0.0.0] [58.0.0.0] [59.0.0.0] [60.0.0.0]Korea [61.0.0.0]DE [62.0.0.0] FOREIGN [77.0.0.0] RU, LT, DE [78.0.0.0] [79.0.0.0] [80.0.0.0] [81.0.0.0] [82.0.0.0] [83.0.0.0] [84.0.0.0] [85.0.0.0] [86.0.0.0]UK [87.0.0.0] [88.0.0.0] [89.0.0.0] 89.0.0.0 Israel [90.0.0.0] [91.0.0.0] [92.0.0.0] [93.0.0.0] [94.0.0.0] [95.0.0.0] [96.0.0.0] [100.0.0.0] [101.0.0.0] [102.0.0.0] [103.0.0.0] [104.0.0.0] [105.0.0.0] [106.0.0.0] [107.0.0.0] [108.0.0.0] [109.0.0.0] [110.0.0.0] [111.0.0.0] [112.0.0.0] [113.0.0.0] [114.0.0.0] [115.0.0.0] [116.0.0.0] [117.0.0.0] [118.0.0.0] [119.0.0.0] [120.0.0.0] [121.0.0.0] [122.0.0.0] [123.0.0.0] [124.0.0.0] [125.0.0.0] [150.0.0.0] [151.59.46.21] [165.0.0.0] [168.0.0.0] [171.0.0.0] [178.0.0.0] [180.0.0.0] [182.0.0.0] [183.0.0.0] [184.0.0.0]=votervoice? amazon? [185.0.0.0] [186.0.0.0] [187.0.0.0] [188.0.0.0] [189.0.0.0] [190.0.0.0] [193.0.0.0] [194.0.0.0] [195.0.0.0] [196.0.0.0] [197.0.0.0] [198.0.0.0] [200.0.0.0] [201.0.0.0.] [202.0.0.0] [210.0.0.0] [211.0.0.0] [212.0.0.0] [213.0.0.0] [217.0.0.0]DE [218.0.0.0] [219.0.0.0] [220.0.0.0]JP [221.0.0.0]China FOREIGN [222.0.0.0] [223.0.0.0] [224.0.0.0] [225.0.0.0] [226.0.0.0] [227.0.0.0] [228.0.0.0] [229.0.0.0] Total "Bad" IPs = 96 ea. 6.17.10 Added Class D+E \\[23[0-9] \\[24[0-9] \\[25[0-5] ; 2.05.11 Added [165.98.179.58] NI, 1.55.41.26 vn , 46.146.84.14 ru , 182.177.183.230 ; 7.2.11 Added [175.193.21.81 cn , [133.154.197.201 jp, [188.143.232.20 ru, 7.4.11 Pending [14.(IN) , [31.(NL) , [39.(ID) ,[42.(AU) , [49.(AU) , [153.(CN) , [81. (Sp) , [176. (DE) , [49.202.178.185 India , 176.65.164.111 DE , |
Reference:
Class Address Ranges Class A - 1.0.0.0 to 126.0.0.0
Class B - 128.0.0.0 to 191.255.0.0
Class C - 192.0.1.0 to 223.255.255.0
Class D* - 224.0.0.0 to 239.255.255.255
Class E* - 240.0.0.0 to 255.255.255.255Class A, Class B, and Class C are the three classes of addresses used on IP networks in common practice.
Class D addresses are reserved for multi cast.
Class E addresses are simply reserved, meaning they should not be used on IP networks (used on a limited basis by some research organizations for experimental purposes).

06.14.10 Added 3 more IPs to "Bad IP" filter.This is the revised filter:
01.14.11 added: to cover IP Classes D and E |\\\\[23[0-9]|\\\\[24[0-9]|\\\\[25[0-5] to above line.
02.05.11 Added [165.98.179.58] NI, 1.55.41.26 vn , 46.146.84.14 ru
07.02.11 Added [175 , [133 , , to filter line below.
Here are the results of a Regular Expression Filter rule that selects only the BAD IPs. [Image # 1. Bad IPs]
1.) The red text indicates that the Reg Ex Filter made a match on all of the IPs listed in the "Test on Text" box. Notice that the Text box input data included both the "Good" and "Bad" IPs but there were no matches on the "Good" IPs since the filter was designed to match only the "Bad" IPs.
2.) In the image note the "Dialect" line where Preg is checked. This means that it is a "Perl regular Expression" compatible tester which is what the cPanel Reg Ex Filter application requires.
Here are the results of a Regular Expression Filter rule that selects only the GOOD IPs.
The red text indicates that the Reg Ex Filter made a match on all of the IPs listed in the "Test on Text" box. Notice that the Text box data included the "Bad" IPs but there were no matches since the filter was designed to match "Good" IPs only. (The reason for listing the "Good" IPs here is that it might be advantageous to design a reverse Reg. Ex. Filter to Allow only eMail from the "Good" IPs and thereby Trashing all others.)

| PAGE
PATH: http://neprimer.com /ePress /articles /2010 /IP-FiltersRegEx.html |