• Welcome to XF2 Addons

    You can purchase a Premium membership for only $35 per year, and this gives you access to download any or ALL of the over 400 add-ons developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

How to .htpasswd the admin.php file


Staff member
1. Add this to the .htaccess file, change path as needed.

<Files admin.php>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/username/public_html/.htpasswd
Require valid-user


2. Go to terminal.
3. Enter the following to add or change username and password:

htpasswd -c /home/username/public_html/.htpasswd Andy

4. Enter password.
Do delete the .htpasswd function:

1. Edit your .htaccess file and delete the highlighted code as shown above.
2. Delete the .htpasswd file.