如何封锁特定网址 [英] How to block the speicific url

查看:112
本文介绍了如何封锁特定网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阻止特定的网址,然后我可以阻止谁?

I wanted to block the specific url then Who can i block?

推荐答案

如果您希望在这种情况下限制整个网站的特定URL,则可以配置如以下链接中所述,在您的IIS级别.

http://technet.microsoft.com/en-us/library/cc787192(WS .10).aspx [ ^ ]

在这种情况下,如果您想限制某些特定页面,则可以从"http_referrer"服务器变量中获取url为follwong

If you want to restrict the entire website for specific URL in that case you can configure this at your IIS level as mentioned in the following link.

http://technet.microsoft.com/en-us/library/cc787192(WS.10).aspx[^]

If you want to restrict some specific pages in that case you can get the url from the "http_referrer’ server variable as follwong

Request.ServerVariables("http_referrer") 



只需检查url,如果要阻止,则将请求重定向到某些自定义访问被拒绝的页面.


如果不是这种情况,请提供更多详细信息.



Just check the url, if you want to block then redirect the request to some custom access denied page.


Provide more details, if this is not the case.


这篇关于如何封锁特定网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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