0

How can I hide part of the URL address, only on the client side?

For example, if a visitor clicks on a link on my site that redirects to the domain www.sitoexample.com/?exemple=4323456, I want to hide ?exemple=43234566 part of the URL which is nothing more than an id, but only on the client side because the system must recognize that the visit has arrived with the ?exemple=4323456.

So to sum up, the querystring part of the url would only be hidden from the visitor. How can I do this?

FluffyKitten
  • 12,639
  • 10
  • 31
  • 45

1 Answers1

0

You should use the "POST" Method instead of "GET"

POST = URL invisible.

GET = URL visible.

To get an idea of each, see:

https://www.w3schools.com/TAgs/ref_httpmethods.asp

and:

What is the difference between POST and GET?

David
  • 957
  • 9
  • 22