Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 22 November 2024, 09:53:23 am

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14258 Posts in 4377 Topics by 6516 Members
Latest Member: DaveH
Search:     Advanced search
+  EFW Support
|-+  Development
| |-+  Contribute Your Customisations & Modifications
| | |-+  HowTo: Content filter profile with bypass link.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: HowTo: Content filter profile with bypass link.  (Read 23900 times)
whoiam55
Full Member
***
Offline Offline

Posts: 71



WWW
« on: Monday 29 March 2010, 04:12:51 am »

What you need.
............................
Endian (of course)
winscp
putty

Follow these steps

1. Go to Proxy > content filter > Create a new profile and name it bypass or whatever you want. (it must show something like this bypass (ContentX) remember this x number)

2. Go to Proxy > Access Policy > add a new policy and select the bypass profile.

3. Go to System > ssh access > enable ssh access.

4. fireup winscp or putty > open /etc/dansguardian/dansguardianfX.conf file where x is the number I ask you to remember (if you are using winscp you can right click on the file to edit it).

5. Browse to the section where it say
Code:
# temporary bypass blocks
bypass = 0
bypasskey = ''

Change the bypass=0 to whatever you want.(The value is in second, 300 is good)

6. In the same file, browse to the section where it say
Code:
#htmltemplate = 'custom.html'
remove # sign and change it to
Code:
htmltemplate= 'bypass.html'

7.make a copy of /usr/share/dansguardian/languages/select_your_language/templete.html file and name it bypass.html and place it to /usr/share/dansguardian/languages/select_your_language/ folder

8. Open /usr/share/dansguardian/languages/select_your_language/bypass.html file and  insert the following code in suitable place make sure you don't break html rules.
Code:
<a href="-BYPASS-">Click here to bypass</a>

9. Open putty and issue this command
Code:
/etc/init.d/dansguardian reload
10. Test test test Wink
Logged

सत्यमेव जयते!
gyp_the_cat
Full Member
***
Offline Offline

Posts: 81



WWW
« Reply #1 on: Tuesday 30 March 2010, 08:55:22 pm »

Wow Smiley

Thanks whoami, will be implementing your work around soon!

Always a bit of functionality I've wanted in Endian the bypass feature Smiley
Logged
xxxx
Jr. Member
*
Offline Offline

Posts: 9


« Reply #2 on: Friday 30 April 2010, 04:41:15 am »

Works great but can the bypass password protected?
Logged
whoiam55
Full Member
***
Offline Offline

Posts: 71



WWW
« Reply #3 on: Monday 03 May 2010, 02:23:10 pm »

Works great but can the bypass password protected?
yes, you could include a password, Just read up on dansguardian wiki.
Logged

सत्यमेव जयते!
Pages: [1] Go Up Print 
« previous next »
Jump to:  

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