Thread: Ban country

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Location
    Watford, UK
    Posts
    155
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Mar 2005
    Location
    Watford, UK
    Posts
    155
    Plugin Contributions
    0

    Default Re: Ban country

    Is this idea worth giving up on then?

    Richard

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default 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.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default 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.

  5. #5
    Join Date
    Mar 2005
    Location
    Watford, UK
    Posts
    155
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. ban people?
    By alleluia in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2009, 10:34 PM
  2. How to ban?
    By xordox in forum General Questions
    Replies: 2
    Last Post: 31 Oct 2008, 09:20 AM
  3. Ban Access by Country
    By kiddo in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Mar 2008, 10:38 PM
  4. I am looking some Ban Ip of 1 country systems.
    By kimsonvu in forum General Questions
    Replies: 1
    Last Post: 7 Nov 2007, 08:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg