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
2
votes
1 answer
using hotlink prevention
I'm wondering how to target the picture in this following code:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://dooomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.dooomain.com/.*$ [NC]
RewriteRule .*.jpg$ - …

Digital site
- 4,431
- 12
- 48
- 72
2
votes
2 answers
Allowing hotlinks for facebook
I am building a site, in which I denied hotlinking of images. But after I added the facebooks "like" link to my pages, I realized that I want to allow hotlinking for facebook. So, if a user likes a page on my site, facebook should be able to show a…

schlingel
- 1,514
- 2
- 15
- 24
2
votes
0 answers
Nginx hotlinking prevention while Cloudflare active
I want to prevent hotlinking to a specific folder and recursive. But Cloudflare hotlinking not fit for me. So i config nginx server block. Anti-hotlinking working now.But while allowed site is Cloudflare enabled, the site not able to bypass…

Shaju
- 192
- 1
- 13
2
votes
1 answer
Preventing hotlinking on Amazon S3 with PHP
In my site i am doing a image protection section to cut the costs of Amazon S3. So as a part of that i have made anti hot-linking links for images using php (to the best of my understanding).
Then…

Harry Callum
- 21
- 2
2
votes
1 answer
S3 Buckets with CloudFlare: Prevent Hotlinking
I'm using an Amazon S3 bucket named images.example.com which successfully serves content through Cloudflare CDN using URLs like:
https://images.example.com/myfile.jpg
I would like to prevent hotlinking to images and other content buy limiting…

dijon
- 359
- 1
- 9
- 21
2
votes
4 answers
Efficient Method for Preventing Hotlinking via .htaccess
I need to confirm something before I go accuse someone of ... well I'd rather not say.
The problem:
We allow users to upload images and embed them within text on our site. In the past we allowed users to hotlink to our images as well, but due to…

Michael Robinson
- 29,278
- 12
- 104
- 130
2
votes
1 answer
Hotlink protection for images and redirect to webpage
I have generated .htaccess rule which redirects requests images from or sources to webpage that consists of that image. However, it is not working, obviously I did something wrong. Any ideas are appreciated!
RewriteEngine on
RewriteCond…

Ulugbek
- 141
- 11
2
votes
1 answer
How do I prevent hotlining but allow google in nginx?
I want to setup a reverse proxy for serving images stored in S3.
I dont want to allow access to images if referrer is not example.com
But I want to allow multiple crawlers for example google bot, bing bot etc (based on user_agent) to access the…

Rahul Prasad
- 8,074
- 8
- 43
- 49
2
votes
0 answers
Accessing CSV from a Google Docs Spreadsheet
I try to access a Google Docs Spreadsheet, so I can use it in a D3.js visualization.
Both
https://docs.google.com/spreadsheets/d/1s04t-0r5dtY4c31czCGCaxRS_nbAMDmoUJ5O75leGPE/export?format=csv&id (as in Accessing google docs spreadsheet revisited in…

Piotr Migdal
- 11,864
- 9
- 64
- 86
2
votes
3 answers
Allow hotlinking but redirect when I am my own referrer!
I want to, using htaccess, allow hotlinking BUT if someone views an image on my site I want to redirect them to a "hosted" version of the image where I display my navigation etc.
So essentially anyone hotlinking from an external site will not be…

Chris
- 26,744
- 48
- 193
- 345
2
votes
1 answer
Prevent hotlinking image files
I want to avoid hotlinking images. Basing of this answer: stackoverflow answer I've tried to add the next snippet code into .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER}…

Manolo
- 24,020
- 20
- 85
- 130
2
votes
1 answer
Hotlinking to my Rails 4 app's assets from a static site
I have a rails 4 app on heroku, and I want to embed some of my image assets in a static website that I'm making.
The problem is that rails adds a digest to the asset path.

stephenmurdoch
- 34,024
- 29
- 114
- 189
2
votes
3 answers
How to prevent hotlinking of streaming content?
I have a directory with my media files and I need no to display them on other sites.
Server doesn't support .htaccess, because it uses nginx.
How can I enable hotlink protection for my files??
Thank you.

NARKOZ
- 27,203
- 7
- 68
- 90
2
votes
1 answer
Stop hotlinking using htaccess and non-specific domain code
I need to write an anti-hotlink command for my .htaccess file but it can not be specific to any domain name in particular. Here's what I found on another sites so far but I'm not sure exactly why it doesn't work, can anyone spot the problem?
# Stop…

Vince
- 910
- 2
- 13
- 29
2
votes
1 answer
protect jwplayer video from hotlinking in rails
I want to check if the request from is browser then expose the video cdn link to jwplayer. I want to make hard video from download.
My routes code is
4 match "/assets/protect/:id.:format" => "streams#show"
My controller code is
1 class…

Victor9663
- 200
- 1
- 10