Zen Cart Logo
Forums / General Questions / Ban country

Ban country

Locked

Views: 1,241

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Nov 2007, 7:43 PM
#1
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Ban country

Hi,

I want to ban a country from viewing my client's site. All of her products were ripped off in Morocco so we'd like to ban that IP range. Someone a while ago (March 06) posted this:


I can give you my ban system. It's ban by ip range, country, user-agent. PM me if you need it.


Any discrimination worse!!! I live in .ru, but I'am not a spammer!!!
Good luck,
Andrew

...but I've not had any reply from a pm. Anyone else have any ideas as she'd like to release new products v soon?

Thanks,

Richard

14 Nov 2007, 7:49 PM
#2
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Ban country

Is this idea worth giving up on then?

Richard

14 Nov 2007, 7:55 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Ban country

Have you checked in your webmaster panel if there's an IP deny manager? That would probably be the best way to do it.

14 Nov 2007, 8:00 PM
#4
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Ban country

Hi,

You could probably use the IP2Nation data http://www.ip2nation.com/ to determine the country of origin and then act accordingly. They provide a free MySQL database and sample PHP scripts. I've used it for targeted advertising and it's pretty simple to use.

Regards,
Christian.

14 Nov 2007, 10:59 PM
#5
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Ban country

Hi,

Afo - Lighttpd is running on my host's server and I can't change a lot.

Just seen that ip2nation link, though - that should do the trick..thanks CJPinder :-)

Richard