Forum Moderators: phranque
Every spam bot that continually hits my message board is from the RIPE network. EVERY ONE. I have implemented anti-spam measures but they still are on my site, using bandwidth.
I have no need for traffic outside of North America. How can I ban the whole entire RIPE Network? If there is some collateral banning of people outside of North America not associated with the RIPE Network, that is fine. It will be worth it, especially since their traffic wouldn't help me anyway.
So.. how can I do this?
They are used by many US citizens living, working, vacationing or stationed abroad.
I have such a small niche that this does not matter to me. I do not ship my products overseas to Europe.
The world's leading producer of spam and viruses is reportedly the USA.
That may be true, but for the purposes of my message board, all the troubling activity is coming from the RIPE network.
So.. how can I do this?
1) go to a website which offers downloads of the database for IP ranges by country.
2) do this for RIPE, APNIC, LACNIC, AFRIC
3) then merge the ranges into a systematic-numerical order
4) create the Rewrites or denys
5) add them to your htaccess
6) You should also deny refers based on the two-letter country code before or after the domain name.
Please note; You'll find the entire process quite time consuning (into the weeks for limited restriction 70-80%)
Additionally, you'll need to deny all the tools (translators and "others") that many of the major SE's are offering.
What is the format for banning a whole range? I know how to ban one IP, but not a range.
#example 114-126 (denies Class A's)
RewriteCond %{REMOTE_ADDR} ^(11[4-9]¦12[0-6])\. [OR]
Please note; the forum breaks the pipe character and requires correction before use.
Do not use [OR] on last line of mutiple conditions.
Do not use [OR] on single conditions.