事实上,应该可以假设所有文件中的页脚都相同,但当然你需要确保你能做到这一点并检查你的协议。如果您购买脚本,您应该始终添加您想要未加密的源,但它可以使该脚本的价格是 2 倍或更多倍。
加密文件的输出来源是:
<html>
<head>
</head>
<body>
4<br />4294967296<br />65536<br /><div id="footer">This is custom footer</div>
</body>
</html>
所以这个文件中有一个我们要删除的页脚。
您需要在项目的根目录中创建包含以下内容的 .htaccess 文件:
php_value auto_prepend_file prepend.php
php_value auto_append_file append.php
在 prepend.php 你必须把:
<?php
ob_start();
在 append.php 中,您必须输入:
<?php
$content = ob_get_contents();
ob_clean();
mb_internal_encoding('UTF-8');
echo str_replace(
'<div id="footer">This is custom footer</div>
</body>',
'',
$content
);
现在在浏览器中运行加密文件的来源是:
<html>
<head>
</head>
<body>
4<br />4294967296<br />65536<br />
</html>
所以文件的页脚已被删除。