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
8
votes
5 answers

How to prevent hot linking ("image theft" / "bandwidth theft") of ressources on my site?

I'm trying to write the "ultimate" anti hot linking .htaccess... You can find many examples/tutorials/generators on the net but many of them are wrong or incomplete (or even both). These are the features I'm looking for: Must block hot linking for…
AlexV
  • 169
  • 1
  • 2
  • 16
4
votes
1 answer

How to enable hotlink protection without hardcoding my domain in the Apache config file?

Been surfing around for a solution for a couple days now. How do I enable Apache hotlink protection without hardcoding my domain in the config file so I can port the code to my other domains without having to update the config file every time? This…
Jeff
  • 1,406
  • 3
  • 26
  • 46
3
votes
4 answers

Apache 2: Prevent image hotlinking serverwide

I'm trying to block access to images on my server if they are linked from some common "baddies", i.e. sites with users that tend to use other peoples bandwidth: livejounal.com blogger.com myspace.com ... There are two things that differentiate my…
BlaM
  • 3,816
  • 5
  • 26
  • 27
3
votes
1 answer

Is .htaccess slowing down my dedicated server?

First of all, I consider myself more a programmer than a servers guy. I have a website where I receive about 3,000 visits per day, which I think is a lot less than the max capacity for a dedicated server. However, I've noticed that the connection to…
David Robles
  • 131
  • 2
2
votes
3 answers

how to prevent image hotlinking in nginx?

I am trying to implement image hotlink protection problem in nginx and I need help. I have a huge issue of my site's images being submitted to social networks like StumbleUpon with a direct link like http://example.com/da.jpg now i want to block…
2
votes
2 answers

.htaccess hotlink prevention isn't working

I am running Wordpress blog and one "gentleman" is stealing my posts. I've decided to make his life difficult and I would like to prevent hotlinking images from my blog. I used htaccesstools com/hotlink-protection/ to generate .htaccess part for…
wojcieh
  • 158
  • 7
2
votes
2 answers

Nginx - Allow access to folder directory only by referring URL

front-end web developer here. Sorry in advance. My company wants to store new builds of our software on our web server, running Nginx, provided by WP Engine. The file path for these builds would be company.com/downloads/file.zip. We want to restrict…
Jesse Rogers
  • 131
  • 1
  • 6
2
votes
2 answers

How to track hits/viewing activity on an image file?

First and foremost, please forgive me if this is in the wrong section. I always seem to pick the wrong site when it comes to computer questions. In the air of recent, wildly viral internet events, my buddy and I have formulated an idea to run an…
Brandon
  • 21
  • 2
2
votes
1 answer

Prevent hotlinking within the same website using .htaccess

The problems I'm facing is how to prevent hotlinking from within a website. What I want to do is to block www.website.com/user/xxx from hotlinking a CSS, but allow www.website.com/user/aaa to use the CSS using .htaccess. -Both user xxx and user aaa…
John Smith
  • 29
  • 2
1
vote
2 answers

How do I disable hot linking and direct linking to files on my site?

Ok, I've beat my head against the wall for a few hours now and this just isn't working. Below are the contents of my .htaccess file. What I'm trying to do is block access to a set of pdf and mp3 files on my site unless the user click through to…
Mike Taber
  • 149
  • 1
  • 7
1
vote
3 answers

Apache 2: Is Referer from current Host

I have an Apache 2 with mod_setenvif. My goal is to stop all hotlinking of images in my global apache.conf. Currently that's: SetEnvIfNoCase Referer "^http://[^/]*blogger.com/" hotlink SetEnvIfNoCase…
BlaM
  • 3,816
  • 5
  • 26
  • 27
1
vote
0 answers

nginx hotlink protection for missing referer, but allow direct URL request

I'm using the following hotlink protection for Nginx I found from this page: https://nixcp.com/anti-hotlinking-nginx/ I use this code: location ~* \.(gif|jpg|jpeg|png|webp|svg|ico)$ { valid_referers none blocked mysite.com ~.mysite.com server_names…
1
vote
5 answers

How can I prevent hotlinking? (nginx)

I use nginx and I have no access to server conf. May be with .htaccess analogue?..
NARKOZ
  • 918
  • 3
  • 14
  • 23
1
vote
1 answer

How to prevent hotlinking for subdirectories only?

I want to prevent hotlinking to all subfolders in /var/www/store but at the same time allow linking to its index page. I tried doing this: DirectoryIndex index.html
Question Overflow
  • 2,023
  • 7
  • 28
  • 44
1
vote
1 answer

mod_secdownload for Apache 2.x

Is there something like mod_secdownload (which is available for lighttpd) also available for Apache 2.x? The mod provides expiring URLs, so that it is possible to prevent hotlinking of files. A similar feature is used by Amazon S3. The server…
BlaM
  • 3,816
  • 5
  • 26
  • 27
1
2 3 4