EFW Support
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2013, 02:56:35 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
The Latest Endian Firewall is now available for download
HERE
9710
Posts in
3234
Topics by
2396
Members
Latest Member:
WillisEng
Search:
Advanced search
EFW Support
EFW 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
Author
Topic: Change the look of the Access Denied Page (Read 16417 times)
laythingy59
Full Member
Offline
Posts: 40
Change the look of the Access Denied Page
«
on:
March 14, 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
Posts: 448
Re: Change the look of the Access Denied Page
«
Reply #1 on:
March 20, 2009, 02:29:37 am »
squid error pages?
Check /usr/share/squid/errors/English/
Logged
laythingy59
Full Member
Offline
Posts: 40
Re: Change the look of the Access Denied Page
«
Reply #2 on:
March 26, 2009, 02:25:15 am »
coolio.
thanks
Logged
buee
Jr. Member
Offline
Posts: 2
Re: Change the look of the Access Denied Page
«
Reply #3 on:
April 01, 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
Posts: 5
Re: Change the look of the Access Denied Page
«
Reply #4 on:
April 29, 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
Posts: 48
Re: Change the look of the Access Denied Page
«
Reply #5 on:
July 11, 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
Posts: 90
Re: Change the look of the Access Denied Page
«
Reply #6 on:
July 15, 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
Posts: 48
Re: Change the look of the Access Denied Page
«
Reply #7 on:
July 15, 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
Posts: 8
Re: Change the look of the Access Denied Page
«
Reply #8 on:
July 20, 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
Posts: 48
Re: Change the look of the Access Denied Page
«
Reply #9 on:
July 22, 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
Posts: 8
Re: Change the look of the Access Denied Page
«
Reply #10 on:
July 22, 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
Posts: 48
Re: Change the look of the Access Denied Page
«
Reply #11 on:
July 23, 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
Posts: 48
Re: Change the look of the Access Denied Page
«
Reply #12 on:
August 18, 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
Gender:
Posts: 68
Re: Change the look of the Access Denied Page
«
Reply #13 on:
June 20, 2010, 08:42:03 am »
This is not seem to work in EFW 2.4 (I haven't tested it on older version).
Quote from: entourage on July 23, 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
mrkroket
Hero Member
Offline
Posts: 448
Re: Change the look of the Access Denied Page
«
Reply #14 on:
July 07, 2010, 07:58:38 am »
Quote from: entourage on August 18, 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...
I was just thinking the very same. I'm not going to manually update all those files!!!
Logged
Pages:
[
1
]
2
All
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Project News
=> Latest News and Updates
-----------------------------
EFW Support
-----------------------------
=> EFW Firewall General Support
=> Installation Support
=> EFW SMTP, HTTP, SIP, FTP Proxy Support
=> VPN Support
=> Hardware Support
-----------------------------
Development
-----------------------------
=> EFW Wishlist
=> Contribute Your Customisations & Modifications
Page created in 0.118 seconds with 16 queries.
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
Design by
7dana.com