【问题标题】:How do I prevent my proxy from showing the searched URL in the address bar?如何防止我的代理在地址栏中显示搜索到的 URL?
【发布时间】:2013-12-13 17:53:47
【问题描述】:

我有一个基本的代理网站模板,我根据自己的喜好对其进行了编辑,但是当我输入网址时它可以工作,但在地址栏中它会将我输入的网址添加到末尾。如何对其进行编码或阻止它出现在地址栏中?

如果我要上脸书 它会说 http://haydensfunwebsite.appspot.com/www.facebook.com 我想要对“www.facebook.com”部分进行编码或更改之类的。

任何帮助都会很棒!

这是我使用的模板的链接: https://github.com/labnol/google-proxy/archive/v1.0.zip

如果你能修改它并重新上传它也很棒!

谢谢:)

【问题讨论】:

    标签: python html url encoding proxy


    【解决方案1】:

    试试这个进行简单的编码和解码。

    <?php $encoded = base64_encode($string); ?>
    
    <?php $decoded = base64_decode($encoded); ?>
    

    【讨论】:

    • 你知道我会在哪里输入吗?对不起,我对这种东西很陌生!非常感谢您的建议
    • 对不起,我以为这是用 PHP 而不是 Python 编写的。我的回答对你基本没用。随意投反对票。
    • 我在链接中包含了我正在使用的文件,请随时查看
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-13
    • 2014-04-04
    • 1970-01-01
    • 2018-06-01
    • 1970-01-01
    • 2016-07-28
    • 1970-01-01
    相关资源
    最近更新 更多