The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
25 views

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)$ { ...
1
vote
1answer
28 views

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: <Directory "/var/www/store"> DirectoryIndex ...
-4
votes
1answer
141 views

How to change .htaccess file to work right in localhost? [closed]

I have this snippet code in my .htaccess file to prevent users from hotlinking the server's images: RewriteEngine On RewriteCond %{HTTP_REFERER} ^$ [OR] RewriteCond %{HTTP_REFERER} ...
1
vote
0answers
140 views

Prevent Google Image Search hotlink with Nginx rewrite

Google Image Search have the ability to point to the original image without displaying the website that's hosting the image. So I want to redirect those requests to a custom page of my site. ...
0
votes
1answer
58 views

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 ...
1
vote
0answers
125 views

disable direct file access on lighttpd

I'll be fast: Is there a way to block direct file access to files/images on my /var/www? So for example: If I am loading the page example.com/info.php that contains the image hello.jpg, can I block ...
0
votes
1answer
249 views

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 ...
0
votes
2answers
345 views

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 ...
0
votes
1answer
265 views

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 ...
0
votes
2answers
160 views

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 ...
4
votes
1answer
302 views

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 ...
1
vote
0answers
332 views

nginx Anti-HotLinking configuration

I was wonder with nginx can I: Check if content-type == "image/x-jpeg" || content-type == "image/png" || content-type == "image/gif" If true && referrer != "mysite.com" && referrer ...
2
votes
2answers
514 views

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 ...
1
vote
0answers
272 views

Hotlink Protection in Nginx working too well in Firefox

I use hotlink protection in Nginx and it is working very well! For some reason it is not allowing visitors to my site using Firefox to see any images. For visitors using IE, Chrome, Safari, and ...
0
votes
1answer
1k views

IIS 7 URL Rewriting Rule for images not referred by the website itself

New to URL rewriting with IIS 7. I need to redirect to another page for images not referred by the website itself. For example is someone enters "www.somesite.com/images/image001.jpg" into their ...
8
votes
5answers
1k views

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 ...
2
votes
1answer
106 views

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 ...
0
votes
1answer
341 views

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 ...
0
votes
2answers
362 views

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)$ { ...
0
votes
2answers
2k views

Trouble in Nginx hotlink protection

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 ...
1
vote
2answers
175 views

Are there any drawbacks to disabling hotlinking using .htaccess?

I've been seeing a lot of requests for images hosted on my server from other websites. Rather than allow this to carry on, I'm considering using mod_rewrite and .htaccess to prevent this using ...
0
votes
1answer
213 views

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 ...
0
votes
1answer
169 views

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: <VirtualHost *:80> ServerName ...
0
votes
1answer
163 views

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 ...
0
votes
2answers
147 views

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 ...
1
vote
2answers
2k views

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 ...
1
vote
3answers
710 views

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: <FilesMatch ".(gif|jpg|jpeg|png)$"> SetEnvIfNoCase Referer ...
3
votes
1answer
373 views

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 ...
1
vote
5answers
2k views

How can I prevent hotlinking? (nginx)

I use nginx and I have no access to server conf. May be with .htaccess analogue?..
1
vote
1answer
859 views

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 ...
3
votes
4answers
1k views

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 ...