-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
20 lines (16 loc) · 683 Bytes
/
README
File metadata and controls
20 lines (16 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Markuz Simple Python Redirector (For squid).
I use this in my local network to filter stuff. I know there is also squidguard
but I wanted to do mine ;-)
********* This redirector requires MySQL ****************
====== table schema=========
CREATE TABLE `sites` (
`name` varchar(255) NOT NULL,
`method` varchar(255) NOT NULL COMMENT "available methods: redirect",
`match` text NOT NULL COMMENT "URL to match, could be a regular expression",
`url` text COMMENT "The url to redirect",
`enabled` tinyint(1) COMMENT "1: This redirect is enabled, 0: this is not"
)
// Whitelist user.
CREATE TABLE `users` (
`ipaddr` varchar(255) COMMENT "IP Address to match"
)