Author Topic: Keyword content blocker (Greg)  (Read 2578 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Keyword content blocker (Greg)
« on: August 09, 2001, 05:12:34 PM »
This filter uses a txt file (see below) and blocks pages which have one of the words on the blocklist. Pages can also be bypassed by placing them in the place for this in the same txt file.

[Blocklists]
List.naughty = "..
aughty.txt"

[Patterns]
Name = "Keyword content blocker"
Active = TRUE
Multi = TRUE
URL = "(^$LST(naughty))"
Limit = 8124
Match = "*$LST(naughty)*"
Replace = "<html><head><title>Forbidden</title></head>"
          "<body bgcolor="red" text="black">"
          "<h3>This page contains porn or vulgarity!</h3>"
          "If you wish to view this site, place it into the naughty.txt file."
          "</body></html>
k"


The text file looks like this and named naughty.txt Just replace the word badword with really badwords and make the list as long as you wish.
-------------------------8<----------------------------
## If a site contains any of these words, block it ->
badword
badword
badword
badword


## ->  unless it is at one of these sites:
www.SomeBadSite.com/whatever/*

-------------------------8<----------------------------
Best wishes
Arne




Edited by - Arne on 09 Aug 2001  19:39:55
Best wishes
Arne
Imici username= Arne

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Keyword content blocker (Greg)
« Reply #1 on: September 30, 2001, 10:08:25 AM »
By Greg.
The above can be combined with a "Parents Control" like this:

[Blocklists]
List.KidsOnly = "..KidsOnly.txt"
List.Naughty = "..Naughty.txt"


Name = "The Kids Only Filter"
Active = TRUE
URL = "(^$LST(KidsOnly))"
Bounds = "<*>"
Limit = 16
Match = "*"
Replace =
"<html><head><title>Forbidden</title></head>"
          "<body bgcolor="white" text="black">"
          "<h3>This page has been blocked by the
parents of this household!</h3>"
          "</body></html>
k"


Name = "Keyword content blocker"
Active = TRUE
URL = "www.(^$LST(naughty))"
Limit = 16
Match = "$LST(naughty)"
Replace =
"<html><head><title>Forbidden</title></head>"
          "<body bgcolor="red" text="black">"
          "<h3>This page contains porn or
vulgarity!</h3>"
          "If you wish to view this site, place
it into the naughty.txt file.<br>"
          "<a href="http://bypass..u">Bypass
block and view this site now.<br>"
          "Note: Bypass will disable ALL
filters.</a>"
          "</body></html>
k"

in the KidsOnly.txt file:

## The kids may only go to these sites:
www.disney.com
www.yahoo.com

in the Naughty.txt file

## If a site contains any of these words, block
it ->
badword
badword
badword
badword

## ->  unless it is at one of these sites (do not include www.):
sexeducation.com/*
breastcancer.com/*


Remark from Arne: The "naughty" list can slow down surfing very much.



Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne