EFW Support

Support => General Support => Topic started by: wcage03 on Monday 25 March 2013, 08:05:13 am



Title: Dansguardian URL regular expressions
Post by: wcage03 on Monday 25 March 2013, 08:05:13 am
I would like to enable the safe search feature for Google using Dansguardian.  I found some info on the net about how to modify the file urlregexplist to enable this, but it doesn't seem that DG is using this file as expected.  Anyone have any insight into how to accomplish this?


Title: Re: Dansguardian URL regular expressions
Post by: fqureshi on Monday 25 March 2013, 08:10:57 am
I tried to accomplish this task but still no success...


Title: Re: Dansguardian URL regular expressions
Post by: elzinga on Sunday 31 March 2013, 12:39:32 pm
looks like what is happening is every time you restart your proxy, Endian creates a blank urlregexplist in /etc/dansguardian/profiles/<num>.  This is the file that actually gets used.  Furthermore, the configuration file, /etc/dansguardian/dansguardian<filt>.conf gets overwritten as well.


Title: Re: Dansguardian URL regular expressions
Post by: wcage03 on Wednesday 03 April 2013, 12:58:40 pm
So, any ideas for a workaround?  I would like to take advantage of this to turn on Google (and others) safe search.  Are there other ways to accomplish this?


Title: Re: Dansguardian URL regular expressions
Post by: elzinga on Sunday 28 April 2013, 10:07:45 pm
It looks like you need to modify /etc/dansgaurdian/lists/urlregexplist file although I have done this and the file seems to be in the proper place, the safe search is not enabled.  Not sure what to do at this point.


Title: Re: Dansguardian URL regular expressions
Post by: mrkroket on Saturday 04 May 2013, 12:46:34 am
When trying to tweak .conf files, you should modify the template files (.conf.tmpl), not the generated ones (.conf)


Title: Re: Dansguardian URL regular expressions
Post by: karlhenselin on Wednesday 15 May 2013, 12:47:09 pm
The advice on editing the tmpl files is good, but I don't think that the urlregexplist file has a templ file. (EFW 2.5.1)
I was thinking I would edit some script somewhere and add a line to copy my file from somewhere else to there, or maybe chmod the file after editing to be read only.
Did you find a better solution then either of those, or have a recommendation between them?

Thanks.


Title: Re: Dansguardian URL regular expressions
Post by: karlhenselin on Wednesday 15 May 2013, 09:25:35 pm
So rereading the posts above, I could also perhaps just make a new file that isn't overwritten and point the dansguardianf#.conf.temp to that other file?
I was worried that might get written over if I do that though.
That might be a nice easy solution for me. I will try it.