cacti报警, Image Sever 网络流量增加了近一倍。分析访问日志,最后确定图片被盗链,用了下面的方法实现:
Squid 2.6
acl pics urlpath_regex -i \.(gif|jpg|jpeg|bmp|png)$
acl domain_refer referer_regex -i .xxx.com .xxx.com
acl notnull_refer referer_regex .
http_access allow pics !notnull_refer
http_access deny pics !domain_refer
deny_info domain_refer
阅读(1505) | 评论(0) | 转发(0) |