Blocking access to a site from the US.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
determinedmoth
Forum Commoner
Posts: 33
Joined: Wed Jul 07, 2004 9:13 am

Blocking access to a site from the US.

Post by determinedmoth »

Hi
I've got to find out how by tomorrow morning.. And I've no idea where to start.

The site is UK based. It doesn't matter if the process isn't bullet-proof. I'm googling as I post this, but any pointers would be a great help.

Thanks.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Have you looked into proxy servers?
determinedmoth
Forum Commoner
Posts: 33
Joined: Wed Jul 07, 2004 9:13 am

Post by determinedmoth »

No...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Research GeoCoding

It isn't perfect though, and you may end up blocking legit UK surfers, but it's the most effective solution
determinedmoth
Forum Commoner
Posts: 33
Joined: Wed Jul 07, 2004 9:13 am

Post by determinedmoth »

Thanks all.

In the end I found an IP to country database - like this one: http://www.phptutorial.info/iptocountry/the_script.html

I'm pretty sure it's not perfect, but for now it's working. I'll looking into these other suggestions.
Post Reply