How to Encrypt the URL(如何加密 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.
这篇关于如何加密 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何加密 URL
基础教程推荐
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- php中的foreach复选框POST 2021-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php中的PDF导出 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
