Questions tagged [hotlinking]

Hotlinking is practice of displaying digital assets (such as: image, video, sound or other files) into a website by linking it from another site.

Hotlinking is considered poor netiquette because this practices will consume another site's resources for your own benefit. That's why popular web server has a features to prevent hotlinking, for example:

49 questions
0
votes
1 answer

Nginx Hotliking protection pointing at a specific image (nginx as reverse proxy)

I am using nginx as a reverse proxy with apache. I have added this code to prevent hotlinking, and it is working fine so far. #hotlinking protection location ~* \.(png|gif|jpg|jpeg)$ { valid_referers none blocked mydomain.com *.mydomain.com; if…
0
votes
1 answer

Possible to prevent hotlinking when apache server has no domain name?

I have a LAMP + Wordpress server that I access with the IP address only. I don't plan on getting a domain name for the server. I want to know if it is possible to prevent hotlinking of resources if my server doesn't have a domain name? Right now I…
sogosu
  • 1
  • 3
0
votes
1 answer

403 Hotlinking is forbidden

We have a website that generates simple links based in anchor tag to another site. But, when we click in these links, the following error is displayed: Error 403 Hotlinking is forbidden Hotlinking is forbidden Guru Meditation: XID:…
0
votes
2 answers

Nginx - prevent a .php file running on anything but your own server/domain?

We have an mp3 player that runs via an iFrame, not our choice but thats how we're stuck with it. We want to prevent other people simply embedding the iframe on their site. What would be the best way to do this? We're running nginx so no .htaccess.…
Danny Shepherd
  • 177
  • 1
  • 12
0
votes
1 answer

nginx hotlinking prevention

I know this is quite a basic question, but whereas i had no problem preventing image files from hotlinking, i can't figure out how i can't protect mp4 video files… i just tried to specify mp4 next to jpg, (that's the two filetypes i need to…
Buzut
  • 765
  • 3
  • 9
  • 23
0
votes
2 answers

Prevent hotlinking at DNS level

I used my own server to host an example file (an image) when I posted an answer to a question at StackOverflow. Now someone has copied the code I used, including the URL to the file on my server. The site they are using it on is relatively high…
Tatu Ulmanen
  • 161
  • 1
  • 7
0
votes
2 answers

EV SSL Certificates and linking to static files through Amazon S3/Cloudfront

I have been considering getting an EV SSL certificate for my website, but I have some concerns about how this will interact with our planned architecture. We were planning to serve our static files from Amazon's CDN (cloudfront) backed by an Amazon…
schizodactyl
  • 103
  • 3
0
votes
2 answers

nginX hot linking protection failing

I have the fallowing configuration to disable hotlinking on nginX. location / { root /var/www/html; index index.html index.htm; } location ~ \.(xml|jpg|jpeg)$ { root /var/www/html; …
0
votes
1 answer

URLs with final slash trigger hotlink protection on my server

in all my Apache servers I use hotlink protection because I hate the idea someone could stick my images/flash in their sites using my server bandwidth. In order to make hotlink protection work, in my Apache .htaccess I simply use this: #Hotlink…
Marco Demaio
  • 580
  • 1
  • 8
  • 22
0
votes
1 answer

Hot link prevention not working

I am trying to prevent hot linking of images on our site. I have tried editing /etc/httpd/conf/httpd.conf by adding the following to the end of the file: ServerName www.myserver.co.uk ServerAlias myserver.co.uk DocumentRoot…
oshirowanen
  • 292
  • 3
  • 13
0
votes
1 answer

Any way to stop people from img "framing" your site?

Someone was trying to get cute with me, by "iframeing" my search result page via an IMG tag with 0 width and 0 height, in hopes of killing my server resources. My searches are cached, so it doesn't do much damage, since its just a static file being…
user11350
0
votes
2 answers

cPanel/Apache Hotlink protection performances

Does anyone have an idea of what's the impact on a website performances when activating Hotlink protection on server. FYI: hotlink protection disallows other websites on other servers to place an image on their websites that directly refers to my…
Marco Demaio
  • 580
  • 1
  • 8
  • 22
0
votes
0 answers

hotlink protection blocking valid referrers also

Having an issue with valid referrers not being considered in the nginx config. I have domaina.com calling images from domainb.com. The issue is that the domainb.com images are being hotlinked. so i have created a page rule like this in…
0
votes
0 answers

Nginx prevent hotlinking and redirect not work with new Nginx version

In the past, this works perfectly: #domain1.com location /files/ { valid_referers none blocked domain1.com domain2.com domain3.com; if ($invalid_referer) { return 403; } if (!-e $request_filename) { rewrite ^(.*)$…
0
votes
1 answer

Adding rewrite code to prevent hotlinking in a htaccess file in wordpress

I wish to alter the standard .htaccess file in wordpress to prevent hotlinking to our files in the uploads folder. I have put together the code below but sadly the files still are accesible directly, something we would like to prevent. Anybody here…