This script only runs as root and allow you to block country via IPTables.
As you see below in COUNTRIES = I have already input country ISO code which are the TOP countries known for Fraud such as Ghana.
Search on Google and add more ISO country code and run this script your server will be protected by those MOTHER F**** FRAUD people. I HATE aLL OF THEM I DONT KNOW WHy they do those things, but anyway here is your script.
#!/bin/bash<br />
###BLOGAMA.ORG###<br />
<br />
###PUT HERE COMA SEPARATED LIST OF COUNTRY CODE###<br />
COUNTRIES="GH NE MK"<br />
WORKDIR="/root"<br />
#######################################<br />
<br />
cd $WORKDIR<br />
wget -c --output-document=iptables-blocklist.txt http://blogama.org/country_query.php?country=$COUNTRIES<br />
if [ -f iptables-blocklist.txt ]; then<br />
iptables -F<br />
BLOCKDB="iptables-blocklist.txt"<br />
IPS=$(grep -Ev "^#" $BLOCKDB)<br />
for i in $IPS<br />
do<br />
iptables -A INPUT -s $i -j DROP<br />
iptables -A OUTPUT -d $i -j DROP<br />
done<br />
fi<br />
rm -f $WORKDIR/iptables-blocklist.txt<br />