Forum Moderators: phranque
I´m a newbie so please be gentle ;-)
Thanks in advance, 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
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.