How to effectively hide Href From a Link in PHP?

PHPServer Side ProgrammingProgramming

This is not possible. A href can’t be hidden from a link. But the files can be rewritten and the request URL can be changed to look like this − name.php/5001

Other than this, a post request can be used in the below way −

<form method="post" action="name.php">
<input type="hidden" name="packageID" value="5001">
<button type="submit">Go</button>
</form>

This will expose a single button in the browser.

raja
Published on 06-Apr-2020 11:48:50
Advertisements