Skip to content
Snippets Groups Projects
Commit 27dc0227 authored by Klas Arvidsson's avatar Klas Arvidsson
Browse files

File /usr/libexec/squid/BLOCK_ALL will block all web access if it exist

parent e3f9a3db
No related branches found
No related tags found
No related merge requests found
// OpenDSA // OpenDSA
// ^.* false
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDD86_200317/.* true ^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDD86_200317/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/.* false ^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/.* false
......
...@@ -74,6 +74,10 @@ def main(): ...@@ -74,6 +74,10 @@ def main():
ruleset = list() ruleset = list()
block_all = basedir + "/../BLOCK_ALL"
if os.path.isfile(block_all):
ruleset.append( ["^.*", False] )
devel_rules = basedir + "/../devel.rules" devel_rules = basedir + "/../devel.rules"
if 'devel' in hostname and os.path.isfile(devel_rules): if 'devel' in hostname and os.path.isfile(devel_rules):
load_rules(ruleset, devel_rules) load_rules(ruleset, devel_rules)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment