+ Post New Thread
Results 1 to 6 of 6
How do you do....it? Thread, Howto display an internet policy in Technical; I have just managed to set up a local proxy server with Dansguardian and NTLM. What I want to try ...
  1. #1

    Join Date
    Nov 2006
    Location
    Liskeard,Cornwall
    Posts
    36
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Howto display an internet policy

    I have just managed to set up a local proxy server with Dansguardian and NTLM. What I want to try to do now is set it up so that when a student tries to access the web for the first time in a day/week/month (need to decide the timing) they are redirected to a page containing a usage policy and an agree button that will send them to the original site.

    I am running on Fedora Core 6, Squid 2.6.STABLE4 and Dansguardian 2.9.8.1.

    Clients connect like so;

    Client -> Dansguardian -> Squid -> LEA's Proxy -> Internet.

    Any suggestions?

  2. #2

    Join Date
    Nov 2006
    Posts
    22
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    17

    Re: Howto display an internet policy

    We set up the internet policy on the homepage that students are forced to goto when first opening Internet Explorer. It's simply a case of using Group Policy. Doesn't do exactly what you want but miles easier.

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,819
    Thank Post
    110
    Thanked 589 Times in 510 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Howto display an internet policy

    You need to use something called a Captive portal. These are normally used for public WiFi (agreeing to the ToS before surfing off). However you should be able to adapt one to your situation.

    The wikipedia page lists lots of possible software options.

    http://en.wikipedia.org/wiki/Captive_portal

  4. #4

    Join Date
    Nov 2006
    Location
    Liskeard,Cornwall
    Posts
    36
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Howto display an internet policy

    Thanks for the suggestions, I got home and suddenly realised that Dansguardian can do this for me, it is a bit of a kludge and I haven't tested it yet but it should work.

    Basically you set the default filter list group to be a blanket block (so no internet access) and have it so that it displays a php page on the proxy (instead of the html template) that displays the policy with an agree link that when clicked the script adds that user name to the normal student access filter group and gets dansguardian to reload the groups, then redirects the user to the requested page. Then just have a cron job that runs daily/weekly/whenever that clears the filter group list (so everyone goes into the default filter group).

  5. #5
    mitcheln's Avatar
    Join Date
    Dec 2005
    Posts
    54
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Howto display an internet policy

    Quote Originally Posted by MarkB
    script adds that user name to the normal student access filter group and gets dansguardian to reload the groups
    I'd be really interested to hear how your testing goes.

    When you say "reload the groups" do you mean restart dansguardian? My dansguardian can take a few moments to restart which suspends things for those moments, which might result in patchy access elsewhere as a whole bunch of users force the process to restart.

    Ta.

  6. #6

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    Re: Howto display an internet policy

    I wrote this quick script for a school about 18 months ago. All it does is display the disclaimer before a child can fire off IE. You just need to point your browser shortcut to this script. You can compile it to a EXE if you download the rest of the language package. Its free and at:

    http://www.hiddensoft.com/

    One of the best free scripting languages out there.....
    Anyway - code as follows. Feel free to edit and change as requried:

    ; AutoIt Version: 2.64
    ; Language: English
    ; Platform: WinXP
    ; Author: Matt Marsh
    ; Date: 13th Nov 2004
    ; Script Function: Internet Policy For A N OTHER SCHOOL

    ;Relevant policy user has to click on before fireing up IE

    $__msgbox = MsgBox(4, 'SCHOOL CODE OF CONDUCT FOR USE OF THE SCHOOL NETWORK & THE INTERNET', _
    'This simplified code of conduct applies at all times, in and out of school hours, whilst using school equipment.' & @CRLF & _
    'Please read it carefully.' & @CRLF & _
    @CRLF & _
    'You should:' & @CRLF & _
    @CRLF & _
    '* Only access websites that are appropriate for use in school.' & @CRLF & _
    '* Be careful of what you say to others and how you say it.' & @CRLF & _
    '* Respect copyright and trademarks. (You cannot copy material' & @CRLF & _
    'without giving credit to the person or company that owns it.)' & @CRLF & _
    '* Check with a teacher before opening email attachments or' & @CRLF & _
    'completing on-line questionnaires or subscription forms.' & @CRLF & _
    @CRLF & _
    'You must not:' & @CRLF & _
    @CRLF & _
    '* Download games or other programs from the Internet.' & @CRLF & _
    '* Use chatlines or web-based email services (e.g Hotmail).' & @CRLF & _
    '* Send, access or display offensive messages or pictures.' & @CRLF & _
    '* Give your name, address, telephone number or any other personal' & @CRLF & _
    'information about yourself or others to anyone you write to.' & @CRLF & _
    '* Use or send bad language.' & @CRLF & _
    '* Intentionally waste resources thus preventing use by others.' & @CRLF & _
    @CRLF & _
    'Please note:' & @CRLF & _
    '* User areas on the school network will be closely monitored and' & @CRLF & _
    'staff may review your files and communications to maintain' & @CRLF & _
    'system integrity.' & @CRLF & _
    '* Failure to follow the code will result in loss of access and further' & @CRLF & _
    'disciplinary action may be taken if appropriate.' & @CRLF & _
    '* If applicable, external agencies may be involved, as certain' & @CRLF & _
    'activities may constitute a criminal offence.' & @CRLF & _
    @CRLF & _
    'If you are willing to accept these terms and conditions, click yes to continue.')

    if ($__msgbox = 7) Then
    Exit
    EndIf
    if ($__msgbox = 6) Then
    Run('c:\program files\internet Explorer\iexplore.exe')
    EndIf
    Exit

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 4
    Last Post: 6th March 2014, 02:00 PM
  2. Asterisk howto?
    By localzuk in forum General Chat
    Replies: 7
    Last Post: 20th September 2007, 07:13 PM
  3. Accept internet policy before IE loads
    By adamyoung in forum How do you do....it?
    Replies: 8
    Last Post: 24th March 2006, 12:34 PM
  4. opt out for internet policy
    By ranj in forum School ICT Policies
    Replies: 3
    Last Post: 2nd March 2006, 10:43 PM
  5. Replies: 8
    Last Post: 14th December 2005, 06:02 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •