PDA

View Full Version : How .htaccess admincp



Greek76
Wed 27th May '09, 8:02pm
Hey everyone just a quick question. I tried to htaccess protect my admin cp but it comes up with an internal server error...

I used this code that I found from site security tips on here. I posted as is. The admin2 I left as is since Im the only to have access on their. What did I do wrong? Thanks

order allow,deny allow from <example IP>
allow from <admin2's IP>
deny from all

cellarius
Wed 27th May '09, 8:11pm
Take out the second line. <admin2's IP> is not valid, hence throws the error. You have replaced <example IP> with your own IP address? If not, that will lead to the same error.

Make sure you really have a static, non-rotating IP address - else you won't be able to access your forum.

Greek76
Wed 27th May '09, 8:28pm
Yes I have replaced it and my ip is not static. I tried it the way you suggested but I get this message. Thanks

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Does vbseo interfere possibly?

cellarius
Wed 27th May '09, 8:33pm
No, vbseo would not cause this.

Anyway: If you have a rotating IP, this is not for you. Every time your IP changes, you would have to edit the .htaccess, or you would be denied from entering AdminCP.

Addendum: If you know your IP range, you can allow access from this range.

If you want to implement this anyway, try this:

order allow,deny
deny from all
allow from xxx.xxx.xxx.xxxReplace the x with your IP address.

Greek76
Wed 27th May '09, 9:25pm
What I meant about my ip is that it does not change sorry for the mistake.

Jazzyname
Thu 28th May '09, 2:03pm
can one just put in the resolve instead of the IP ?

or the bind name? like cox.com

Greek76
Thu 28th May '09, 2:59pm
Im suppose to upload the .htaccess file into my admin folder correct?

cellarius
Thu 28th May '09, 3:06pm
can one just put in the resolve instead of the IP ?

or the bind name? like cox.com
http://httpd.apache.org/docs/1.3/mod/mod_access.html


Im suppose to upload the .htaccess file into my admin folder correct?
Yes.

Greek76
Thu 28th May '09, 3:11pm
Thats exactly what where I uploaded it. I don't know can't figure out what the problem might be.