Squid & Qlproxy
Z wiki linux-user
| Linia 103: | Linia 103: | ||
service squid restart | service squid restart | ||
Główne pliki konfiguracyjne '''qlproxy''' znajdują się w ścieżce ''/etc/opt/quintolabs/qlproxy/policies''. | Główne pliki konfiguracyjne '''qlproxy''' znajdują się w ścieżce ''/etc/opt/quintolabs/qlproxy/policies''. | ||
| + | Możesz użyć pliku ''/etc/opt/quintolabs/qlproxy/policies/strict/rules/block_ads.conf'' do blokowania reklam wyświetlających się na stronach www, w tym celu edytujesz plik block_ads.conf i usuwasz komentarze tak jak poniżej | ||
| + | less /etc/opt/quintolabs/qlproxy/policies/strict/rules/block_ads.conf | ||
| + | ################################################################################# | ||
| + | # block_ads.conf | ||
| + | # | ||
| + | # Contains specific ad blocking rules for the default policy. To disable | ||
| + | # ad block in this policy completely, comment out all lines in this file | ||
| + | # | ||
| + | # Available subscription names are file names present in $VARDIR/spool/adblock | ||
| + | # | ||
| + | ################################################################################ | ||
| + | use_subscription = easylist.txt | ||
| + | use_subscription = easylistgermany.txt | ||
| + | use_subscription = fanboy-russian.txt | ||
| + | use_subscription = easylist_custom.txt | ||
| + | use_subscription = easyprivacy.txt | ||
| + | |||
| + | Do pliku ''block_site_by_name.conf'' możemy dodać regułe | ||
| + | regexp = http:// \ d + \. \ D + \. \ D + \. \ D + / *. | ||
| + | aby blokować wyświatlanie stron po adresach IP. | ||
| + | |||
UWAGA HOWTO W TRAKCIE PISANIA | UWAGA HOWTO W TRAKCIE PISANIA | ||
<br /><google1 style="4"></google1> | <br /><google1 style="4"></google1> | ||
