Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

hiding attributes of URL

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Sheriff
Posts: 67582
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
permaculture is largely about replacing oil with people. And one tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic