Image Protection?!

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

Image Protection?!

Post by xinoy »

Hi,

is there a possibility for an image protection?
I mean that it isn't allowed to download images from a website built with phpwcms?

Greetz Michael
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Image Protection?!

Post by Oliver Georgi »

This is something you have to handle by configuring your webserver - using .htaccess is the best way to do so.
http://www.naturefocused.com/articles/i ... idth-theft

Prevent loading from

Code: Select all

/content/images
and

Code: Select all

/filearchive
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Image Protection?!

Post by update »

This is for hot linking only, but can be extended to a friendly behavior
Just send them a picture of your choice:

Code: Select all

RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.tld/.*$ [NC]
RewriteRule \.(gif|jpg|swf|flv|png|css|js)$ http://domain.tld/my-logo-link.pnn [R,L]
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
xinoy
Posts: 60
Joined: Thu 7. Feb 2008, 21:05

Re: Image Protection?!

Post by xinoy »

hmm maybe i wasn't clear enough.. I actually ment a right mouseclick save as protection. When lightbox is used..
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Image Protection?!

Post by Oliver Georgi »

Forget the right click prevention! This is stupid old school - any image you see is just on your computer (browser cache). If someone want to copy it - there is no way to prevent this.

And lightbox does not have such problem because image is always loaded as CSS background image.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Image Protection?!

Post by flip-flop »

In LightBox/SLimBox you can´t save a picture using the right mouse button.

In addition, for me there is no way to protect a picture when surfing. If we see the image, it is cached by the browser.
All the technics like transparent overlay or backgrond image or htaccess protect can not keep advanced users from downloading a picture.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: Image Protection?!

Post by Heiko H. »

Hi,
all the things written by OG and Knut are absolutely right! There is only one way to protect your pictures -> Put your pictures in a safe and show them to nobody. In the moment the picture is visible in the browser, it is already downloaded :idea: and the user is able to copy it some how...
...for example from the browser cache, with a screenshot, etc. :roll:

Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
User avatar
Cipolla
Posts: 451
Joined: Sat 16. Feb 2008, 20:39
Location: Muppet Show

Re: Image Protection?!

Post by Cipolla »

Yep, That's the way the cookie crumbles.

Put a watermark in your picture.
...
Post Reply