Derres Posted August 15, 2017 Share Posted August 15, 2017 What is the best way for protect images and text ? Link to comment Share on other sites More sharing options...
Scully Posted August 15, 2017 Share Posted August 15, 2017 (edited) 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 August 15, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
Derres Posted August 15, 2017 Author Share Posted August 15, 2017 (edited) Can you write the code you can't write to me in private message ? And we cannot do right click not working for all text ? Thanks Edited August 15, 2017 by Derres (see edit history) Link to comment Share on other sites More sharing options...
Derres Posted August 22, 2017 Author Share Posted August 22, 2017 Up Link to comment Share on other sites More sharing options...
num47 Posted November 29, 2020 Share Posted November 29, 2020 Any solution for this. I am try to prevent hotlinking to the images of my website. Is there any way i can do that? Link to comment Share on other sites More sharing options...
ClassyDevs Posted December 3, 2020 Share Posted December 3, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now