Forum Moderators: goodroi

Message Too Old, No Replies

Blocking Site in some countries

         

eldinboy

10:58 am on Jan 15, 2007 (gmt 0)

10+ Year Member



dear mates
I would like to market one product globally
n would like to give ad also in websites
But this product is prohibitted in some countries
So I want to block the acess of my site in some countries
Giving advice is apreciable
thanx

goodroi

3:49 pm on Jan 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



robots.txt is intended to be used to block spiders and probably would not be the best way for you to do it

if you want to only block certain countries, i think htaccess would be much better since you could block by ips and ips are associated to countries.

Eldinboy2007

5:55 pm on Jan 15, 2007 (gmt 0)

10+ Year Member



vipink: why to take the hassle of importing the complete database locally and then query it .. just use cURL to give a call to any site script that converts IP to location and then redirect visitor accordingly however this will make your site (index or anyother page with this code) slow depending on the speed of results from the third party site
ref:

[webmasterworld.com...]

But can you explain some more
wat is cURL