Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Protecting loads of images
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
553 Posts

Posted - 07/12/2024 :  12:39:40  
I’m looking to add a watermark to all of my images. I can do that through desktop software but I’d rather do it through php.

Does anyone have any solutions for this? I heard through .htaccess it can be done as well.

Looking for some help and insights.

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
553 Posts

Posted - 08/07/2024 :  06:22:02  
Maybe I'll rephrase this....

Is there a way for .htaccess to protect a folder (prodimages) from being downloaded?

Terry (Redsei)

midvalleydrifter001
Ecommerce Template Expert

USA
931 Posts

Posted - 08/07/2024 :  16:10:42  
Hi Terry,

I'm no expert here but I use something a bit different on one of my websites that prevents anything on the page from being copied/downloaded by locking out the "Right Click" feature.

It's really easy to implement. This may or may not be what you want but I thought I'd just throw it out there.

Place the following at the top of your <body> tag on each page you want to protect:

<body oncontextmenu="return false;" >

Basically you will insert oncontextmenu="return false;" inside the Body tag as shown above.

Once implemented the right click feature doesn't work.

Someone with savvy computer skills can override that but 99% of people won't know how to do it.

Just my opinion. Maybe it will help, maybe not.

Patrick



dbdave
ECT Moderator

USA
10379 Posts

Posted - 08/07/2024 :  16:41:31  
If you use magictools, you can add a setting that prevents the right click.
Let me know if you need it.
David

Terry Paulhus
Ecommerce Template Expert

Canada
553 Posts

Posted - 08/07/2024 :  20:57:37  
Thanks Patrick... I do use a javascript addon called "content protector". So that part is taken care of. I just thought protecting the PRODIMAGES folder would be the be-all and end-all

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
553 Posts

Posted - 08/07/2024 :  20:58:38  
Yes David, I use Magic Zoom. Is there an easy code for the right click. The less Javascript I have the better I think

Terry (Redsei)
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000