Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Comments
Sergey Alexandrovich Kryukov 26-Nov-12 18:22pm    
Change URI where?! In address line of a browser? -- you have no control over that (oh, thanks goodness! :-). On HTML page? it is not allowed anyway. Somewhere else?
This question makes no sense unless you explain it.
--SA
Member 9291223 26-Nov-12 18:40pm    
Ok say I do not want to show the actual path to the user so I kind of need to encrypt url

No, is the very, very short answer.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Nov-12 20:32pm    
You are perfectly right if as far as the title of this question is concerned (and the whole question is best classified as "making no sense"). However, this is just the vague idea of OP, who means something completely different -- please see the new comment to the question and my answer. This way, it does make some sense.
--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
 
Share this answer
 
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!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900