简体   繁体   中英

How to hide URL using php or javascript

Here is what Adel Agoudjil asked time ago. I have the same question. Anyone can give a straight answer, please?

"I want to know how to encrypt the URL on Apache/PHP?

For example: www.example.com/how-to-encrypt.html

to www.example.com/DMQRzZWMDdGQtbndzBHNsawN0aXRsZQR0ZXN0AzcwMQR3b2UDMjQwMjEwNQ

I want to know how to do like this, is it through JavaScript/PHP/Apache?"

Maybe you can write a single main.php page:

www.example.com/main.php?p=DMQRzZWMDdGQtbndzBHNsawN0aXRsZQR0ZXN0AzcwMQR3b2UDMjQwMjEwNQ

Then decrypt text and redirect to where you want.

But I am not sure this method works or not.

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