# 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. When you disable the WebServer role, the system 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. When you disable the Web Server role, the system 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. When you the Web Server role, the system this function.