Questions tagged [hotlinking]

Hotlinking is the use of a linked object, often an image, from one site by a web page belonging to a second site.

245 questions
0
votes
1 answer

Does Flickr "Know" if a Hotlinked Image Does Not Link Back to Source?

From Flickr's community guidelines: "Do link back to Flickr when you post your photos elsewhere. The Flickr service makes it possible to post images hosted on Flickr to outside web sites. However, pages on other web sites that display images hosted…
Michael Robinson
  • 29,278
  • 12
  • 104
  • 130
0
votes
1 answer

Longish list of allowed referrers

I want to allow hotlinking only from a list of referrers (paying customers, probably a few hundred). I am on Apache 1.3 and I do not have access to the configuration (only .htaccess). What is the fastest way to implement this? My thoughts so…
Tim
  • 403
  • 4
  • 9
0
votes
2 answers

How to disable direct url unless linked from another page?

I have a page called snow.php. I want to disable people from being able to see my webpage if they type in www.mysite.com/snow.php unless they are linked from another page. So if I have another page called about.php and link to snow.php they'll…
0
votes
1 answer

Force image download with htaccess

With the following code I can replace the hotlinked image with another image. However, is it possible to force download the replaced image instead of opening in the browser? RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER}…
user1355300
  • 4,867
  • 18
  • 47
  • 71
0
votes
1 answer

Nginx hotlink protection for image with ID - am I doing it wrong?

I'm having a little bit of trouble working out a nginx hotlink protection code for images that carry a ID value on the end as well as using the . after the image. I'm only looking to block other 3 websites from leeching our…
0
votes
1 answer

ASP.NET detect hotlink image views

Is there a way to detect hotlink image views in ASP.NET / IIS 7 ? I don't want to block the viewers, I just need to increment the image views counter for each static image when someone clicks on my images in google image search.
Mario
  • 13,941
  • 20
  • 54
  • 110
0
votes
0 answers

Python program to download music files

I am learning python, I am building a small tool to download music files through python. I have two questions. The following webpage has three download links. http://mp3monkey.net/audiod/147455106/186823954/Zeds_Dead_-Demons_.mp3 If I click on the…
0
votes
1 answer

Preventing hotlinking by image resolution with .htaccess and PHP?

Preventing hotlinking altogether is easy, but can it be done based on the image resolution? I don't mind people hotlinking smaller images but I have a few +30 MiB ones that would make a bump in my bandwidth usage, so I would like to specifically…
0
votes
0 answers

nginx hotlink protection I added is preventing images from being shown on my website

I'm using nginx to serve static files for my website. I'm trying to protect my static files from hotlinking, so I've done this: location ~*.(gif|jpg|jpeg|png|bmp|swf)$ { valid_referers none blocked mywebsite.com *.mywebsite.com ; } However,…
zzlettle
  • 353
  • 1
  • 6
  • 17
0
votes
1 answer

Website move: how to block/detect all HTTP requests to old domain

I'm moving a website from old.com to new.com/old, but I have to make sure it works before deleting old.com. It's a very large legacy website that probably has links, images, scripts and other things hardcoded to old.com. The problem is that these…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
0
votes
3 answers

How to show image hidding its direct link in php?

How can I create a php code that will process an ID for example and return corresponding image without providing client with actual image hotlink. As implemented on link below the image is displayed in html page, but the hot link is hidden from…
XIMRX
  • 2,130
  • 3
  • 29
  • 60
0
votes
2 answers

Prevent a server side script from a direct URL access

There is a server side script written in php(say backend_file.php) or coldfusion(say backend_file.cfm). Lets say, i am using Apache and I have a sample web folder (on my Localhost) like: backend_file.php index.php Is it possible to restrict…
Ritesh Kumar Gupta
  • 5,055
  • 7
  • 45
  • 71
0
votes
1 answer

Prevent PDF link from being shared

There is a pdf on the server that we want users to access only those with the link is there any way we can prevent from being shared as well? So if the users want to share the link it will redirect them to the homepage. I know users can download and…
Jose Gomez
  • 43
  • 10
0
votes
1 answer

Files prevented from hotlinking still viewable from the site's source code

I have some files and images i want not to be viewable or downloadable. So when i just enter and load the url, let's say "http://www.domain.com/dir/image.png" it gives me 403 message as expected. But when i access this url from the source code…
domizai
  • 343
  • 1
  • 5
  • 13
0
votes
0 answers

WordPress: Allow image hotlinking in one folder, or one specific image in folder inside theme?

How to allow images to be hotlinked from one folder, or just one image. I have tried this. RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC] RewriteCond %{REQUEST_URI} …
user3476062
  • 141
  • 1
  • 1
  • 4