找回密码
 注册账户
查看: 2637|回复: 3

PHP版网站防火墙 保护你的网站

[复制链接]
棋子 发表于 2008-7-18 10:06:53 | 显示全部楼层 |阅读模式
貌似就是一个屏蔽IP地址的东西
我还以为多先进呢。。。。。。。。。

NND 被标题党忽悠了
上传 把txt改为777 可写属性
然后在php文件头调用
<?include("sitefirewall.php");?>
这样就OK了

To install PHP SiteFirewall on your website follow these steps:
1. Copy the sitefirewall.php, logviewer.php, log.txt, and blockedips.txt files to  your website
2. Add the IP addresses or ranges that you want to block access to your website by adding them to the blockedips.txt file and separate each IP address or range by a new line character, you can use a text editor to do that, here is an example:
200.0.0.0
200.300.1.1
100.500.100.0
If you want to add a IP address range just separate the first range from the second one by using a score character "-".
Here is an example: 123.0.0.0-123.456.0.0
3. Now add this line of code on the webpages that you want to protect, the pages must be HTML or PHP and accept PHP interpreting, and the following code must be inserted at the beginning of the webpage, before the <html> tag.

<?include("sitefirewall.php");?>

4. If you want to view the SiteFirewall log you can use the logviewer.php file,  the real log is stored in the log.csv which is a comma delimited file.

For support on this script, contact the vendor from whom you purchased it from.

Copyright  2008 SoftwareSellers.net


下载

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册账户

×
麻雀 发表于 2008-7-18 23:45:44 | 显示全部楼层
这个以前有过,加上这个防火墙代码后,好好的站出现N多问题!
绝望的咸鱼 发表于 2008-7-19 15:26:23 | 显示全部楼层
根本没用。
头像被屏蔽
xolo88 发表于 2008-10-24 10:16:35 | 显示全部楼层
N多问题?我晕:)sweat_q :)sweat_q
您需要登录后才可以回帖 登录 | 注册账户

本版积分规则

存档|黑屋|手机|网络实验室 本站服务器由美国合租以及IDCLayer国际数据提供!!!

GMT+8, 2026-6-5 01:44 , Processed in 0.012157 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表