To keep it brief and simple, I will go straight to the point. It seems a bunch of ip adresses are trying to access files that have potential of containing sensitive server information on my website which is still in the development phase powered by Linux and apache2 and am increasingly getting apache2 error logs of some IPs trying to access files that don't even exit on my server.
Here's some of the logs
[client 103.153.76.212:64595] script '/var/www/websites/example.com/xmlrpc.php' not found or unable to stat
[client 45.146.164.110:56158] script '/var/www/websites/example.com/index.php' not found or unable to stat
[client 5.188.210.227:31411] script '/var/www/websites/example.com/echo.php' not found or unable to stat
[client 45.146.164.110:32824] script '/var/www/websites/example.com/index.php' not found or unable to stat
[client 128.199.2.210:55528] script '/var/www/websites/example.com/system_api.php' not found or unable to stat
[client 117.50.90.31:43096] script '/var/www/websites/example.com/wp-login.php' not found or unable to stat
[client 143.198.136.88:39108] AH01630: client denied by server configuration: /var/www/websites/example.com/server-status
[client 143.198.136.88:39688] script '/var/www/websites/example.com/info.php' not found or unable to stat
[client 45.146.164.110:34004] script '/var/www/websites/example.com/index.php' not found or unable to stat
I have switched out my site with example.com but you get the picture plus I did some digging on those ip addresses and got absolutely nothing though I ip showed as being owed by some Russian ISP.
So obviously whoever is doing this is checking for vulnerabilities but I wanna automatically block those ips. Is there an Apache2 module, php or python script that I can use to achieve this..?