Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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 26-Nov-12 13:08pm
Comments
Sergey Alexandrovich Kryukov at 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 at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

No, is the very, very short answer.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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!
  Permalink  
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 420
1 OriginalGriff 230
2 DamithSL 175
3 Dave Kreskowiak 120
4 Zoltán Zörgő 114
0 OriginalGriff 7,740
1 DamithSL 5,644
2 Sergey Alexandrovich Kryukov 5,404
3 Maciej Los 5,011
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100