Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - Poland Loves Me
A simple programmers blog
 
# Sunday, December 17, 2006

It seems I have a lot of fans in Poland. 

 

Actually I suspect there are a lot of spammers in Poland who are trying to scrape my site for emails or send comment spam.  UAE & Lithuania also appear to be a problem.  I'd really like to block big chuncks of the planet from getting to my site but I'm not sure this is possible.  Anyone got any idea how to do this?

Sunday, December 17, 2006 8:09:52 AM (New Zealand Daylight Time, UTC+13:00)  #    Comments [4]    | 
Sunday, December 17, 2006 7:57:06 PM (New Zealand Daylight Time, UTC+13:00)
That is pretty easy to do

Set in the global.asax or use a httpmodule to check the originating country through the ip address. Maxmind has got a free service to do this. If the request is from one of the countries you specified in a blacklist file/table you just bypass processing and return a response with a statuscode of 403.
Monday, December 18, 2006 8:36:46 AM (New Zealand Daylight Time, UTC+13:00)
No, but I'd ditch that stats program (Webalizer?), and set Google Analytics up on your site. It would give you a much better idea about which pages etc are getting hit from which country. You'll be amazed at the information you can get back with Analytics.
Monday, December 18, 2006 9:38:57 AM (New Zealand Daylight Time, UTC+13:00)
Thanks Ivan, but I dont want to futz with the dasBlog source. I was hoping to do this globally on the host somehow but I guess I need to ask the vendor about that.
Monday, December 18, 2006 9:39:35 AM (New Zealand Daylight Time, UTC+13:00)
Yes, Conor, I do use Analytics, but I forgot about it for this.
Comments are closed.
Copyright © 2012 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: