Hotlinking is the use of a linked object, often an image, from one site by a web page belonging to a second site.
Questions tagged [hotlinking]
245 questions
7
votes
8 answers
Is it bad to hotlink jQuery from jquery.com?
This will probably get a pretty nasty response, but my server isn't the fastest at the moment, and my site loads much faster if I hotlink from the jQuery homepage so they server the content. Is this bad to do? Does jQuery eventually remove those js…

alt
- 13,357
- 19
- 80
- 120
7
votes
4 answers
How to prevent image hotlink from your ASP.NET site?
What is the best/simplest way to prevent people hotlinking to images from my hosted ASP.NET website? I don't need to prevent all images/resources from hotlinking, I just want to prevent hotlinking to specific images/resources on a site. FYI. It's…

Dead account
- 19,587
- 13
- 52
- 82
7
votes
4 answers
PDF files protection from external access. Accessible only to authenticated users. WordPress uploads directory
I am running a website and I would like to protect all the PDF files inside the WordPress uploads folder from external access and hotlinking.
I am already using a user authentication to protect the posts attached to these files, but the user…

vsapountzis
- 618
- 3
- 11
- 28
6
votes
1 answer
Flash in Firefox does not send the HTTP REFERER value
In IE and Chrome, if your swf object requests a url (mp3 file for example) it will also pass the HTTP_REFERER in the request.
The HTTP_REFERER will be the url of the swf object.
This does not happen in Firefox. The HTTP_REQUEST is always empty.
Is…

George Antoniadis
- 649
- 3
- 8
- 14
5
votes
1 answer
How to implement hotlinking prevention in Google App Engine
My application is on GAE and I'm trying to figure out how to prevent hotlinking of images dynamically served (e.g. /image?id=E23432E) in Python. Please advise.

user111677
- 951
- 1
- 7
- 9
5
votes
2 answers
Prevent image hotlinking with S3 and CloudFront
I have a website with many pages where each page has many images (dozens or even hundreds).
I'm trying to avoid image hotlinking, but without increasing AWS costs too much.
So far I found 3 options:
Option 1: Use WAF to prevent hotlinking, by…

Daniel Barral
- 3,896
- 2
- 35
- 47
5
votes
1 answer
Tell if someone is accesing my HTTP-resources directly?
Is there a way to find out if anyone is calling the image located on my website directly on their website?
I have a website and I just want to make sure no one is using my bandwidth.

Jay
- 2,485
- 6
- 28
- 34
5
votes
1 answer
Protecting image/video folder in cakephp 2.0
We're currently using folders inside webroot to store images and videos which we're loading in views (using the usual html image helper) that require log in.
How can I prevent outside visitors from just doing a site.com/img/photos/1.jpg url and…

dot
- 61
- 7
4
votes
1 answer
Scala Lift - Robust method to protect files from hotlinking
I'm attempting to implement a way to stop hotlinking and/or un-authorised access to resources within my app.
The method I'm trying to add is something I've used before in PHP apps. Basically a session is set when the page is first called. The images…

jahilldev
- 3,520
- 4
- 35
- 52
4
votes
1 answer
Apache .htaccess hotlinking redirect
I am trying to create a redirection when someone hotlinks images in one directory on my site. If someone hotlinks an image, I want to redirect them to a corresponding image (same file name) in a different directory.
If someone hotlinks:…

Shawn
- 205
- 1
- 4
- 9
4
votes
1 answer
Preventing hotlinking on Amazon S3 with CloudFront
I tried preventing hotlinking media files on Amazon S3 with this bucket policy.
{
"Version": "2008-10-17",
"Id": "my-id",
"Statement": [
{
"Sid": "Allow get requests to specific referrers",
"Effect": "Allow",
…

Row1e
- 101
- 8
4
votes
1 answer
Is it possible to tell the difference between hotlinking and regular linking of images using .htaccess?
I think the answer to this is no, but ideally I would like to be able to allow image hotlinking, but redirect regular links. For example, if somebody uses this, it should work as expected:
But if they use…


Jake
- 4,014
- 8
- 36
- 54
4
votes
5 answers
(htaccess) How to make a file only accessable by host Server and prevent direct access?
I'm using Apache and lets say there is a file at "images/sample.jpg".
With .htaccess, how can i make it appearing on the website and then prevent the direct access by url (for example, direct url like "http://www.abc.com/images/sample.jpg") ?
If…

夏期劇場
- 17,821
- 44
- 135
- 217
3
votes
1 answer
Is there something wrong with my Amazon S3 bucket policy?
I am trying to block hotlinking of my Cloudfront files from specific domains. Through a combination of online examples and Amazon's own policy generator, I have come up with this:
{
"Version": "2008-10-17",
"Id": "http referer policy",
…

DisgruntledGoat
- 70,219
- 68
- 205
- 290
3
votes
2 answers
Does Google Images allow hotlinking?
I wrote a script that uses the Google Images JSON API to automatically fetch thumbnails for posts. I'm currently linking directly to the thumbnail (eg.…

Leo Jiang
- 24,497
- 49
- 154
- 284