summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorDuane Hughes <duanejevon@gmail.com>2011-09-15 13:19:51 +0000
committerTimo Teräs <timo.teras@iki.fi>2011-09-15 16:24:38 +0300
commit5f1c80f54bd4a89648be19a5629d12ada7448bf4 (patch)
tree6f2b6786ec924d17392ac15bc2c39a5fe62f2215 /www
parent22f30b6860b9577b8d3709013e1af9fb621a1895 (diff)
downloadsquark-5f1c80f54bd4a89648be19a5629d12ada7448bf4.tar.bz2
squark-5f1c80f54bd4a89648be19a5629d12ada7448bf4.tar.xz
filter: use different block page if category is forbidden
fixes #719
Diffstat (limited to 'www')
-rw-r--r--www/blocked.cgi28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/blocked.cgi b/www/blocked.cgi
new file mode 100644
index 0000000..e08d47d
--- /dev/null
+++ b/www/blocked.cgi
@@ -0,0 +1,28 @@
+#!/usr/bin/haserl
+Content-Type: text/html;charset=UTF-8
+Pragma: no-cache
+Cache-Control: no-cache
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+ <head>
+ <title>Content Filter Block</title>
+ <link rel="stylesheet" type="text/css" href="/static/style.css" />
+ </head>
+ <body>
+ <div><img id="warning" src="/static/warning.png" alt="Warning sign" /></div>
+ <div id="outer_container">
+ <div id="inner_container">
+ <h1>Content Filter Block</h1>
+ <p>Access to
+ <span class="deniedurl"><? echo -n ${GET_DENIEDURL} | cut -d "/" -f1-3 ?></span>
+ has been permanently denied in an attempt to protect you from harmful content.
+ </p>
+ <p>Reason for block: <? echo -n $GET_REASON ?></p>
+ <p>User credentials: <? echo -n $GET_USER ?></p>
+ <p>User IP-address: <? echo -n $REMOTE_ADDR ?></p>
+ </div>
+ </div>
+ </body>
+</html>
+