Subversion Repositories ALCASAR

Rev

Rev 650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 650 Rev 672
Line 1... Line 1...
1
#/bin/sh
1
#/bin/bash
2
 
2
 
3
# alcasar-dg-pureip.sh
3
# alcasar-dg-pureip.sh
4
# by Yohan & Rexy
4
# by Yohan DUBANCHET and Richard REY
5
# This script is distributed under the Gnu General Public License (GPL)
5
# This script is distributed under the Gnu General Public License (GPL)
6
 
6
 
-
 
7
# Activation / désactivation du filtrage d'url contenant des adresse IP (et non des noms de domaine)
7
# Gestion Dansguardian 
8
# enable/disable filter of url that contains IP address (instead of domain names)
-
 
9
 
8
SED="/bin/sed -i"
10
SED="/bin/sed -i"
9
function ip_disable (){
11
function ip_disable (){
10
	$SED "s/^\*ip$/#*ip/g" /etc/dansguardian/lists/bannedsitelist
12
	$SED "s/^\*ip$/#*ip/g" /etc/dansguardian/lists/bannedsitelist
11
	service dansguardian reload
13
	service dansguardian reload
12
}
14
}