DISABLE RIGHT CLICKING FOR YOUR WEEBLY AND DRAGS

2 min read

Deviation Actions

alpacasovereign's avatar
Published:
4K Views

SO my broseph Astronym  is hella rad and found out how to disable right clicking for your weeblies.

people like to right click and save and steal ocs for some reason, but this is how to take steps to prevent that if you don't want to watermark your images like mad.

-click the design tab and go into your html/css

-click on the right side under 'page layouts', no-header.html

-put this code under the tag, remove spaces in the < >'s

< script type="text/javascript" >
function catch_click(e)
{
if (!e) var e = window.event;

var right_click = (e.which ? (e.which == 3) : (e.button == 2));

if (right_click)
{
alert('Right clicking on this page is not allowed.');
return false;
}
}

document.onmousedown = catch_click;
if (document.captureEvents) document.captureEvents(Event.MOUSEDOWN);
< /script >

save, publish and TA-DA. now no one can right click your images. you can't copy text either, so you'll hav to do ctrl-c for text.

here's how you disable dragging images. this is another way people can steal your pictures, by simply dragging the image into a new tab for the fullsize. NOT ANYMORE, SUCKAS.

-click the design tab and go into your html/css

-at the very top of the code, just put this in:

html, body, div, span, object,
form, input, h1, h2, button, label, a, img {
-moz-user-select: none;
-webkit-user-select: none;
/* this will work for QtWebKit in future */
-webkit-user-drag: none;
}

i recommend making journals/showing/telling people about this so we can prevent theft!

ENJOY.

© 2014 - 2024 alpacasovereign
Comments22
Join the community to add your comment. Already a deviant? Log In
amazonlover08's avatar

Hi alpha Please read my most recent entry to all my New Watchers and Non-Contributors. This is the SECOND time I have had to remind these little NC buggers to AT LEAST thank me for my hard work. Each of my images in Daz represents at least 3-4 hours of thought, brainpower, etc. But YOU understand this else why would you put this up right? Another thing where do ALL these new watchers come from. Most have these ridiculours monikers have ZERO art on their site. F are they taking our work and posting it on sites in Korea or China somewhere. Anyway I'd love it if you could just have a glance at this entry and tell me if I am justified in my comments or am I being OVERLY sensitive and should let the litte "mice" come into my cupboards and rob me blind. LOVE YOUR STUFF. BE SAFE AND WELL