Limit phpmyadmin htaccess
Posted: Tue Mar 10, 2020 12:08 am
Hello friends! In order to limit access to phpmyadmin from outside, only from vesta panel.
I made .htaccess in folder /usr/share/phpMyAdmin
From Vesta i can go to site.ru/phpmyadmin/ - it's ok,
- but when i try to log in to the base, i have:
Does anybody know, how to fix it?
I made .htaccess in folder /usr/share/phpMyAdmin
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_REFERER} !()?site.ru
RewriteRule .* - [F]
- but when i try to log in to the base, i have:
I think it is due to HTTP_REFERER doesn't transmit to index.php scriptForbidden
You don't have permission to access /phpmyadmin/index.php on this server.
Does anybody know, how to fix it?