summaryrefslogtreecommitdiffstats
path: root/blob.c
Commit message (Collapse)AuthorAgeFilesLines
* filter: do not modify deniedurl cgi parameterTimo Teräs2010-08-191-4/+18
| | | | | | | Keep the modifications (which are needed for key lookup) inside the lookup routine. This includes e.g. lower casing the URL. This way can pass the exact original request string to our block page script. This also changes the way 'www123.' is stripped from the request.
* filter: url encoding of block script parametersTimo Teräs2010-08-191-3/+104
| | | | and pass the denied url too.
* filter: properly filter ipv4 address form urlsTimo Teräs2010-08-191-0/+18
| | | | properly match them against db data.
* blob: definite null blob inlineTimo Teräs2010-08-181-1/+0
| | | | | Should be faster in most cases to write two null words than to copy them around.
* filter: squid interfacing code, basic minimum configurationTimo Teräs2010-08-141-0/+16
| | | | | | | | | | Implement squid redirect protocol. It implements the "concurrent" version even though the algorithm is non-blocking. Doing this can reduce the amount of read system calls on busy system. Minimum command line based configuration for banning specific categories and specifying the redirect site. Will probably have to add some sort of config file system later.
* filter: fix db building issues and implement path component matchingTimo Teräs2010-08-131-1/+65
| | | | | | | | Fixes has sub domains/paths hints to be correct. www<number> as first domain entry matching now checks it won't remove second level domain names. And the filter code now looksup path components from the db.
* filter: implement basic analysis of urlsTimo Teräs2010-08-111-0/+20
| | | | | Analysing of the url host part, some simple tests. Not usable as squid filter yet.
* blob: use uppercase for macroes, add some functionalityTimo Teräs2010-08-101-7/+62
| | | | Normalizing macro names to upper case and extending functionality.
* squark: split generic blob code to it's own fileTimo Teräs2010-08-101-0/+127
it's useful in other binaries than squark-auth too.