在网站应用程序中阻止网站网址 [英] Block a site url in website application

查看:93
本文介绍了在网站应用程序中阻止网站网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在明确点击时阻止网站.例如登录gmail的用户可以访问google plus ...但我想阻止该用户明确命中的google plus wen.他可以在该消息框中显示该网站已被阻止. Plz 请帮助我

I want to block a site when hit explicitly.For eg. a user who is logged in gmail can have access to google plus...but i want to block google plus wen hitted explicitly by the user.He can get the message box there that site is blocked.Plz Please help me

推荐答案

我认为您正在寻找的是如何防止深度链接.深度链接是指向网站资源的直接链接,而无需访问该网站的主页.

有关更多信息,请参见此链接: http://blog.hussulinux.com/2007/08/deep-linking-how-to-avoid/ [ http://stackoverflow.com/questions/395034/how-to-prevent-deep-linking-to-files-on-my-sites [
I think what you are looking for is how to prevent deep linking. A deep link is a direct link to a web site’s resource without accessing the main page of the site.

See this link for more information: http://blog.hussulinux.com/2007/08/deep-linking-how-to-avoid/[^]

Another thing you can do is to check HTTP_REFERER to see how the user got to your website.
But since this information can be altered or may not be available I don''t think I would use this.

http://stackoverflow.com/questions/395034/how-to-prevent-deep-linking-to-files-on-my-website[^]


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

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