
Originally Posted by
thesyndicate
This works even with no cpanel? Can i block all IP but my own on certain url like /admin
To restrict access to phpMyAdmin, we're using something like this:
Code:
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 203.136.14.246 68.126.135.195
</Directory>
In most instances though, it's more convenient to use basic http authentication to secure URL's.
Bookmarks