LINUX.ORG.RU

Как убрать выхлоп squid, образовавшийся вместо заблокированных рекламных баннеров

 , ,


0

1

Сделал себе сервер squid, забанил рекламу, но теперь вместо рекламы «ОШИБКА Запрошенный URL не может быть получен», как сделать чтобы это вообще пропало?

Скрин прилагаю

Ответ на: комментарий от Avial

Вот так все сделал, не работает, ЧТЯДНТ?

squid.conf

http_port 3128

auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /usr/local/etc/squid/passwd
auth_param basic children 1
auth_param basic realm Welcome to mfhunruh's proxy server!
auth_param basic credentialsttl 2 hours

acl all src all
acl users proxy_auth REQUIRED

acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT

acl purge method PURGE
acl CONNECT method CONNECT

url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf

http_access allow users

http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all                                                  
icp_access deny all

forwarded_for off
request_header_access From deny all
request_header_access Server deny all
request_header_access User-Agent deny all
request_header_access WWW-Authenticate deny all
request_header_access Link deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all

cache_mem 8 MB
cache_dir null /tmp
cache deny all

shutdown_lifetime 5 seconds

access_log none all
cache_store_log none
squidGuard.conf
#
# CONFIG FILE FOR SQUIDGUARD
#

dbhome /usr/local/share/examples/squidGuard/blacklists
logdir /var/log/squidGuard


#
# DESTINATION CLASSES:
#

dest adblock {
        expressionlist  adblock/expressions
        redirect        https://upload.wikimedia.org/wikipedia/commons/c/ce/Transparent.gif
}


acl {
        default {
                pass     !adblock all
                redirect https://upload.wikimedia.org/wikipedia/commons/c/ce/Transparent.gif
        }
}

# squidGuard -d -C all 
# /usr/local/etc/rc.d/squid restart
mfhunruh ()