通过直接点击网址来避免页面加载. [英] avoid page load by direct hitting url.

查看:52
本文介绍了通过直接点击网址来避免页面加载.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想通过直接点击网址来避免页面加载.如果我键入../abcd.aspx,则它链接到该页面;如果我将其更改为../1234.aspx,它也将被加载.该怎么办?

在此先感谢您.

Hi all,

I want to avoid page load by direct hitting url. If I type ../abcd.aspx it is linking to that page and if I change it as ../1234.aspx it also gets loaded. What to do?

Thanks in advance.

推荐答案

您的问题不太清楚.但是,如果您尝试隐藏或不让用户使用URL,则可以尝试 URL重写 [ ^ ].

这将使您处理URL的外观以及执行的内容.因此,如果有人更改URL并按Enter,则可以编写逻辑来确定是否要执行该操作.
Your question is not quite clear. But if you are trying to hide or not let the user play with URL then you can try URL Rewriting[^].

This will let you handle how the URL would look like and what would be executed. Thus, if someone changes the URL and hit enter, you can write a logic if you want that thing to be executed or not.


这篇关于通过直接点击网址来避免页面加载.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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