Monday, May 24, 2010

scripts to block run php files in /home/spamd folder

#!/bin/bash
EXIT_PATH="/home/spamd"
CUR_DIR=`pwd`
echo $CUR_DIR $@|grep -q $EXIT_PATH
if [ "$?" -ne 0 ] ; then
/usr/local/bin/php.real $@
fi

No comments:

Post a Comment