cometta
cometta

Reputation: 35759

Harden url passing to another page using parameter

i want to pass parameter to another page through iframe example

<iframe src="http://otherserver.com/page?user=user_id"/>

rather than passsing user= id this way, is there any technique so that user will not aware of user=user_id ?

Upvotes: 0

Views: 383

Answers (1)

RaYell
RaYell

Reputation: 70494

What you could probably do is to load a dummy page to that iframe and then load the correct page using JavaScript. You could use POST request to hide the parameters from the URL. However if a user wants to find what exactly you are posting he can always see that from your JS, although it won't be as obvious as checking iFrame's src attribute.

Upvotes: 1

Related Questions