Solved

Hiding URL Parameters

Posted on 2013-05-26
6
2,190 Views
Last Modified: 2013-05-30
Hello Experts,

How do I Hide URL Parameters without reloading page in Javascript. For example if URL after load is showing "http://something.com/userid=1001" then after page is loaded i want to show the url to user as "http://something.com/userid=***".
             There is no need of any other security to be implemented, only thing is required to change the text only.

Any help on this will be highly appreciated.

Thanks
0
Comment
Question by:Swadhin Ray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 39198607
0
 
LVL 11

Expert Comment

by:Kusala Wijayasena
ID: 39198715
When parameters are passing in HTTP GET, it is visible for the user in the URL. When passing variables in HTTP POST, it will not visible to the user in the URL
0
 
LVL 15

Assisted Solution

by:Jagadishwor Dulal
Jagadishwor Dulal earned 250 total points
ID: 39198828
As you want http://something.com/userid=*** it is better to secret your userid like I am showing here php example.
here userid=1111;
<?php
$url=http://something.com/userid=md5(1111);
?>

Open in new window


When you will check userid:

<?php
$userid=$_GET['userid'];
//Fetch record from db here I assume that userid contain in userid column and you fetch data in $row variable
//Now check 
$userid=md5($row['userid'];
?>

Open in new window

0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 16

Author Comment

by:Swadhin Ray
ID: 39201010
Currently I cannot change the structure to "HTTP GET" or "HTTP  POST" and I am using JAVA , not PHP.

Please suggest if there is any way to do it on JAVA script (Client Side only).
0
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 250 total points
ID: 39201118
I think my first post points to a link that shows you how to do this.

In case you missed it here it is again

http://stackoverflow.com/questions/824349/modify-the-url-without-reloading-the-page
0
 
LVL 16

Author Closing Comment

by:Swadhin Ray
ID: 39208584
thanks
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question