• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Protecting admin.php and the install directory using .htaccess

Protecting admin.php and the install directory using .htaccess

Stop those annoying skiddies.
Compatible XF 1.x versions
1.0, 1.1, 1.2, 1.3, 1.4, 1.5
This resource is not affiliated with XenForo Ltd.

If you want to provide an extra layer of protection to admin.php and the /install directory, you can do so with .htaccess.


Protecting admin.php
To protect admin.php, edit the .htaccess file which is in your forum root directory (e.g. /community) and add the following to it...
You do not have permission to view the full content of this resource. Log in or register now.
Author
Brogan
First release
Last update
Rating
5.00 star(s) 5 ratings

More resources from Brogan

Latest reviews

Perfect! This tip was exactly what I was looking for to secure the APC.
Just one comment, it could be good to add in the description how to generate a salt hash password. The command I used was
perl -le 'print crypt("my_password", "salt-hash")'
This is an excellent article, tailored to the newbie's level of understanding. I learned how to: Use IP address based protection, from reading it. As they say, "An ounce of prevention, is worth a pound of cure!"
An excellent resource for anyone that might want to add an extra layer of protection to their admin panel and Install directory. Thanks for sharing this.
Awesome
just what i needed.