Jump to content

What is the best way for protect images and text ?


Recommended Posts

For images there are some way to protect hotlinking, protect from direct dowloading via context menue in the browser.

Prevent hot linking with .htaccess rules

 

Sorry, i can't upload the code due to unknown reasons. It's paritally deleted.

 

Prevent save image by browsers context menu - Javascript

$('img').mousedown(function (e) {
if(e.button == 2) { // right click
return false; // do nothing!
}
}
However both solutions cannot completely avoid images to be stored locally. The images are always transferred to the browser. Hence it would be possible to get the images from the browsers cache or by inspecting the source code where javascript doesn't work anymore.

 

There are also tools or modules which allow to implement a watermark.

 

With text I don't see any solution at all.

Edited by Scully (see edit history)
Link to comment
Share on other sites

  • 3 years later...

Hello,num47

You can apply  9. Add Code to Your .HtAccess File from the bellow article first and apply rest of the things which is possible. Normally we find the request site of our resource and then block that ip from our server to prevent call

 

https://www.hostpapa.com/blog/security/how-you-can-prevent-hotlinking/

 

Hope it will solve your issue

 

Thank you

Classy Devs Team

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...