grabmail
03-29-2007, 09:55 AM
i know how to do it at script level but how to do it at apache level?
![]() | View Full Version : how to block country from my site at Apache level? grabmail 03-29-2007, 09:55 AM i know how to do it at script level but how to do it at apache level? The Prohacker 03-29-2007, 01:14 PM Mod_GeoIP from MaxMind can do that: http://www.maxmind.com/app/mod_geoip I haven't ever used it since I've never found the need to block an entire country from viewing my sites. YMMV! zacharooni 03-29-2007, 09:36 PM Put this in .htaccess Order Allow,Deny Deny from .ca Deny from .mx Allow from all Replace canada or mexico with another unimportant country of your choice :) grabmail 03-30-2007, 03:14 AM Wow, that's pure brilliance! Thanks |