Avoid copying images in the site
#1
Heart 
Hi
To avoid copying images In MyBB forums and various sites (Drag & Drop and right-click) way to do that would be to use.
Note: This is done with jQuery and if you have a lot headerinclude script may cause the script to disable them or do not have the script is good for the forums.
First you must create a Mycode.
Title *
Image protector
Short Description
A way to protecting your images

Regular expression *
\[imgclass=(.*?)](.*?)\[\/imgclass\]

Replacement *
< img src = "$2" class = "$1" />

Enabled? Yes


Well half way, where you put the image code below to put the image
[ imgclass = protect ] your image address [/ imgclass ]

you must see below code in your source
< img src = "your image address" class= "protect" />

well done . insert the following scripts into headerinclude before {$ stylesheets}

< script type = "text/javascript" src = "{$mybb->settings['bburl']}/jscripts/jquery-1.2.6.js" > </script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.dwImageProtector.js"></script>
<script type="text/javascript">
$(window).bind('load', function() {
$('img.protect').protectImage();
});
</script>

In the last step, Upload the files that are included in zip file into the jscripts folder and blank.gif image into images folder.

What happens with these things, if anyone on the site, right click the image and select copy image location or Drag & drop images in your site just can give blank.gif image . For image copy is a lot of work but it is one way to prevent the theft of high-quality images.


.zip   imageprotector.zip (Size: 30.41 KB / Downloads: 248)
Reply
#2
Another good one midroi. Cheers Big Grin
Reply
#3
wont stop me from grabbing the source code and pulling the URL that way. irritating watermarks are about the only way you can deter image theft
Lost interest, sold my sites, will browse here once in a while. It's been fun.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)