Hi everybody, Being in the online gambling industry, I've been forced to "deny" all United States players from access to my website. However, I don't want to use a typical deny US .htaccess script. I want to redirect my US visitors to a special disclaimer page where they accept special TAC and can then move on to other sections of my website. I was thinking of putting something into my .htaccess such as the following, but it doesn't seem to be working (since I'm trying to block myself from access as I'm in the US) Do I need to have an <IfModule> tag around this at all in my .htaccess file? Is there something that I'm missing here that isn't letting this work? Any help would be greatly appreciated. I've been looking for Geo Redirect software too, and none of what is offered out there seems to work. Dan
I've also been advised that this may have an adverse affect on my SEO and be determined as cloaking. I'm not sure what I can do in order to keep my US visitors from seeing the 'illegal' content on my website while allowing non-us visitors to see the 'legal' content on my site. What i mean is that a new law made it illegal for us citizens to make banking transactions to these online gambling sites, but it is perfectly legal for any other non-us citizens. Anybody?
Geo-targetting is not considered illegal cloaking by Google. At least according to Matt Cutts it is not. There are some geo-targeting scripts / databases you can implement in php fairly easily and you can do whatever you want with the visitor. Including just having it pause briefly explaining why they can not access the content and then redirect them to another site.
Well since Matt Cutts works on the Google spam side of things, I'll trust what he has to say. I did find a nice free Geo IP targetter, but it seems that it is not working when I try to import the MySQL file into my new database. I've never really been very good with MySQL and databases before, so I'm not sure where to go from here. I did get the software from http://webnet77.com/scripts/geo-ip/index.html and the database from http://software77.net/cgi-bin/ip-country/geo-ip.pl Could somebody please offer a helping hand? I'm not just at this community to "take" as I do offer many of my own personal suggestions as well, mostly SEO related. Thanks! Dan
Just from glancing at it, your .htaccess looks fine to me - but it does require that you are setting those environment variables appropriately. Or perhaps, the environment variables are returning USA or U.S. which ould not trigger the rewrite. Probably best to check in the support forums for your particular GEOIP apache module.
One easy solution is using a third party provider for making the redirection by county and ever by state, in example www.geobytes.com Otherwise you can go for scripts like these: www.ip2country.net/geo-targeting/geo-targeting.html
I have been using power redirect for a while and it seems that it increased my pagerank It has a free geo database update twice a week. http://www.12scripts.com/scripts.php?scripts.id=2
The appropriate GEOIP module may not be installed on your server, or it may depend on how you have PHP running on Apache.
I want to do a smilar thing. When my site loads I want a message to come up so that users can continue to the main site or see a specific page.
You may also modify the php code... just tell them it's illegal to play if they are from US, and after they press the OK button , just let them play... make a big button like "it must be something wrong, i am not from US, let me play" lol
If you need a Professional Tool to Redirect Visitors by Country, try Country Redirect Pro, a Powerful PHP Geo IP Redirect Script