Skip to main content
added 13 characters in body; deleted 12 characters in body
Source Link
Bob Ortiz
  • 7.1k
  • 12
  • 54
  • 104

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So iFor that reason I try to use external files as least as possible. Nevertheless, I'm wondering if you can faceit is a security risk when hotlinking to hotlink to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So iI have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files, other then a availability risk?
  3. When question number 2 is a risk: What are the best practices to protect your files from being hotlinked by others?

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So i try to use external files as least as possible. Nevertheless, I'm wondering if you can face a security risk when hotlinking to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So i have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files, other then a availability risk?
  3. When question number 2 is a risk: What are the best practices to protect your files from being hotlinked by others?

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. For that reason I try to use external files as least as possible. Nevertheless, I'm wondering if it is a security risk to hotlink to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So I have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files, other then a availability risk?
  3. When question number 2 is a risk: What are the best practices to protect your files from being hotlinked by others?
deleted 10 characters in body; deleted 1 character in body
Source Link
Bob Ortiz
  • 7.1k
  • 12
  • 54
  • 104

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So i try to use external files as least as possible. Nevertheless, I'm wondering if you can face a security risk when hotlinking to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like;like images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So i have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files or images, other then a availability risk?
  3. When question number 2. is a risk: What are the best practices to protect your files from being hotlinked by others?

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So i try to use external files as least as possible. Nevertheless I'm wondering if you can face a security risk when hotlinking to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like; images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So i have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files or images, other then a availability risk?
  3. When question number 2. is a risk: What are the best practices to protect your files from being hotlinked by others?

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So i try to use external files as least as possible. Nevertheless, I'm wondering if you can face a security risk when hotlinking to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So i have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files, other then a availability risk?
  3. When question number 2 is a risk: What are the best practices to protect your files from being hotlinked by others?
Source Link
Bob Ortiz
  • 7.1k
  • 12
  • 54
  • 104

What is a good risk assessment for different types of online file references?

Personally I'm a big fan of hosting everything myself, just because of the privacy aspect. So i try to use external files as least as possible. Nevertheless I'm wondering if you can face a security risk when hotlinking to files other than JavaScript files.

The risk of hotlinking to an external JavaScript file seems pretty clear to me. Since that other domain will be able to execute anything in the clients browser, on your domain. So it's not about JavaScript files. I'm just talking about files like; images, cascading style sheets and for example PDF, office or MP3 files.

On the other hand, what if the scenario is exactly other way around? What risks can you potentially face when people are hot-linking to your files or images? I know some anti hotlinking methods, some of them use a mod_rewrite approach, which is based on a referrer that can be easily spoofed.

So i have three questions:

  1. Is hotlinking to external file (like described above) dangerous or can it be a potential risk to your website or website visitors?
  2. Can you face a risk yourself when people are hotlinking to self-hosted files or images, other then a availability risk?
  3. When question number 2. is a risk: What are the best practices to protect your files from being hotlinked by others?