Forum Moderators: phranque

Message Too Old, No Replies

Blocking ip

         

Tezus

2:46 pm on May 1, 2003 (gmt 0)



I read an old post here about blocking visitors from certain countries.
I would really appreciate if someone could explain what i should do to block visitors from sweden to download from my site.

I´m a newbie so please be gentle ;-)

Thanks in advance, Terése

jdMorgan

3:36 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Terése,

Welcome to WebmasterWorld [webmasterworld.com]!

You might want to try this question over in Website technology if you don't get good answers here.

I'm not sure you can block Sweden and only Sweden - IP address blocks are not assigned strictly by country, and users from Sweden may not necessarily be using Swedish ISPs. You may be able to block ALL unauthorized downloads by testing for HTTP User-agent and by putting "spider traps" on your pages. How you do this will depend on what server your site is hosted on.

HTH,
Jim

roddo

9:27 pm on May 1, 2003 (gmt 0)

10+ Year Member



Hi,

Have a look at [maxmind.com...]

"Obtain the Country, Region, City, Latitude, and Longitude of any IP address. We can customize MaxMind GeoIP to meet your needs.

We offer a number of methods for accessing MaxMind GeoIP, including APIs for C, Perl, PHP, Java, Python, Ruby, C#, Apache, as well as web services"

This service should allow you to find out where your users are from based on their IP address.