Forum Moderators: phranque
Is anyone blocking entire swaths of the internet, like asia/africa/much of europe, and so on? If so, how does one go about doing so - is there a decent list of IP addresses we can just dump into apache's config?
[webmasterworld.com...]
Is anyone blocking entire swaths of the internet, like asia/africa/much of europe, and so on? If so, how does one go about doing so - is there a decent list of IP addresses we can just dump into apache's config?
It's really NOT that simple!
1) The list of IP's would need conversion to Rewrite Rules.
2) A simple syntax error may result in a 500 taking down your site (s).
I would suggest Rewrite Rules for some targeted Class A's that are primarily outside your market focus.
Then after your assured that these are functioning, proceed slowly to specific sub-Class (Classes B, C & D's) rewrites.
Making sure to test your website (s) for functionality after the implementation of either each and/or series of Rewrites.
The above thread link from encyclo brings up an interesting point. I do sometimes get calls on my site from folks looking for my services, from other areas. Like someone calls from Australia to buy my services for their parents where I am (not Australia). So I need to make sure I don't just block everything.
Still - in reading all these associated threads it seems like no one is popping up and saying "I did this and it worked/didn't work". I guess I have to be guinea pig?
Still - in reading all these associated threads it seems like no one is popping up and saying "I did this and it worked/didn't work". I guess I have to be guinea pig?
No two websites or servers are identical. Same as restaurants, each offers a different cuisine.
As a result, each websmaster must determine individually what is beneficial or detrimental to their own site (s).
AND that eliminates a copy and paste, one size fits all.
[webmasterworld.com...]
Many thanks ti incrediBill for digging out the thread.
Don
We use the free MaxMind ip to location binary database
Their wesbite offers this under GeoLite if anybody is interested.
An active implemetation of the ranges would still require conversion to Rewrites and comparison of ranges to other countries (possibly creating extra work and ranges more focused than necessary) ranges to verify missing ranges.
Although it may seem that I'm attempting to discourage folks from this implementation, my intention is rather, in providing as much caution and detail as possible. (I've had strict limitations for non-North American visiors in place for more than seven years).
there's also a website (also I have NOT checked the accuracies):
block a country
These Ranges require conversion to Rewrites as well.
I've just had my third website defaced this year, and am getting tired of it.
Have you considered plugging up how they are doing this as opposed to banning IP's?
The reasoning is this: any hacker who intends to gain illegal access to a site is going to do it through a compromised IP. There are probably millions of computers in your country that have been infected with malware or viruses and are compromised. So go ahead and ban most of the planet, and discover the problem hasn't gone away. I see this all the time, with attempts from educational institutions and major ISP IP's in the U.S.
Banning troublesome countries that bring no business value is a good idea, don't get me wrong. I just don't think it will solve your problem.
And of course we're plugging the holes. But it's an unpleasant diversion I don't really need when we're as busy as we are right now.
So ultimately, banning many of these countries would get rid of the problem - they don't see me, they don't hack me.
It also fixes a lot of the scraper problem Incredibill brought to light here recently. I'm not pleased with how much of my bandwidth goes to scrapers - it's substantial.