quote:
It's just configuring it to block "specific" words thats giving me a headache
i need to be able to filter out urls that contain such words as porn, hardcore
etc etc. guess you all get the picture..
Yup, sure do.
A very basic filter that does this, is the following:
[Blocklists]
List.KillList = "..ListsKillList.txt"
[Patterns]
In = FALSE
Out = TRUE
Key = "URL-Killer: not allowed (out)"
URL = "$LST(KillList)"
Replace = "URL from KillList killedk"
It uses a list called KillList, which contains the words you are looking for. It will prevent any access to those sites from browsers which are behind the Proxomitron.
The advantage of using a list, is that it is far easier to edit and maintain.
It will display the page killed.html in Proxomitron's HTML folder instead, so edit that one for your wanted replacement page. Since that can be any HTML page, it is even possible to send an administrative warning by using scripting.
Let me know if this is what you are looking for, and I can upload a zipfile with config file and example blocklist you can directly import into Proxomitron.
Oh, and make sure you are using Proxomitron 4.x 
quote:
I know you guys probably think i am a plonker
Not at all -- we were all n00bs once 
I have a set of filters which I wrote just for that purpose and which I have attached. Just unzip the files to your proxo folder and merge the Oops.cfg with yours. Then whatever keywords you want to block just add them to the Oops list. If you find a site is blocked in error add its hostname to the OopsExceptions list. If you find a site that should have matched but didn't and you are sure it contains one of the keywords you are filtering then increase the byte limit in the "Oops! II - Body Check" filter until it does match.
The Oops list I am providing is empty because I don't feel right publishing a list of nasty words, but if you like I will send it to you via email. My addy is hpguru --AT-- hotmail -DOT- com.
List.Oops = "..ListsOops.txt"
List.OopsExceptions = "..ListsOopsExceptions.txt"
[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL-Killer: Oops! (out)"
URL = "((*$LST(Oops))&(^$LST(OopsExceptions)))&$RDIR(http://Local.ptron/Oops.html)"
[Patterns]
Name = "Add </head> tag when missing - altosax v2"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Limit = 7
Match = "(</head>)1$STOP()|(<body)2$SET(1=</head>)"
Replace = "12$STOP()"
Name = "Oops! I - Header Check"
Active = TRUE
URL = "(^$LST(OopsExceptions))"
Bounds = "$NEST(<head>,</head>)"
Limit = 2500
Match = "*($LST(Oops))*"
Replace = "<head><title>Oops!</title>
"
"<SCRIPT LANGUAGE="JavaScript">
"
"document.location.href = "http://Local.ptron/Oops.html";
"
"</SCRIPT>
"
"<NOSCRIPT>
"
"<meta http-equiv="refresh" content="0;url=http://Local.ptron/Oops.html">
"
"</NOSCRIPT>
"
"$STOP()"
Name = "Oops! II - Body Check"
Active = TRUE
URL = "(^$LST(OopsExceptions))"
Limit = 2048
Match = "</head>*($LST(Oops))*"
Replace = "<SCRIPT LANGUAGE="JavaScript">"
"document.location.href = "http://Local.ptron/Oops.html";"
"</SCRIPT>"
"<NOSCRIPT>"
"<meta http-equiv="refresh" content="0;url=http://Local.ptron/Oops.html">"
"</NOSCRIPT></head><body></body></html>"
"$STOP()"
Attachment: oops.zip (http://"uploaded/hpguru/200282223927_oops.zip") 55,84 KB
Edited by - hpguru on 22 Aug 2002 02:39:44