[Sarlug] Squid - антиреклама и антипорн

shagrat shagrat404 на gmail.com
Вт Ноя 24 21:00:43 UTC 2009


Смысл: при помощи acl в squid'e заблокировать всю рекламу.
Вот мой начальный список:


#### www.vkontakte.ru
acl nokontakt_ip dst 93.186.224.239
acl nokontakt_ip dst 93.186.225.6
acl nokontakt_ip dst 93.186.225.211
acl nokontakt_ip dst 93.186.225.212
acl nokontakt_ip dst 93.186.226.4
acl nokontakt_ip dst 93.186.226.5
acl nokontakt_ip dst 93.186.226.129
acl nokontakt_ip dst 93.186.226.130
acl nokontakt_ip dst 93.186.227.123-93.186.227.126
acl nokontakt_ip dst 93.186.227.129
acl nokontakt_ip dst 93.186.227.130
acl nokontakt_ip dst 93.186.228.129
acl nokontakt_ip dst 93.186.229.2
acl nokontakt_ip dst 93.186.229.3
acl nokontakt_ip dst 93.186.231.218-93.186.231.222
acl nokontakt dstdomain .vkontakte.ru
acl nokontakt dstdomain .vk.com

#### www.odnoklassniki.ru
acl noodnoklass_ip dst 212.44.136.194
acl noodnoklass_ip dst 212.119.216.134
acl noodnoklass_ip dst 62.105.140.210
acl noodnoklass_ip dst 62.105.149.114
acl noodnoklass dstdomain .odnoklassniki.ru
acl noodnoklass dstdomain .odnoklassniki.ua

#### no media file
acl NoMedia url_regex -i \.mp3$ \.avi$ \.wma$

#### no porno
acl porn url_regex -i ^.*adult.*$ ^.*hotsex.*$ ^.*porno.*$ ^.*fastporn.*$
^.*hardporn.*$ ^.*hardcore.*$ ^.*porntv.*$ ^.*zipperripper.*$
^.*nakedwomen.*$ ^.*xxxcounter.*$ ^.*pinkclub.*$ ^.*erotic.*$ ^.*sexplo.*$
^.*pussy.*$ ^.*4wyw.*$ ^.*dirtybird.*$ ^.*paranoia.ru.*$ ^.*teenagesex.*$
^.*sexhound.*$ ^.*babes.*$ ^.*kinky.*$ ^.*fuck.*$ ^.*hotmale.*$
^.*celebnude.*$ ^.*clublove.*$ ^.*transvest.*$ ^.*sexia.*$ ^.*liscious.*$
^.*ynotnetwork.*$ ^.*penthouse.*$ ^.*jabobys.*$ ^.*playboy.*$
^.*andrei.ru.*$ ^.*amateurs.ru.*$ ^.*cool.rasputin.ru.*$
^.*amateuravenue.com.*$ ^.*exoticsex.*$ ^.*zirafe.lv.*$
^.*beautiful.inter.net.*$

#### adblock
acl adblock url_regex -i "/etc/squid/adblock.list"

----------adblock.list-----------
^http://ads\.clickagents\.com
^http://ads\.
^http://ad2\.

---------------------

http_access allow localhost !nokontakt_ip !nokontakt !noodnoklass_ip
!noodnoklass !porn !NoMedia !adblock
http_access deny all

--------------------

Нужна помощь с acl porn и acl adblock, может есть у кого списки?

--------------------------
http://vkontakte.ru/id10180860
----------- следующая часть -----------
Вложение в формате HTML было удалено...
URL: <http://lists.lug.ru/pipermail/sarlug/attachments/20091125/185fef6b/attachment.html>


Подробная информация о списке рассылки Sarlug