• Post Reply Bookmark Topic Watch Topic
  • New Topic

hiding attributes of URL  RSS feed

 
Abhinav Arya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we hide the attributes being displayed in the url address bar of browser ?


example:
http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=fkjglkmbk@gmail.com:4356355363&senderID=TEST SMS&receipientno=9627011487&dcs=0&msgtxt=This is Test message&state=4


like in above url we want to hide the information like user=fkjglkmbk@gmail.com:4356355363 &receipientno=96270114878
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can stop the information appearing in the address bar by using forms and the "POST" method to submit requests.
That doesn't help with links or GET requests from forms.

A hacky approach(not recommended, but would probably work) is to use a frameset in your application, and have the navigation happen on an internal frame.
Because the top level frameset doesn't get replaced, the url address of the browser remains what it was when originally loaded, even if you are sending parameters via the request string. The downside to that is you have a frameset, which is not optimal for many other reasons. However this approach would "solve" your problem of not displaying values in the address bar.

Note that these approaches don't hide the parameters from anybody really wanting to see them, just stops displaying them blatantly in the address bar.


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As mentioned, if you think that not putting the parameters (not "attributes") on the URL imparts any measure of security to them, you are mistaken. Is security the issue?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!