For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/security/how_to_enable_hotlinks_protection_in_directadmin.md.

Enable Hotlink Protection in DirectAdmin

The main purpose of hotlink protection is to protect the bandwidth of your server or shared hosting account by preventing other websites from linking to content on your website, such as images and files.

If another website uses HTML code to display your images or files, they are fetched from your server or shared hosting account, and use your bandwidth.

Info

If you are using the Standard theme on DirectAdmin, switch to the Refreshed theme as shown in How to change theme or layout on DirectAdmin.

In the Refreshed Theme

Log in to DirectAdmin

Log in to your DirectAdmin panel.

Move the cursor to Account Manager and click on Hotlinks Protection.

Hotlinks Protection under Account Manager

Click the Enable Hotlinks Protection button.

Enable Hotlinks Protection button

Add your domains

Add all the domains in your account. You can add them all at once by clicking the Add My Domains button.

Add My Domains button

Adjust the settings

If any domain is missing, add it in the first text area and click the Add button.

You can add more file extensions that you want to protect in the Protected file types text area.

For the redirection, you can select and add a URL, or keep the default 403 Forbidden.

Hotlink protection settings

Save the settings

Click the Save button.

In the Standard Theme

Click here to show the steps

Log in to DirectAdmin

Log in to your DirectAdmin panel.

Move the cursor to Account Manager and click on Hotlinks Protection.

Hotlinks Protection under Account Manager

Click the Enable Hotlinks Protection button.

Enable Hotlinks Protection button

Add your domains

Add all the domains in your account. You can add them all at once by clicking the Add My Domains button.

Add My Domains button

Adjust the settings

If any domain is missing, add it in the first text area and click the Add button.

You can add more file extensions that you want to protect in the Protected file types text area.

For the redirection, you can select and add a URL, or keep the default 403 Forbidden.

Hotlink protection settings

Save the settings

Click the Save button.