阻止用户更改Web URL [英] Prevent a User from making changes to a web URL

查看:82
本文介绍了阻止用户更改Web URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想知道是否有可能阻止用户更改Web网址,因为允许用户在ur中进行更改可能会导致错误:

如果我有网址的示例:
http://10.0.10.6/recordsmanagement/ViewRecords.aspx [ http://10.0.10.6/recordsmanagementsssss/ViewRecords.aspx [

Hi All
I was wondering if it could be possible to prevent a user from making changing to a web url since allowing a user to do changes in a ur may result in errors:

Example if I have a url:
http://10.0.10.6/recordsmanagement/ViewRecords.aspx[^]

and it allows a user to do changes to the url example placing just some random characters,say ssss:

http://10.0.10.6/recordsmanagementsssss/ViewRecords.aspx[^]
this will result in an error

Thanks

推荐答案

不,这是非常非常简短的答案.
No, is the very, very short answer.


没有阻止用户进行更改" –这根本没有道理;请参阅我对这个问题的评论.

如何显示URI是另一回事.你必须展示一些东西.您不必显示实际路径.了解如何使用URL重写和路由:
http://en.wikipedia.org/wiki/URL_rewriting [ http://msdn.microsoft.com/en-us/library/ms972974.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/cc668201%28v = vs.100%29.aspx [ ^ ].

我希望这足以满足您的需求.

祝你好运,
—SA
There is no such thing as preventing the user from "making changes" — this simply makes no sense; please see my comment to the question.

How you show you URIs is the different story. You have to show something. You don''t have to show actual path though. Learn how to use URL re-writing and routing:
http://en.wikipedia.org/wiki/URL_rewriting[^],
http://msdn.microsoft.com/en-us/library/ms972974.aspx[^],
http://msdn.microsoft.com/en-us/library/cc668201%28v=vs.100%29.aspx[^].

I hope this will be enough to do what you want.

Good luck,
—SA


您无法对URL进行任何更改,除非您要对其进行修改.

请阅读以下内容以获取信息: ^ ]



祝你好运!
You cannot make any changes to URL, unless you want to modify it.

Read this for Info: http://pic.dhe.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=%2Fcom.ibm.itame2.doc_5.1%2Fam51_webseal_guide91.htm[^]



Goodluck!


这篇关于阻止用户更改Web URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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