沃梦达 / 编程问答 / php问题 / 正文

如何加密 URL

How to Encrypt the URL(如何加密 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

基础教程推荐