1. 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

Stop those annoying skiddies.

  1. Brogan
    Compatible XF 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.

Recent Reviews

  1. slinouille
    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")'
  2. adwade
    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!"
  3. KeVo
    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.
  4. Mishal
  5. DRE
    just what i needed.