Author Topic: Dansguardian "Access has been Denied!" page customization  (Read 20032 times)

one_two

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Dansguardian "Access has been Denied!" page customization
« on: May 15, 2010, 12:21:59 am »
I'm unable to customize the access denied page for Dansguardian.  I've tried editing the /etc/dansguardian/languages/ukenglish/template.html file and restarting the http proxy module.  When I access a URL that is blocked I still get the default access denied page with none of my changes.  Any ideas on what I'm doing wrong?

First bit of /etc/dansgaurdian/dansgaurdian.conf
Code: [Select]
reportinglevel = 3

languagedir = '/etc/dansguardian/languages'

language = ukenglish

loglevel = 3

logexceptionhits = 1

# Log File Format
# 1 = DansGuardian format        2 = CSV-style format
# 3 = Squid Log File Format      4 = Tab delimited
logfileformat = 3


loglocation = '/var/log/dansguardian/access.log'

filterip =

filterport = 3129

proxyip = 127.0.0.1

proxyport = 8080

# accessdeniedaddress is the address of your web server to which the cgi
# dansguardian reporting script was copied
# Do NOT change from the default if you are not using the cgi.
#
accessdeniedaddress = 'http://YOURSERVER.YOURDOMAIN/cgi-bin/dansguardian.pl'

# Non standard delimiter (only used with accessdeniedaddress)
# Default is enabled but to go back to the original standard mode dissable it.
nonstandarddelimiter = on


usecustombannedimage = on
custombannedimagefile = '/usr/share/dansguardian/transparent1x1.gif'

muppetgeoff

  • Zen Apprentice
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #1 on: May 16, 2010, 04:49:48 am »
Hi,

Make sure you restart the module in the WebUI, as I found that using /etc/init.d/ebox squid restart' didn't cause DansGuardian to reload. I did once restart DansGuardian itself (/etc/init.d/dansguardian restart) but found that the eBox scripts wouldn't restart it properly until I restarted the whole things (/etc/init.d/ebox restart)

Kind regards,

Geoff

p.s. did you modify the original template.html, or create a new one? if you replaced it, make sure the permissions and the case (e.g. template.html *NOT* Template.html) are correct.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #2 on: May 17, 2010, 05:37:08 pm »
What screen are you getting?. Maybe is a squid page and in this case you should customize squid's tempaltes too.

This is discussed here -> http://forum.ebox-platform.com/index.php?topic=3092.0

BTW, '/etc/init.d/ebox squid restart' restarts dansguardian if the HTTP proxy module has a configuration that uses it (in other cases dasnguardian is stopped).

bluekrash

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #3 on: October 19, 2010, 05:10:27 pm »
Hi,  for create custom template denied page for dansguardian(squid) u need to go and edit /usr/share/ebox/stubs/squid/template.html.mas

andre_ars

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +1/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #4 on: March 18, 2013, 12:48:30 pm »
For Zental 3.0:
/usr/share/zentyal/stubs/squid

newlok

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #5 on: March 18, 2013, 12:53:19 pm »
For Zental 3.0:
/usr/share/zentyal/stubs/squid

Thanks for the tip Andre

rubensm80

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Dansguardian "Access has been Denied!" page customization
« Reply #6 on: April 17, 2013, 03:31:38 pm »
Hello, I had the same problem and located the error page users get when trying to access a web under a forbidden category on /usr/share/squid3/es/ERR_ACCESS_DENIED

The problem is that I would like squid to use the other template, located under "/user/share/zentyal/stubs/squid/template.html.mas" because it can be modified to show some variables containing useful information -REASONLOGGED-,-CATEGORIES- etc... The other templates can't show that info. (at least I don't know how)

How could I change that template?

Thanks