OLS restricting access per IP

91 Views Asked by At

I want to restrict the access to my phpmyadmin folder so it could be accessible only by 1 IP.

I've already done that successfully for the domains hosted on the server using the following rewrite rules, as per the documentation:

RewriteCond %{REMOTE_ADDR} !^12\.234\.455\.566
RewriteRule ^/phpmyadmin/.*$ - [F,L]

However, I can still access it using the server's IP, like that:

xx.xx.xx.xx/phpmyadmin

What would be the best approach to fix this?

0

There are 0 best solutions below