故障:使用宝塔建站,由于post参数比较长(base64数据),提交信息经常出现“参数值长度超过40w已被系统拦截”。。。。
解决:
1.路径/www/server/btwaf/init.lua
2.搜索
- if type(part_body)=='string' then
- if (#part_body) >=400000 then
- write_log('post',name..' 参数值长度超过40w已被系统拦截')
- return_html(config['post']['status'],post_html)
- return true
- end
- end
复制代码
修改成
- if type(part_body)=='string' then
- if (#part_body) >=1000000 then
- write_log('post',name..' 参数值长度超过100w已被系统拦截')
- return_html(config['post']['status'],post_html)
- return true
- end
- end
复制代码
3.防火墙关闭一次 再打开一次就可以了 |