Do you want to allow only specific users access to a directory on your account? DirectAdmin has a tool that allows you to password-protect directories. You can, for example, password-protect your WordPress wp-admindirectory.
To password protect a directory in DirectAdmin:
- Log in to your DirectAdmin control panel by accessing https://yourdomain:2222
- Navigate to Password Protected Directories
- Click the Find a Directory to Password Protect link. The file manager window will open.
- Locate the folder you want to block access to and click the Protect link
- Enter a description for this protection (like my private directory), a username, and a password.
- Check the Protection Enabled option and click the Savebutton. You will see a confirmation message: Directory Protection Settings have been saved.