0

is possible to avoid showing the parameter for a .php file when send it via address bar? but still send the parameter to other .php file?

avoid showing parameters for .php

  • Use the POST method instead of GET. – Sammitch Sep 09 '21 at 21:26
  • Or use sessions. Though that would be quite a bit more work. – Erik Sep 09 '21 at 21:31
  • What is specific to PHP about URLs containing a *query (string)*? What would be a legitimate use of hiding from a user the information you make her computer spill? – greybeard Sep 10 '21 at 04:24
  • What would you achieve by "hiding" such parameters? And don't say you want to "increase security" or prevent people from accessing records they should not be allowed to see now. – CBroe Sep 10 '21 at 07:55

1 Answers1

0

Have you tried to use $_POST instead of $_GET ? $_POST is not showing on URLs. If you don't want to use $_POST I found this

Dharman
  • 30,962
  • 25
  • 85
  • 135
Nero
  • 3
  • 2
  • ([RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.1) (2014) allows a *payload within a GET request message*.) – greybeard Sep 10 '21 at 04:32