preventing visitors from selected countries to visit/use my site

Discussion in 'HTML & Website Design' started by MyEggNoodles, Feb 28, 2008.

  1. #1
    Hi all,

    I am designing a site that will use huge amounts of bandwidth. The product I'm promoting is only available for people in one country, so I would like to prevent people from any other country using my site.

    This can be done as I've heard of someone doing this before... I'm guessing they were using a script that checks the user's IP

    Any ideas?
     
    MyEggNoodles, Feb 28, 2008 IP
  2. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
  3. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    I have done this php script for Clay Trainor a reputed member of this forum. It can be done using PHP Scripting and using a PEAR Module. You can ascertain the country, Region, City, Area code etc using it. In your case after locating the country based on IP we can redirect the visitor to another page displaying that this website is only for visitors from this country using php. It can be done fast, because I have done it recently. If you are interested I can do it. You can PM me if you require further discussion regarding the matter.
     
    vishnups, Feb 28, 2008 IP