Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dansguardian and Zope
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Sat Feb 21, 2004 3:33 pm    Post subject: Dansguardian and Zope Reply with quote

If you have to install Dansguardian on a host with Zope, but with no Apache close by, then you can use this DTML as a CGI script for displaying the danguardian's "access denied" message:

Code:

<dtml-var standard_html_header>
<CENTER>
<H2>ACCESS HAS BEEN DENIED</H2>

<dtml-if USER>
  <br><em><dtml-var USER></em>, access to the page:<P>
<dtml-else>
  <br>Access to the page:<P>
</dtml-if>
<strong><a href="<dtml-var DENIEDURL>"><dtml-var DENIEDURL></a></strong>
<P>... has been denied for the following reason:<P>
<strong><font color="#ff0000"><dtml-var REASON></font></strong>
<P>Your username, IP address, date, time and URL have been logged.
<P><table border=1 bgcolor="#FFEE00"><tr><td>You are seeing this error because the page you attempted<br>
to access contains, or is labelled as containing, material that
<br>has been deemed inappropriate.</td></tr></table>
<P><table border=1 bgcolor="#44dd44"><tr><td>If you have any queries contact your ICT Co-ordinator or Network Manager.</td></tr></table>
<P><font size=-3>Powered by <a href="http://dansguardian.org" target="_blank">DansGuardian</a></font>

</center>
<dtml-var standard_html_footer>


In ZMI create new DTML in the root, drop the code from above and make the title as "DansGuardian - Access Denied". In/etc/dansguardian/dansguardian.conf refer to that page:
Code:

accessdeniedaddress = 'http://MY.ZOPE.HOST:ZPORT/dansguardian_html'

where MY.ZOPE.HOST is the host name for your zope server, and ZPORT is the port it's listening.

Just to remind: make sure you also have defined these dansguardian's own and squid's listening parameters:
Code:

filterip = 192.168.0.1
filterport = 8008
proxyip = 192.168.0.1
proxyport = 3128

Change IP addresses and ports to actual values your dansguardian and squid are supposed to listen.

That's it. Enjoy.
_________________
"Lisp is a programmable programming language." - John Foderaro, CACM, September 1991
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum