summaryrefslogtreecommitdiffstats
path: root/src/squark-filter.c
Commit message (Collapse)AuthorAgeFilesLines
* fix overlapped memcpyTimo Teräs2015-06-031-1/+1
|
* filter: default path is const and thus non-writableTimo Teräs2014-11-271-3/+2
| | | | | fix crash that would happen in blob_lowercase due to trying to write rodata.
* squark-filter, squark-auth-ip: avoid overflow of login_name bufferAlex Dowad2014-05-011-1/+3
|
* squark-filter: in verbose mode, report category of each processed URLAlex Dowad2014-04-271-3/+14
|
* squark-filter, squark-auth-ip: filter DB file path can be set using -d optionAlex Dowad2014-04-251-1/+4
|
* squark-filter, squark-auth-ip: config file path can be set using -c optionAlex Dowad2014-04-251-1/+4
|
* squark-filter: correctly identify URLs with uppercase chars in pathAlex Dowad2014-04-251-0/+1
| | | | | squark.db stores all filtered domains/URLs in lowercase. So when querying the filter DB, we need to convert the input URL to lowercase.
* all: report errors if calls to write() failAlex Dowad2014-04-251-3/+8
| | | | This also quiets compiler warnings for "ignored return values".
* all: unified framework for reporting errors/warnings/info messages to ↵Alex Dowad2014-04-251-13/+21
| | | | stderr/syslog
* squark-filter: don't segfault if there is an error in the auth DBAlex Dowad2014-04-251-22/+27
| | | | [tt] renamed .htm to .html
* squark-filter: fix path component lookupTimo Teräs2012-11-121-2/+2
| | | | | | | Do not do string literal lookup unless the path parent matches. This avoids wrong string literal lookups when the path does not exist and refers actuall to an entry which is IPv4 encoded (parent == SQDB_PARENT_IPV4).
* filter: fix lookup of urls with path componentsv0.4.1Timo Teräs2012-01-251-1/+14
|
* auth-ip, filter: refresh configurationTimo Teräs2012-01-101-0/+1
|
* lua, filter: fix 64-bit issuesv0.4Timo Teräs2011-10-071-1/+1
|
* filter: fix previous commitLuke Stuart2011-09-281-3/+2
| | | | it was hard-blocking everything incorrectly.
* filter: use different block page if category is forbiddenDuane Hughes2011-09-151-2/+4
| | | | fixes #719
* filter: option to allow automatic anonymous loginTimo Teräs2011-09-011-2/+11
| | | | | | so no captive portal, snmp or squid authentication is required. fixes #737.
* filter: honor squid authenticationv0.2Timo Teräs2011-06-141-0/+5
| | | | | | Instead of having separate modes (which would likely need to be configurable on per-subnet or per-user, anyway), honour just the squid reported username.
* Revert "filter: support filter-only and track-only modes"Timo Teräs2011-06-141-61/+9
| | | | This reverts commit a1277ab45a9d2bab9ca28baf05f978bf8066d928.
* Revert "filter: rename modes to something that makes more sense"Timo Teräs2011-06-141-29/+25
| | | | This reverts commit a4180db79a80882f81bc8c880ec1e2db5ee9bf6d.
* filter: rename modes to something that makes more senseTimo Teräs2011-06-141-25/+29
| | | | | Also, make sure the categorize mode is not touching authdb datastructures as they are invalid in that mode.
* filter: support filter-only and track-only modesTimo Teräs2011-06-141-9/+61
|
* filter: return categorization and blocked/overridden statusTimo Teräs2010-11-181-3/+11
| | | | | return the analysis back to squid as urlgroup. it can be then used in squid config acl's and logging (with patch). ref #447.
* authdb, auth-ip: make logout_timeout configurableTimo Teräs2010-11-071-1/+1
| | | | | | | | * authdb: change to use squark.conf instead of filter.conf * authdb: config option logout_timeout added (defaults to 15mins) * auth-ip: add -r parameter to refresh login time fixes #452
* all: check error for sqdb_open and adb_openTimo Teräs2010-11-071-3/+17
| | | | | so we don't crash on startup if essential files are missing. fixes #454
* build: use build system from apk-tools/opennhrpTimo Teräs2010-11-071-0/+2
|
* squark: reorganize sources to src directoryTimo Teräs2010-11-071-0/+431