Hello how can i redirect bad traffic from iran etc. Any one who can share your .htaccess file? Thanks,
there you go mate
hope it helps
ya, i tried to use block a country, block by ip address, deny access by country but can only block ips no redirect the traffic. How about geoip? Seems that i have to write a small php script for it. So can't redirect people BEFORE they visit the website.
Looks like we need a FAQ sticky for this question..
There are various links to different GeoIP guides in the link Aziz posted to what I posted the other day.. At least one should help you set up a working Geoip redirect.
I don't think so. Wait till they hit your site then redirect them. It shouldn't take too long to set it all up.So can't redirect people BEFORE they visit the website
Hey mates, I'd like to use .htaccess file with GeoIP.dat to redirect bad traffic. But could you tell me what I should do before I put "GeoIPEnable On" in .htaccess file. Or I just got 500 internal server error. THanks.
Do you have mod_geoip installed? http://www.maxmind.com/app/mod_geoip
To be able to access geoip through htaccess you'll need the module mod_geoip loaded in apache. Are you in control of your server or is it shared?
If it's shared you're most likely restricted to just running the pure php module for geoip.
If it's your own server, you can install the GeoIP C Library and the apache module, mod_geoip to beable to use it however you want.
I was going to buy the Maxmind geo database, I thought $50 is not bad, the catch was it costs $12/month for updates, so the purchase would cost $194 with a year of updates, I was thinking woah, I'll pass becuase that would drain my whole paypal account.
Submit new proxies -