2011-05-07, 01:21 AM
2011-05-07, 01:24 AM
LoL, are you talking about the "скачать" *(download) spam? I hate it too.
2011-05-07, 01:31 AM
nope. i'm talking about all of the members to my forum being named sergai and vladimir and spamming the crap out of my forum. when i run the IP's, it always says "Russian Federation".
my forum is targetted exclusively at a u.s.a. audience. i need to ban the rest of earth.
any ideass?
my forum is targetted exclusively at a u.s.a. audience. i need to ban the rest of earth.
any ideass?
2011-05-07, 01:34 AM
Do you have mod_geoip installed? If so it's really simple to do.
2011-05-07, 01:37 AM
tell me more... lol
2011-05-07, 01:43 AM
Add this to your .htaccess file:
This is the code I use to whitelist certain countries. Using the script above only people with IPs from the US, Canada, United Kingdom/Great Britain, and Australia can access the site. All others are shown an error 403 (Forbidden).
I wrote a whole blog entry on this last year if you want to read more: http://jmd.cc/servers/whitelistblacklist...y-country/
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE AU AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE GB AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE UK AllowCountry
Deny from all
Allow from env=AllowCountry
<Files 403.shtml>
order allow,deny
allow from all
</Files>
This is the code I use to whitelist certain countries. Using the script above only people with IPs from the US, Canada, United Kingdom/Great Britain, and Australia can access the site. All others are shown an error 403 (Forbidden).
I wrote a whole blog entry on this last year if you want to read more: http://jmd.cc/servers/whitelistblacklist...y-country/
2011-05-07, 01:49 AM
i shall read it!
but what about ip spoofing and proxies?
do you have a method for that as well?
but what about ip spoofing and proxies?
do you have a method for that as well?
2011-05-07, 01:53 AM
Nope, most of the bots don't use them. There are methods for preventing proxies but I've never had to worry about it but I can provide you some more information on it if you want.
2011-05-07, 01:55 AM
i was reading your article. seems like a good idea to deal with unwanted traffic. other than a 403, i like the idea of redirecting to something useless. lol. that way it's trickier and they may not realize they've even been blocked.
i don't know how putin would feel about this though.
i don't know how putin would feel about this though.
2011-05-07, 01:57 AM
LoL yeah, I did that once to redirect certain countries to a special YTMND page.
Redirect them to this: http://deadspammer.ytmnd.com/
Redirect them to this: http://deadspammer.ytmnd.com/