hotlinking

PHP GD leech with watermark

I was wondering if someone can provide me with a tutorial or source code of a way to make it so if people are leeching my sites images and embedding them in their forums or sites it will show a watermark, but if they view it on my site their wont be a watermark? ...

Rewrite for all images AND one particular php filename

As a precaution against hotlinking, I've been using the following rule to redirect people with the wrong referrer to our logo instead of the actual image: #Naughty hotlinkers RewriteCond %{REQUEST_FILENAME} .*jpg$|.*gif$|.*png$ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !sitedomain\.com [NC] Rew...

More Eyeballs on my Poor mod_rewrite Attempt Please

We're changing the way users embed images in their blogs, but I need to make sure previously embedded images are still displayed. I'm trying to redirect legacy image embed links to either a static image or a single legacy image embed handling file. I'm using mod_rewrite, but it appears I fail. Amazingly, I've managed to cobble together ...

Hotlinking protection

ok so i have a couple of working codes RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://site.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://site.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.site.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.site.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp...

.htaccess - redirect requests from a certain IP only

I believe someone is scraping images from my site. So what I want to do is, based on their specific IP address, serve up some kind of holding image instead of the actual image. How do I achieve this using .htaccess? ...

How to protect against direct access to images?

I would like to create a web site with many images. But I would like to protect against direct access to images, e.g. direct links to images without visiting the web site. What is the preferred way to do this? And what are the alternatives with Pros and cons? I have some ideas (I don't know if they are possible): File permissions PH...

How to prevent hotlinking on standalone Java webapp server?

How do you prevent hotlinking on a standalone Java webapp server like Tomcat? ...