This is the superglobal in PHP for a clients hostname:
$_SERVER['REMOTE_HOST']
It usually looks something like:
ecIP-AD-DRE-SS.us-west-1.compute.amazonaws.com
IP-AD-DRE-SS.bb.dnainternet.fi
IP-AD-DRE-SS.dynamic.lounea.fi
Can someone change their hostname so that it would contain something capable of SQL injection? Also, is SQL injection prevented if you only remove the singe quote ' from user inputs?