【zblog构建安全链接】BuildSafeURL 监测 CheckIsRefererValid();

zblog1年前zblog问题解答37
BuildSafeURL($zbp->host.'zb_users/plugin/chajianming/my.php')


输出  http://www.zblog.cn/zb_users/plugin/chajianming/my.php?csrfToken=34fd916373cc3bc05ebad25f12b3e232


在my.php 加入
CheckIsRefererValid();
进行安全监测


如果是form表单可以 

<form id="form1" name="form1" method="post" enctype="multipart/form-data">
    <?php if (function_exists('CheckIsRefererValid')) {
        echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';
    } ?>


相关文章

怎么使用百度ck 百度cookies应用到浏览器 百度账号登录免登陆

怎么使用百度ck 百度cookies应用到浏览器 百度账号登录免登陆

怎么使用百度ck 百度cookies应用到浏览器 百度账号登录免登陆Application(中文对应:应用程序(Microsoft Edge浏览器) 或 应用(谷歌chrome浏览器))BDUSS=h...

php 函数 array_unique 是干啥的 数组去重

`array_unique` 是 PHP 中的一个函数,用于从数组中移除重复的值。它返回一个新数组,其中包含原始数组中的唯一值,并保留原始键名。以下是 `array_unique` 函数的语法:```...

常用linux命令

sudo find /www/wwwroot/www.xxxxxxxcom/tupian/ -type f -exec chown&...

ai提示词   数据收集器 相关资料

ai提示词 数据收集器 相关资料

你是数据收集器,根据后面给你提供的关键词,进行数据采集, 收集的数据需要以json格式返回,格式如下:{"content": "这是相关资料"}&n...

linux打包压缩文件夹到指定压缩包

tar -czf /www/bug_fix/c9.tar.gz --ignore-failed-read -C /www/wwwroot/8.8.8.162/runtime/cache c9打包&nb...