I would like to be able to edit the global blacklists and whitelists files directly instead of having to enter URLs one at a time through the UI. This would save time when setting up a new server, as my whitelist files are very long. Not sure where the files live or if editing them directly would work. Does anyone know?
I think we could offer a webpage to upload a file. Better, both upload and download.
It would be great to have our own blacklist with porn sites, gaming, etc.
Ah, I didn’t see it. /var/squidGuard/blacklists/custom/whitelist … blacklist … files
Yes, a webpage to upload/download a text file would be very nice.
Wait, there is a mistake.
Both global white/blacklists are templates.
The right path is:
- /var/squidGuard/blacklists/custom/whitelist/domains (and urls)
- /var/squidGuard/blacklists/custom/blacklist/domains (and urls)
So, if you need to provision a server, you should use a template custom:
mkdir -p /etc/e-smith/templates-custom/var/squidGuard/blacklists/custom/whitelist/domains/ echo -n "mysite.com\nmymightyblog.com" > /etc/e-smith/templates-custom/var/squidGuard/blacklists/custom/whitelist/domains/20custom
(Warning: above lines are only 2 commands, Discourse breaks them intro 3 lines)
What do you think about uploading custom blacklists?
Yes, two! I’ve just corrected the sentence.
It can be very useful, we need to add support for file upload inside the UI framework.
In the meantime, you can “upload” the blacklist as a custom template.
In my own experience, the downloadable blacklists do a good job. The problem is with regex URL filtering. Turning off the regex processing of URLs will let sites through that haven’t made it to the blacklist. Turning it on creates lots of false positives. At the moment I’ve turned off URL regex filtering, but if I turn it back on I know I will have to add in a large whitelist to compensate for the false hits.
Thanks for the script, Giacomo.
a proof more against discourse @alefattorini
+1, 5 is too much
Where do I find Custom Categories blacklists, I want to enter multiple domains and I can not find?
I created / var/squidGuard/blacklists/custom/bom/domains but only I can update domain by domain.
Thanks in advance!
You need to use the web interface, just go the black list and add your domain:
Web content filter -> Custom categories -> Create new
Thank you very much for the support, but I already created the list, I would like to update this way.
mkdir -p /etc/e-smith/templates-custom/var/squidGuard/blacklists/custom/whitelist/domains/
echo -n “mysite.com\nmymightyblog.com” > /etc/e-smith/templates-custom/var/squidGuard/blacklists/custom/whitelist/domains/20custom