PDA

View Full Version : restricting admincp by ip


lafsunlmtd
09-12-2008, 03:52 AM
is there a way to restrict access to your admincp by ip address?

luki
09-12-2008, 07:48 AM
Yes, the simplest method would be with usage of .htaccess.

Send shell command:
touch .htaccess

Then pico it
pico .htaccess

And type:
order allow,deny
deny from 10.10.1.1
deny from 10.10.2.
allow from all

deny from 10.10.2. - all ips in range 10.10.2.1 - 10.10.2.255 will be denied.
You can use domain too:
deny from vbulletin.org

You have to put this file in your admincp directory.