简体   繁体   中英

is there a way to hide or encode url path?

i'm using php $_GET to get data from url path but i want it to hide or encode the url path after finish using it.

example: http://10.1.6.8/?no=CN%20-%20005 and after it finish running it will turn url into http://10.1.6.8/QAIOFANGQNIOGND or http://10.1.6.8/ or something that didn't point directly to url path. is that possible?

EDIT 1 i can't use $_POST because i have to make url into QR Code and after scanning it i want the url path to hide or decode EDIT 2 I manage to change url path name by using .htaccess but $_GET value still appear

You might be looking to make a POST request instead, which would hide all parameters in the URL. You can do this with forms by adding method="POST" instead of "GET" .

Unfortunately, your question doesn't really specify your use case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM