我曾经有一个脚本,该脚本基本上对链接进行了 base64 编码,然后重定向 PHP 页面将对其进行解码并将您发送到该页面。
我不知道我做错了什么,PHP 不是我最好的技能,只是寻求一些帮助。
页面链接:
<a href="http://www.XXXXXX.com/find.php?shop=<?php echo urlencode(base64_encode("long ass link goes here")); ?>">Test</a>
查找.php:
< ?php
$request_id = $_GET ['shop'];
$site = base64_decode($request_id);
header( 'Location: $site' ) ;
?>