EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: laythingy59 on Saturday 14 March 2009, 02:33:28 am



Title: Change the look of the Access Denied Page
Post by: laythingy59 on Saturday 14 March 2009, 02:33:28 am
when a page is denied, you get a plain webpage which basically says you dont have access.....

does anyone know how to change this page...... it was pretty simple in IPCOP, but i cant find it on endian



Title: Re: Change the look of the Access Denied Page
Post by: mrkroket on Friday 20 March 2009, 02:29:37 am
squid error pages?
Check /usr/share/squid/errors/English/


Title: Re: Change the look of the Access Denied Page
Post by: laythingy59 on Thursday 26 March 2009, 02:25:15 am
coolio.

thanks


Title: Re: Change the look of the Access Denied Page
Post by: buee on Wednesday 01 April 2009, 03:20:06 pm
I don't even get that, just a browser timeout.  Is there a way to turn this feature on/off?


Title: Re: Change the look of the Access Denied Page
Post by: smoke_007 on Wednesday 29 April 2009, 05:02:37 am
Actually, the file you want to edit is named template.html and it's located at usr\share\dansguadian\languages\ukenglish

Marc


Title: Re: Change the look of the Access Denied Page
Post by: entourage on Saturday 11 July 2009, 05:00:00 am
Is there a way to add the category the offending site was apart of? 

It would be nice to see "Banned Site: shoutcast.com; Category: WebRadio"


Title: Re: Change the look of the Access Denied Page
Post by: npeterson on Wednesday 15 July 2009, 01:10:20 am
See the following wiki entry for dansguardian.

http://contentfilter.futuragts.com/wiki/doku.php?id=delivering_block_messages#html_file_parameters


Title: Re: Change the look of the Access Denied Page
Post by: entourage on Wednesday 15 July 2009, 11:56:35 pm
Thanks for that link.  I'll have to modify my lists, putting

#listcategory: "category"

at the top of each, but it works!  Thanks!

(http://img263.imageshack.us/img263/9790/accessdenied2.th.jpg) (http://img263.imageshack.us/i/accessdenied2.jpg/)




Title: Re: Change the look of the Access Denied Page
Post by: zabidin2 on Monday 20 July 2009, 11:16:51 am
@entourage

Can you show me step how to change that? I kind blurr right now.


Title: Re: Change the look of the Access Denied Page
Post by: entourage on Wednesday 22 July 2009, 12:41:51 am
Here's the relevant portion of my template.html:

Code:
<BODY>
<!--
Url: -URL-
Reason: -REASONGIVEN-
Reasonlogged: -REASONLOGGED-
User: -USER-
IP: -IP-
Filtergroup: -FILTERGROUP-
Category: -CATEGORIES-
Byp: -BYP-
-->

<br>
<br>
<CENTER>

<table cellpadding="20" bgcolor="#efefef">
<tr>
<td align="center">
<H1>Access has been denied!</H1>

 Access to the page:
<P>
<strong><a href="-URL-">-URL-</a></strong>
<P> ... has been denied for the following reason: <P>
<strong><font color="#000000">-CATEGORIES-</font></strong>

<br>
<br>
You are seeing this error because what you attempted to access appears to contain,<br>
or is labeled as containing, material that has been deemed inappropriate.<br>
<p>
If you have any questions contact someone in IT.
</p>
</td>
</tr>
</table>

Then in order for the -CATEGORIES- to work, you have to manually edit your /etc/dansguardian/blacklists/(category)/domains list and add to the very top:

#listcategory: "Streaming TV" (or whatever you want it to say)

You'll have to do that to each category domain list you have blocked.  Otherwise it will say N/A.

Hope that helps!




Title: Re: Change the look of the Access Denied Page
Post by: zabidin2 on Wednesday 22 July 2009, 11:42:51 am
I add #listcategory in /etc/dansguardian/blacklists/domains and i test it's show N/A. By the way, what is different between dansguardian.conf dansguardian1.conf? Can i disable content filter in dansguardian1.conf and customize my own?


Title: Re: Change the look of the Access Denied Page
Post by: entourage on Thursday 23 July 2009, 12:37:40 am
I can't speak for the dansguardian.conf vs dansguardian1.conf because I don't know when they both do, but for the categories to work you will need to modify the domains file one level further.

Instead of /etc/dansguardian/blacklists/domains

modify /etc/dansguardian/blacklists/news/domains
with
Code:
#listcategory: "News"

Then make sure you're set to block the 'news' category


Title: Re: Change the look of the Access Denied Page
Post by: entourage on Tuesday 18 August 2009, 04:36:02 am
So in conjunction with this, is there anyone brilliant enough to write a script to automatically update the lists with the appropriate #listcategory: ??

Surely there's a way, but my programming skills are primitive at best...


Title: Re: Change the look of the Access Denied Page
Post by: davvidde on Sunday 20 June 2010, 08:42:03 am
This is not seem to work in EFW 2.4 (I haven't tested it on older version).

I can't speak for the dansguardian.conf vs dansguardian1.conf because I don't know when they both do, but for the categories to work you will need to modify the domains file one level further.

Instead of /etc/dansguardian/blacklists/domains

modify /etc/dansguardian/blacklists/news/domains
with
Code:
#listcategory: "News"

Then make sure you're set to block the 'news' category


Title: Re: Change the look of the Access Denied Page
Post by: mrkroket on Wednesday 07 July 2010, 07:58:38 am
So in conjunction with this, is there anyone brilliant enough to write a script to automatically update the lists with the appropriate #listcategory: ??

Surely there's a way, but my programming skills are primitive at best...
I was just thinking the very same. I'm not going to manually update all those files!!!


Title: Re: Change the look of the Access Denied Page
Post by: deryk on Thursday 14 October 2010, 09:56:20 pm
No problems here on 2.4.  Thanks for the info on which file to edit.  All I needed to do was add -CATEGORIES- to /usr/share/dansguardian/languages/ukenglish/template.html.  No other files needed to be edited (good - adding all those listcategory entries sounded like a pain!)

You do have to restart the proxy though, for the changes to take effect.


Title: Re: Change the look of the Access Denied Page
Post by: nishith on Friday 19 October 2012, 10:34:53 pm
Hello,

Please let me know the changes needed in "dansguardian.conf" file. I have made "#listcategory: <category name>", but don't show in ERROR PAGE. I am using "endian community 2.5" version.

Nishith