<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/vnd.ui.insecure+html;charset=utf-8">
</head>
<body style="overflow-wrap:break-word; word-break: break-word;"><div class="mail_android_message" style="line-height: 1; padding: 0.5em">I am currently using:<br/><br/>###blocked websites###<br/>acl blockedsites dstdomain .<a href="http://domain1.com">domain1.com</a> .<a href="http://domain2.com">domain2.com</a> .<a href="http://domain3.com">domain3.com</a><br/>###end blocked websites###<br/><br/>http_access deny blockedsites<br/><br/>Simple and working ;)<br/><br/>--<br/>Diese Nachricht wurde von meinem Android Mobiltelefon mit <a href="http://WEB.DE">WEB.DE</a> Mail gesendet.</div><div class="mail_android_quote" style="line-height: 1; padding: 0.3em"><html><body>Am 09.03.21, 12:58 schrieb roee klinger <roeeklinger60@gmail.com>:</body></html><blockquote class="gmail_quote" style="margin: 0.8ex 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">
Hey,
<br>
<div>
<br>
</div>
<div>
I have found a lot of outdated or conflicting information about this online, and since this is a really important matter, I wanted to make sure I am doing this correctly.
</div>
<div>
<br>
</div>
<div>
I am attempting to block some websites completely, including all HTTPS traffic and subdomains.
</div>
<div>
<br>
</div>
<div>
Squid.conf:
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<font size="1">acl domain_blacklist dstdomain "/etc/squid/domain_blacklist.txt"</font>
</div>
<div>
<font size="1">http_access deny all domain_blacklist</font>
</div>
<div>
<font size="1">http_reply_access deny domain_blacklist</font>
</div>
<div>
<font size="1">http_access deny CONNECT domain_blacklist</font>
</div>
</blockquote>
<div>
<br>
</div>
<div>
/etc/squid/domain_blacklist.txt:
<br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<font size="1">.ph</font>
</div>
<div>
<font size="1">.<a href="http://somepornwebsite.com">somepornwebsite.com</a></font>
</div>
<div>
<font size="1">.<a href="http://facebook.com">facebook.com</a></font>
</div>
</blockquote>
<div>
<br>
</div>
<div>
.ph - will block all websites that have the .ph <span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px">TLD including subdomains.</span>
</div>
<div>
.<a href="http://somepornwebsite.com">somepornwebsite.com</a> - will block all traffic to <a href="http://somepornwebsite.com">somepornwebsite.com</a>, including all subdomains.<span style="color:rgb(77,81,86);font-family:arial,sans-serif;font-size:14px"><br></span>
</div>
<div>
.<a href="http://facebook.com">facebook.com</a> - will block all traffic to FB including subdomains.
<br>
</div>
<div>
<br>
</div>
<div>
Am I doing this the right way?
</div>
<div>
Thanks
</div>
<div>
<br>
</div>
</div> _______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
</blockquote></div></body>
</html>