No Image Download
Moderator: General Moderators
No Image Download
Hello,
I've just built a site that has product images displayed on it for a client, however I've discovered someone else has ripped the site off stealing images and other bits and bobs from the site. I want to try and stop them doing this so I've been looking at various methods of doing this.
So far I've come up with putting a bit of javascript into the page that stops right clicking (IE only unfortunately) and whacking a .htaccess file on the server to sop people linking to images etc.
These measures don't stop people going into the page in something like say firefox and just simply download images and saving them to disk.
Anyone know of any good ways to stop this?
I've just built a site that has product images displayed on it for a client, however I've discovered someone else has ripped the site off stealing images and other bits and bobs from the site. I want to try and stop them doing this so I've been looking at various methods of doing this.
So far I've come up with putting a bit of javascript into the page that stops right clicking (IE only unfortunately) and whacking a .htaccess file on the server to sop people linking to images etc.
These measures don't stop people going into the page in something like say firefox and just simply download images and saving them to disk.
Anyone know of any good ways to stop this?
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
your out of luck you cant stop this. even with the right click a user can still view sorce and get the image if they know a lil. images are downloaded to the client so there is no way of stopping it.
your best bet is to put property of yousite.com on the picture somewhere so if it shows up on another website you can be like blah blah im sueing or somthing
your best bet is to put property of yousite.com on the picture somewhere so if it shows up on another website you can be like blah blah im sueing or somthing
Nah Not possible
Not possible.
I would not worry about it. Throw a water mark on all your images with your URL and get free advertising every time someone hotlinks to it and or shows it to a friend.
I would not worry about it. Throw a water mark on all your images with your URL and get free advertising every time someone hotlinks to it and or shows it to a friend.
There are a few "tricks" you can use to slow-down bulk copying of the site... Store the photos outside of the webroot and have a viewphoto.php?photoid=<someid> page to pass them through.
In the viewphoto.php page you could attempt to add some "throttling" controls, ie track/detect attempts to download large number of photos in rapid succession and then error out. However you have to be careful -- if you have a gallery view you could generate a lot of false positives. Perhaps have a view-thumbnail and a view-photo page with different limits.
Its not perfect and anyone who can see the photo on the screen can still download it, so adding a watermark style thing is good. This is most jus to stop someone from using wget or similar to screen scrap your whole site.
In the viewphoto.php page you could attempt to add some "throttling" controls, ie track/detect attempts to download large number of photos in rapid succession and then error out. However you have to be careful -- if you have a gallery view you could generate a lot of false positives. Perhaps have a view-thumbnail and a view-photo page with different limits.
Its not perfect and anyone who can see the photo on the screen can still download it, so adding a watermark style thing is good. This is most jus to stop someone from using wget or similar to screen scrap your whole site.
yeah I'm aware of all the problems in doing it, water mark was something I thought about as all the iamges are created from gd library.
I did think about using a php script too and using the referer or something to make sure the page calling it is the products page, but essentially it still gets dumped in the browsers cache so its kinda alot of work for no gain.
Looks like I'm stumped.
I did think about using a php script too and using the referer or something to make sure the page calling it is the products page, but essentially it still gets dumped in the browsers cache so its kinda alot of work for no gain.
Looks like I'm stumped.
Code: Select all
<body onContextMenu="return false;">You could use javascript to 'encrypt' in a way the image names so when people view the source they see a bunch of jumble instead of the path to the image. I don't quite remember the name of the function but it's something like escape_string and it outputs a bunch of numbers like '90%89%%90332%'. I've used it on a site before to hide payment return URLs.
But as was said, it's not really possible considering the image is downloaded by the client user.