Hi,
I wrote custom-script block_ip.sh to be used with the Brute Force IP Info Page. When I click on Block IP on the IP Info Page it will call the script, but no IP number is passed to the script. I made a small test-script to demonstrate this:
/usr/local/directadmin/scripts/custom/block_ip.sh
It will show the following output, no IP number is passed:
Anyone with a solution to this problem?
I wrote custom-script block_ip.sh to be used with the Brute Force IP Info Page. When I click on Block IP on the IP Info Page it will call the script, but no IP number is passed to the script. I made a small test-script to demonstrate this:
/usr/local/directadmin/scripts/custom/block_ip.sh
Code:
#!/bin/sh
if [ $# -lt 1 ] # we need the ip
then
echo "$#";
echo "Usage: $0 <ip>";
echo "example: $0 1.2.3.4";
exit 1;
fi
echo $# > /usr/local/directadmin/scripts/custom/test.dat
exit 0
It will show the following output, no IP number is passed:
Code:
Error Blocking IP
Details
0
Usage: /usr/local/directadmin/scripts/custom/block_ip.sh
example: /usr/local/directadmin/scripts/custom/block_ip.sh 1.2.3.4
Anyone with a solution to this problem?