如何加密 URL
我想知道如何在 Apache/PHP 上加密 URL?
I want to know how to encrypt the URL on Apache/PHP?
例如:
www.example.com/how-to-encrypt.html
www.example.com/how-to-encrypt.html
到
www.example.com/DMQRzZWMDdGQtbndzBHNsawN0aXRsZQR0ZXN0AzcwMQR3b2UDMjQwMjEwNQ
www.example.com/DMQRzZWMDdGQtbndzBHNsawN0aXRsZQR0ZXN0AzcwMQR3b2UDMjQwMjEwNQ
这个例子也在雅虎上看到,就像这个链接:
This example also seen on yahoo as well like this link:
us.yahoo.com/_ylt=As6pPqj3t7OBn2LQbZCUU7abvZx4;_ylu=X3oDMTVocThw330824863
us.yahoo.com/_ylt=As6pPqj3t7OBn2LQbZCUU7abvZx4;_ylu=X3oDMTVocThw330824863
我想知道这样怎么做,是通过JavaScript/PHP/Apache吗?
I want to know how to do like this, is it through JavaScript/PHP/Apache?
推荐答案
您可能正在寻找与 PHP 一起使用的 Apache mod_rewrite.该 URL 没有(也不打算)加密,它可能只是一个重定向到 Yahoo! 数据库的密钥.服务器.请参阅这篇文章.
You're probably looking for Apache mod_rewrite together with PHP. That URL isn't (and wasn't meant to be) encrypted, it's probably just a key that redirects to a database on Yahoo! severs. See this article.
相关文章