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 126.96.36.199 allow from all
Where 188.8.131.52 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.