EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: Dirk on Tuesday 19 November 2013, 07:13:16 pm



Title: How to add words to block sites?
Post by: Dirk on Tuesday 19 November 2013, 07:13:16 pm
Hello,

I reinstalled Endian 2.5

-- I enabled content filtering based on the words (phrases).
-- The proxy is set in a manner NOT transparent.
-- By activating certain categories everything works perfectly.

But how can I add new words / phrases to block certain sites?
Which file should I change?
If I wanted to block sites  poker how should I do?
Please give me some help.
Thank you.


Title: Re: How to add words to block sites?
Post by: dda on Wednesday 20 November 2013, 02:24:40 am
Did you turn on the games and gambling filter?  Also if there is a particular site you can blacklist it.


Title: Re: How to add words to block sites?
Post by: anderberin on Thursday 30 January 2014, 12:57:36 am
I do it with the command line...

Go to the directory "/var/signatures/dansguardian/blacklists":
Code:
cd /var/signatures/dansguardian/blacklists

Create a new sub dir and change to it: ("mycustom" in my example)
Code:
mkdir mycustom
cd mycustom

With nano editor (or other) create a file with the name "expressions"
Code:
nano expressions

write yours words (Regular Expressions) one by line

Open the web interface.
Go to "Proxy" -> "ContentFilter" -> and edit your profile
Select "Filter pages known to have content of the following categories. (URL Blacklist)"
Expand the "Uncategorized" section.
the option "mycustom" shoud appear (the name of the dir created)
select it and save

Tested with 2.5.1 and 2.5.2 versions

don't work with 3.0 version :-(

If you don't want to use de command line interface, you can use de WinSCP software for create and edit files on your Endian Firewall . (you must enable de SSH service). And use a editor like Notepad++ to edit the linux files from endian.

Sorry by my poor english...