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 220.127.116.11 allow from all
Where 18.104.22.168 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.