someone trying to access pages like
To block special IP addresses you can put the following in a .htaccess file located in your directory, you like to restrict:
order allow,deny deny from 184.108.40.206 allow from all
Where 220.127.116.11 is the IP you like to block.
But note that IP adresses change users and also attackers change IP adresses.
So this will not secure your application and potentially block leagal visitors.
The better solution will be to make sure your script does not accept malicious paths.