This might not be the right place.
I am sure this been ask before,
how to stop someone hot linking my graphics?
Thanks for any help.
This might not be the right place.
I am sure this been ask before,
how to stop someone hot linking my graphics?
Thanks for any help.
Your web host should have a setting to prevent this activity. My web host's vDeck system has an option under Settings to disable HotLinking.
Getmea
you can require the image loading from your pages only using the htaccess file.
I don't remember the line but you can check the documentation of htaccess from Apache
Here ya go, put this in htaccess
create a very small file called nohotlink.jpg, which will replace the pic they are hotlinking to.RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
In the image, you could say "Stolen from www.yourdomain.com"
----Don't Call Me Brian----
Is there a way to only disallow images from a folder for being hotlinked??
Thanks in advance
Yes. Simply create a new .htaccess file in the folder you want to protect, with the above suggested directives. That will only cause that specific folder and it's subfolders to be blocked.
The best way to learn anything, is to question everything.
WigeDev - Freelance web and software development
This happened to me once and I changed the picture they were using to my business logo, keeping the name the same. Then my logo picture was on their site.
Of course I then I changed the name to the picture they had been using and relinked to my page.
Thought it would be funny and I got a kick out of it.
ObieTemp
hostBrain' solution is fine, but you might want to add other authorized referrers, like the pages in Google cache.
Jean-Luc
200ok.eu Broken Link Checker finds 404 errors, error pages with 200 ok status, missing images, protocol errors, password protected pages, bad domain names, redirect loops, parking pages, ...
IMO image control is best done through calling a script for the image and not linking directly to the image.
Normal image (no scripts):
New image (scripts):Code:<img src='image.jpg'>
On your new scripting page myimagescript.php you can write all the validation code you desire before displaying the images. You can check a users is log-in status, check the referral url, etc...Code:<img src='myimagescript.php?image=image.jpg'>
Craig Walenta on Google+