How to Remove Hotlink Protection?

danfortunato 1 Reputation point
2021-07-31T21:58:33.77+00:00

I'm using Google translator, I'm Brazilian, sorry.

I created a VM, it is working perfectly, I installed Apache server, and I'm testing a site, I access the site by public IP, it opens and works perfectly.

But when I get an image or file link from my site and try to open it on another site it doesn't work, it seems to be with Hotlink protection. (the files are inside the VM)

I've already checked it and it doesn't have any Hotlink protection turned on, Apache is all right too, can anyone help me?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,093 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,191 Reputation points
    2021-08-01T07:00:22.507+00:00

    Good day @danfortunato

    This issue is not related to the Azure Virtual Machine directly. There is not Hotlink Protection service which is automatically added to virtual machine by default. Check that you did not added such extension to the VM. I never used it but there are some companies that provide such services. A Hotlink Protection service is an application which create another layer between the incoming requests and the web server (like a proxy in this behave).

    It might be related to your site code/configuration (I develop such behavior in several web applications in the past and it is very common). Make sure that this is not related to specific site - create new blank site and test it.

    It can also be related to configuration of the web server. If you search google for: Hotlink protection Apache, then you will found multiple posts on how to configure Hotlink protection.

    And it can be related to the firewall configuration - I am speaking about your firewall in the machine and not the Azure firewall for the vNet.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.