开发者

Is there a way I can block access to my website by country?

I would like to block access to my web site from some countries. The reason is that I suspect they are stealing the information from the site and copying for their own sites.

Is there a way I can block access from certain开发者_JAVA技巧 countries or even better redirect users accessing my site from these countries to a very plain web page that makes it look like the site is under construction.

Note that my site uses MVC3. I am looking for a .net solution or some IIS solution if that's not possible.


You could setup the free GeoLite Country database at yours and check each IP address (HTTP remote address of the visitor) against it and then decide what to do.

Another way would be to reverse-lookup the IP addresses, but then again, which country is a visitor with a hostname ending in .net from?

Finally, be aware that there are free proxy servers out there, so if someone really wants to fake his "country", he easily can do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜