代码拉取完成,页面将自动刷新
- 只是修改了错误页面的版权链接,在
/src/HttpCore.cpp
文件里面- 管理页面的版权在
/src/KHttpManage.cpp
文件里面- 管理统计在
/src/KHttpManage.cpp
文件里面- 全局常量在
/src/global.h
文件里面,可修改Response头信息,如Server: kangle/3.5.13.2(实际在/src/KUploadProgressMark.h
文件里面)
yum -y install wget make automake gcc gcc-c++ pcre-devel zlib-devel sqlite-devel openssl-devel libaio-devel
./configure --prefix=/vhs/kangle --enable-disk-cache --enable-ipv6 --enable-ssl --enable-vh-limit
make && make install
/vhs/kangle/bin/kangle
http://ip:3311
admin
密码kangle
安装
php
链接
其他 添加kangle的请求规则,文件在
/vhs/kangle/etc/config.xml
,在<request action='vhs' >
增加表BEGIN2
<table name='BEGIN2'>
<chain action='deny' name='k_webshell'>
<mark_post_file filename='\.(php|phps|php5|php7|jsp|jspx|asp|aspx|asa|asax|ascx|ashx|asmx|axd|html|htm|js)$' icase='1'></mark_post_file>
</chain>
<chain action='deny' name='k_asp_loophole'>
<acl_reg_path nc='1' path='\.(asp|aspx|asa|asax|ascx|ashx|asmx|axd)[;/]'></acl_reg_path>
</chain>
<chain action='deny' name='k_htaccess'>
<acl_url nc='1'><![CDATA[\.(htaccess|uini)]]></acl_url>
</chain>
<chain action='deny' name='k_file'>
<acl_url nc='1'><![CDATA[(web\.config|httpd\.ini)]]></acl_url>
</chain>
<chain action='continue' name='k_realip'>
<mark_replace_ip header='X-Forwarded-For' > </mark_replace_ip>
</chain>
<chain action='continue' >
<acl_host split='|'></acl_host>
</chain>
</table>
添加之后,在BEGIN里面引用BEGIN2,即可实现规则
防盗链
访问
wz.lxx123.club
在/web/resource/
目录里面进行302重定向http://wz.lxx123.club/web/index.php
,Referer
是header
模块里面的请求头属性
禁止访问使用
cookie
检测
Cookie
是header
模块使用regex,取反检测存在cookie
的user_id=
,不存在禁止访问
反向代理
匹配和标记模块都使用
host
,由80转到8080端口
配置伪静态(tp框架,解决静态资源和隐藏index.php)
匹配
host
和标记模块都rewrite
prefix:/
path:(.*)
rewrite to:/index.php/$1
第二个标记模块都rewrite
选择OR NEXT
prefix:/
path:/static/
rewrite to:/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。