• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

iptables封禁BT/PT/SPAM(垃圾邮件)和自定义端口/关键词一键脚本

网络资源 Liam 1年前 (2019-04-27) 334次浏览 8个评论 扫描二维码
文章目录[隐藏]

说明:通常我们买的VPS如果乱发垃圾邮件(SPAM)和下载BTPT等都会导致VPSIDC封杀。按照博主的经验来看发垃圾邮件被封杀几率是非常大的,不过对于BTPT来说,有的商家虽然有规定不许下载,但都是睁一只眼闭一只眼,只要不被投诉就没事。但还是要注意点,特别是喜欢分享55R等梯子的人,最好都给封上,以防万一。

安装

注意:本脚本邮件端口是完全可以封住的,但是BTPT就不是100%的了,封不干净,这个没办法。
系统要求:CentOS 6+/Debian 6+/Ubuntu 14.04 +

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/ban_iptables.sh && chmod +x ban_iptables.sh && bash ban_iptables.sh 

运行脚本后会出现脚本操作菜单,选择并输入对应的数字来操作。

提示:既然是iptables防火墙规则,那VPS肯定是要安装iptables的,不过一般都安装的有,除了坑爹的CentOS 7需要关闭自带的防火墙安装iptables

使用说明

进入下载脚本的目录并运行脚本:

./ban_iptables.sh 

然后选择你要执行的选项即可。

 iptables防火墙 封禁管理脚本 [vX.X.X]  -- Toyo | doub.io/shell-jc2 --    0. 查看 当前封禁列表 ————————————  1. 封禁 BT、PT  2. 封禁 SPAM(垃圾邮件)  3. 封禁 BT、PT+SPAM  4. 封禁 自定义 端口  5. 封禁 自定义关键词 ————————————  6. 解封 BT、PT  7. 解封 SPAM(垃圾邮件)  8. 解封 BT、PT+SPAM  9. 解封 自定义 端口 10. 解封 自定义关键词 11. 解封 所有  关键词 ———————————— 12. 升级脚本   请输入数字 [0-11]: 

其他操作

为了方便,我也做了几个快捷的命令,不需要进入菜单去选择对应的选项,直接就能封禁/解封。

./ban_iptables.sh banbt # 封禁 BT、PT   ./ban_iptables.sh banspam # 封禁 SPAM(垃圾邮件)   ./ban_iptables.sh banall # 封禁 BT、PT+SPAM   ./ban_iptables.sh unbanbt # 解封 BT、PT   ./ban_iptables.sh unbanspam # 解封 SPAM(垃圾邮件)   ./ban_iptables.sh unbanall # 解封 BT、PT+SPAM 

脚本地址:https://doub.io/shell-jc2/


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:iptables封禁BT/PT/SPAM(垃圾邮件)和自定义端口/关键词一键脚本
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(8)个小伙伴在吐槽
  1. An outstanding share! I've just forwarded this onto a coworker who was doing a little research on this. And he actually bought me breakfast because I found it for him... lol. So allow me to reword this.... Thank YOU for the meal!! But yeah, thanx for spending some time to talk about this topic here on your site.
    web hosting companies2020-09-01 01:27 回复 Linux | Firefox浏览器 60.0.2
  2. Thanks for finally talking about > iptables封禁BT/PT/SPAM(垃圾邮件)和自定义端口/关键词一键脚本 db1024 db1024 < Loved it!
    black mass2020-08-31 09:02 回复 Linux | Firefox浏览器 56.0
  3. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire someone to do it for you? Plz reply as I'm looking to construct my own blog and would like to find out where u got this from. thanks a lot
    black mass2020-08-28 20:19 回复 Mac OS X | Firefox浏览器 61.0
  4. I just like the valuable information you supply on your articles. I'll bookmark your blog and check again right here regularly. I am moderately sure I will be informed plenty of new stuff proper here! Best of luck for the following!
    cheap flights2020-08-28 08:55 回复 Linux | Firefox浏览器 61.0
  5. Very good information. Lucky me I ran across your site by accident (stumbleupon). I have book marked it for later! cheap flights yynxznuh
    cheap flights2020-08-25 05:21 回复 Linux | Firefox浏览器 4E2F
  6. Good day very cool web site!! Man .. Beautiful .. Superb .. I'll bookmark your website and take the feeds also? I am glad to seek out so many useful information right here in the put up, we want develop extra strategies in this regard, thank you for sharing. . . . . . cheap flights y2yxvvfw
    cheap flights2020-08-25 00:49 回复 Linux | Chrome 52.0.2777.35
  7. It is appropriate time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Maybe you can write next articles referring to this article. I wish to read more things about it!
    website hosting companies2020-08-14 20:20 回复 Linux | Firefox浏览器 52.9
  8. Great article! We will be linking to this particularly great post on our site. Keep up the good writing. adreamoftrains webhosting
    adreamoftrains web hosting reviews2020-08-12 07:18 回复 Mac OS X | Firefox浏览器 60.0