# Direct Link Protection (Hotlink)

Domain Management / Direct Link Protection (Hotlink)

## Enable hotlink protection

 - [GET /Mime/add_hotlink](https://api.docs.cpanel.net/specifications/cpanel.openapi/direct-link-protection-(hotlink)/add_hotlink.md): This function adds hotlink protection for a site. Hotlink protection will redirect users to another URL if they navigate to a file with a specified extension, but an allowed URL did not refer them.

Important:

  When you disable the WebServer role, the system disables this function.

## Disable hotlink protection

 - [GET /Mime/delete_hotlink](https://api.docs.cpanel.net/specifications/cpanel.openapi/direct-link-protection-(hotlink)/delete_hotlink.md): This function removes hotlink protection.

Important:

  When you disable the Web Server role, the system disables this function.

## Return domains with hotlink protection

 - [GET /Mime/list_hotlinks](https://api.docs.cpanel.net/specifications/cpanel.openapi/direct-link-protection-(hotlink)/list_hotlinks.md): This function lists domains with hotlink protection.

Important:

When you disable the Web Server role, the system disables this function.

