防止页面代码被下载 - 限制访问次数
10) {
header('Location: https://example.com/1.html');
exit;
}
// 输出访问次数
echo '这个页面已经被访问了 ' . $pageviews . ' 次。';
// 禁止别人下载本页面代码
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename='index.php'');
exit('禁止下载本页面代码!');
?>
原文地址: https://www.cveoy.top/t/topic/muqK 著作权归作者所有。请勿转载和采集!