Welcome, Guest. Please login or register.
Did you miss your activation email?
Thursday 19 December 2024, 09:54:24 am

Login with username, password and session length

Download the latest community FREE version  HERE
14262 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  EFW SMTP, HTTP, SIP, FTP Proxy Support
| | |-+  Change the look of the Access Denied Page
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] 2  All Go Down Print
Author Topic: Change the look of the Access Denied Page  (Read 100404 times)
laythingy59
Full Member
***
Offline Offline

Posts: 40


« 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

Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #1 on: Friday 20 March 2009, 02:29:37 am »

squid error pages?
Check /usr/share/squid/errors/English/
Logged
laythingy59
Full Member
***
Offline Offline

Posts: 40


« Reply #2 on: Thursday 26 March 2009, 02:25:15 am »

coolio.

thanks
Logged
buee
Jr. Member
*
Offline Offline

Posts: 2


« Reply #3 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?
Logged
smoke_007
Jr. Member
*
Offline Offline

Posts: 5


« Reply #4 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
Logged
entourage
Full Member
***
Offline Offline

Posts: 48


« Reply #5 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"
Logged
npeterson
Full Member
***
Offline Offline

Posts: 90


« Reply #6 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
Logged
entourage
Full Member
***
Offline Offline

Posts: 48


« Reply #7 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!




Logged
zabidin2
Jr. Member
*
Offline Offline

Posts: 8


« Reply #8 on: Monday 20 July 2009, 11:16:51 am »

@entourage

Can you show me step how to change that? I kind blurr right now.
Logged
entourage
Full Member
***
Offline Offline

Posts: 48


« Reply #9 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!


Logged
zabidin2
Jr. Member
*
Offline Offline

Posts: 8


« Reply #10 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?
Logged
entourage
Full Member
***
Offline Offline

Posts: 48


« Reply #11 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
Logged
entourage
Full Member
***
Offline Offline

Posts: 48


« Reply #12 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...
Logged
davvidde
Full Member
***
Offline Offline

Gender: Male
Posts: 68


« Reply #13 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
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #14 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!!!
Logged
Pages: [1] 2  All Go Up Print 
« previous next »
Jump to:  

Page created in 0.141 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com