防止攻击/脚本解析器

防止攻击/脚本解析器

如何防止脚本解析服务器的路径和目录?

来自 Apache 中的 error.log:

[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/scripts
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/admin
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/admin
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/admin
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/db
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/dbadmin
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/myadmin
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/mysql
[Thu Jul 07 11:28:13 2011] [error] [client 91.121.134.32] File does not exist: /var/www/mysqladmin
[Thu Jul 07 11:28:14 2011] [error] [client 91.121.134.32] File does not exist: /var/www/typo3
[Thu Jul 07 11:28:14 2011] [error] [client 91.121.134.32] File does not exist: /var/www/phpadmin
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/phpMyAdmin
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /usr/share/phpmyadmin/scripts
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/phpmyadmin1
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/phpmyadmin2
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/pma
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/web
[Thu Jul 07 11:28:15 2011] [error] [client 91.121.134.32] File does not exist: /var/www/xampp
[Thu Jul 07 11:28:18 2011] [error] [client 91.121.134.32] File does not exist: /var/www/php-my-admin
[Thu Jul 07 11:28:18 2011] [error] [client 91.121.134.32] File does not exist: /var/www/websql
[Thu Jul 07 11:28:18 2011] [error] [client 91.121.134.32] File does not exist: /usr/share/phpmyadmin/scripts
[Thu Jul 07 11:28:18 2011] [error] [client 91.121.134.32] File does not exist: /var/www/phpMyAdmin

答案1

如果你的主机是 Linux,你可以安装软件,然后尝试失败2ban或者拒绝主机. 两者都应该可以在您的发行版的存储库中找到。

答案2

我会看看mod_security或者你可以编写自己的自定义访问规则

相关内容