阻止ip / country使用我的网站 [英] blocking ip/country to use my website

查看:84
本文介绍了阻止ip / country使用我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请帮助我,如何阻止任何国家/地区显示我的网站(我想阻止特定国家/地区,网站被阻止那个国家。



我有一个在web.config中添加IP的解决方案,但是进入一个广泛的范围添加它太长了,而且还不时更新。



是否有阻止country的快捷方式。如果没有,那么如何阻止web.config中的IP范围。



并且请给我任何链接,通过它我可以收集更新的国家/地区智能IP范围。



提前感谢'。

Hi Everybody,

Please help me, How can I block any country to showing my website( I want to block particular country, by which the site blocked in that countries.

I have one solution to add IP in web.config, But it is too lengthy for enter a wide range to add it, and also time to time update.

Is there any shortcut for blocking country.and if not then how block IP range in web.config.

And Please Give me any Link, by which I can collect updated country wise IP range.

Thank''s in advance.

推荐答案

阅读这篇非常好的演练,看看它是否有帮助:

http://blog.newagesolution.net/2008/11/how-to-block-country-and-ip-addresses.html [ ^ ]
Read this very good walkthrough and see if it helps:
http://blog.newagesolution.net/2008/11/how-to-block-country-and-ip-addresses.html[^]


我找到的解决方案&在asp.net的母版页中应用代码跟踪网站查看器IP地址,然后在我们的数据库中检查它的IP地址(转换为数字,然后我们可以检查我们数据库中该数字的范围)然后重定向它到错误页面(html)访问被拒绝。





我很快就上传了代码..我的博客

Hemant Singh Rautela-开发人员博客 [ ^ ]
A solution which I find & apply code in master page of asp.net which track the website viewer IP address and then check it in our database of ip address (converted to a number, then we can check range of that number in our database) of whole country then Redirect it to a error page(html) access denied.


I uploading code for it, very soon..on my blog
Hemant Singh Rautela- Developers Blog[^]


这篇关于阻止ip / country使用我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆