question

danfortunato-2598 avatar image
0 Votes"
danfortunato-2598 asked pituach edited

How to Remove Hotlink Protection?

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

pituach avatar image
0 Votes"
pituach answered pituach edited

Good day @danfortunato-2598

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.