免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2173 | 回复: 6
打印 上一主题 下一主题

[Web] 怎样阻止别人通过我的apache发垃圾邮件 ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-07 17:53 |只看该作者 |倒序浏览
125.224.199.192 - - [02/Sep/2009:19:14:26 +0800] "CONNECT 203.188.197.9:25 HTTP/1.0" 200 16142 "-" "-"

这是我apache访问日志里的其中一条访问日志,并且还有16142的数据返回,在网上找了,说是125.224.199.192正在通过我的apache发垃圾邮件,所以我用iptable禁止125.224.199.192,可过几分钟又换了别的IP来通过我的apache发,请问各位有没有什么办法阻止 ?

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
2 [报告]
发表于 2009-09-07 18:47 |只看该作者
说是125.224.199.192正在通过我的apache发垃圾邮件
--------------------------这个事怎么判断出来的?

论坛徽章:
0
3 [报告]
发表于 2009-09-07 19:22 |只看该作者

回复 #2 ruochen 的帖子

ONNECT 203.188.197.9:25
连接到203.188.197.9的25端口,在http://blog.csai.cn/user1/34885/archives/2009/38566.html这个地方看到的,设置了VirtualHost也还是不行阿

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
4 [报告]
发表于 2009-09-07 23:41 |只看该作者
httpd -M结果贴来看看。

论坛徽章:
0
5 [报告]
发表于 2009-09-08 15:37 |只看该作者
[root@host2 ~]# /opt/apache2/bin/httpd  -M
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
log_config_module (static)
env_module (static)
setenvif_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
so_module (static)
speling_module (shared)
rewrite_module (shared)
php5_module (shared)
Syntax OK
[root@host2 ~]#
现在写了一个脚本定时检查访问日志,再有这样的情况就直接把那个IP地址用iptable阻止掉

论坛徽章:
0
6 [报告]
发表于 2009-09-10 22:58 |只看该作者
其实可以直接扫日志吧有问题ip用IPTABLES封1个小时就好

论坛徽章:
0
7 [报告]
发表于 2009-09-11 15:02 |只看该作者
封出站端口
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP