Block Visitors Country

Posted on Monday 11th June 2007 at 01:58 PM
gbt91
gbt91's Avatar
Hi Guys,
I've been looking around for this script..
it consist on redirecting visitor that come from a determinate country so they cant access to my site..
too spam ;S
Can someone help me out?
test it first
That's Just The Drill
Posted on Monday 11th June 2007 at 11:37 PM
ShadowMage
ShadowMage's Avatar
:S dunno how to do that i'll look into it for ya
failure i sense
Posted on Tuesday 12th June 2007 at 01:32 AM
Diablosblizz
Diablosblizz's Avatar
I googled, and it could be actually very simple if you knew how to get the users country.

It would be something like:

<?php
$thevar = $w.etogetthecountry

if($thevar == 'Canada'){
echo "YOUR ST00PID get out!";
} else {
echo "Your Cool you can stay!";
}
?>

:S
Posted on Tuesday 12th June 2007 at 05:47 AM
SkillMaster
SkillMaster's Avatar
the $w.etogetthecountry is the hard part.
Posted on Tuesday 12th June 2007 at 11:08 AM
gbt91
gbt91's Avatar
actually i've found out..
just add to you .htaccess
deny from .(country)
i add the tut check it ouk xD
That's Just The Drill
Posted on Tuesday 12th June 2007 at 08:02 PM
SkillMaster
SkillMaster's Avatar
nice work
Login or register to respond to this forum topic.