TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:43:51 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 243
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 256
  • Total: 256

Anti-Theft Block

Started by akulion, September 25, 2006, 11:55:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

Sick of people stealing your images?  :tickedoff:

Tired of having your forum posts and content copied?   :'(

Well then this is for you....

Demo

It will cause a hinderance for people to right click or copy images or text from your page. Making it a whole lot more difficult for them to steal stuff.

Install:

Create a SCRIPT block (a side block preferrably one which is visible in all sections of your site)

Insert this code into it:


<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<script type="text/javascript">

/***********************************************
* Disable select-text script- Ã,© Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

</script></head>
<body>
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
</body>



Activate and enjoy.

Aku

Team Edit: To correct spelling in title.

stormlrd


rctxtreme

Hooray, Dynamic Drive finally made it work with FF

Porky

wow they even made the space bar release command inop as welll really good job

akulion

there is another bit of code im looking for

i saw it on a page recently

it disables viewing of page source in the persons browser

If i find it ill add it here :up:

whoesa


JPDeni

If you get the "no viewing source" one going, make sure that whoever uses it disables it if they have problems on their site and ask for help. Viewing the source is the first step in troubleshooting for me.

akulion

no luck yet finding even any info about that one lol

dirt


Mitchâ„¢

This is a very cool block! Thanks!