如何防止在浏览器中多次打开特定页面? [英] How Can I Prevent Opening Particular Page More Than Once In A Browser ?

查看:166
本文介绍了如何防止在浏览器中多次打开特定页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个只需要一个页面的应用程序,比如当前打开此页面时,不能在新选项卡或新窗口中打开abc.aspx。允许在新选项卡上打开剩余页面。第二个选项在asp.net中是默认选项,但是第一个选项即不允许多次打开特定页面并不是那么简单的编码。我做了谷歌搜索,但无法得到相关的答案。所有答案都指向使用cookie禁用新标签页或窗口中的打开但不禁用特定页面。



如何防止在浏览器中多次打开特定页面并允许其他页面按用户需要多次打开!!!

I am developing an application that required only one page , say abc.aspx not to be opened in new tab or new window when this page is currently opened. Remaining pages are to be allowed to be opened on new tabs.. Second option is default in asp.net but first option i.e. not allowing to open particular page more than once is not that easy coding. I had done googling but was not able to get relevant answer. All answer points to using cookies to disable opening in new tab or window but not for particular page.

how can i prevent opening particular page more than once in a browser and allow rest of the pages to be opened as many times as user wants!!!

推荐答案

没有这样的网络概念,如在浏览器中打开一个页面,服务器不知道你正在查看哪个页面,所以不可能限制只打开一次页面。
There is no such web concept as having a page "open" in a browser, the server has no idea what page you're looking at so it's not possible to restrict the opening of a page only once.


您无法控制客户端的浏览器。因此,您无法限制用户访问网页。

如果在Intranet上,您可以将此网站添加到防火墙并阻止该页面。
You don't have much control over the client's browser. Thus there is no way you can restrict users from accessing a webpage.
If its on the intranet, you could add this website to the firewall and block the page.


这篇关于如何防止在浏览器中多次打开特定页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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