clamav support
This commit is contained in:
9
scripts/clamav.sh
Normal file
9
scripts/clamav.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
output=$(clamscan -i --no-summary "$1" 2> /dev/null)
|
||||
|
||||
if echo "$output" | grep -q ".* FOUND$" ; then
|
||||
echo "0 clamscan: $output"
|
||||
else
|
||||
echo "1 clamscan: ok"
|
||||
fi
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
BLACKLIST=$(curl "https://iplists.firehol.org/files/tor_exits.ipset")
|
||||
BLACKLIST=$(curl -s "https://iplists.firehol.org/files/tor_exits.ipset")
|
||||
DATA=""
|
||||
for ip in $BLACKLIST ; do
|
||||
DATA="${DATA}deny ${ip};\n"
|
||||
|
||||
@@ -9,7 +9,7 @@ function replace_in_file() {
|
||||
sed -i "s/$pattern/$replace/g" "$1"
|
||||
}
|
||||
|
||||
BLACKLIST="$(curl https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list)"
|
||||
BLACKLIST="$(curl -s https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/_generator_lists/bad-user-agents.list)"
|
||||
DATA=""
|
||||
IFS=$'\n'
|
||||
for ua in $BLACKLIST ; do
|
||||
|
||||
Reference in New Issue
Block a user