如何加密 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Facebook Login with Strict Mode for Redirect URIs(使用重定向 URI 的严格模式登录 Facebook)
How to retrieve post ID for a post i#39;ve just made via the Facebook API(如何检索我刚刚通过 Facebook API 发布的帖子的帖子 ID)
Facebook PHP SDK logout(Facebook PHP SDK 注销)
Facebook SDK and Graph API Comment Deleting Error(Facebook SDK 和 Graph API 评论删除错误)
PHP amp; Facebook: facebook-debug a URL using CURL and Facebook debugger(PHP amp;Facebook: facebook-debug a URL using CURL and Facebook debugger)
Can#39;t delete photo via Facebook API?(无法通过 Facebook API 删除照片?)