Hello
For the past week, I'm getting thousands of bruteforce attacks from one specific IP attempting to log into phpMyAdmin over and over again. I want to restrict access to 12.0.0.1 and my own static IP. I have created a .htaccess file: nano /var/www/html/.htaccess
(where xx.xx.xx.xx is my home static IP)
I have tried setting .htaccess to different file permissions, e.g. 644, but still get the following error:
Can someone please provide specific advice on how to restrict access to phpMyAdmin. I am surprised that there is not a help page on this very issue already published on DirectAdmin help pages.
Regards
For the past week, I'm getting thousands of bruteforce attacks from one specific IP attempting to log into phpMyAdmin over and over again. I want to restrict access to 12.0.0.1 and my own static IP. I have created a .htaccess file: nano /var/www/html/.htaccess
Code:
<Directory /var/www/html/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from xx.xx.xx.xx
</Directory>
(where xx.xx.xx.xx is my home static IP)
I have tried setting .htaccess to different file permissions, e.g. 644, but still get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Can someone please provide specific advice on how to restrict access to phpMyAdmin. I am surprised that there is not a help page on this very issue already published on DirectAdmin help pages.
Regards