Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 04:38:20 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 51
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 40
Total: 40

Author Topic: Anti-Theft Block  (Read 54426 times)

0 Members and 1 Guest are viewing this topic.

akulion

  • Guest
Anti-Theft Block
« on: September 25, 2006, 04:55:36 AM »
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:
Code: [Select]

<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.
« Last Edit: August 27, 2008, 06:04:29 PM by Ken. »

Offline stormlrd

  • Friends
  • *
  • Posts: 767
Re: Anti-Theif Block
« Reply #1 on: September 25, 2006, 05:14:40 AM »
Nice one

rctxtreme

  • Guest
Re: Anti-Theif Block
« Reply #2 on: September 25, 2006, 05:16:11 AM »
Hooray, Dynamic Drive finally made it work with FF

Offline Porky

  • Hero Member
  • *****
  • Posts: 608
  • B.A. DBA
    • Facebook!
Re: Anti-Theif Block
« Reply #3 on: September 25, 2006, 05:18:36 AM »
wow they even made the space bar release command inop as welll really good job

akulion

  • Guest
Re: Anti-Theif Block
« Reply #4 on: September 25, 2006, 05:23:05 AM »
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

  • Guest
Re: Anti-Theif Block
« Reply #5 on: September 25, 2006, 05:36:42 AM »
Very cool, thx!  ;)

JPDeni

  • Guest
Re: Anti-Theif Block
« Reply #6 on: September 25, 2006, 05:54:29 AM »
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

  • Guest
Re: Anti-Theif Block
« Reply #7 on: September 25, 2006, 05:57:34 AM »
no luck yet finding even any info about that one lol

dirt

  • Guest
Re: Anti-Theif Block
« Reply #8 on: September 25, 2006, 10:13:45 AM »
very nice mod!  :up:

Mitchâ„¢

  • Guest
Re: Anti-Theif Block
« Reply #9 on: September 25, 2006, 10:51:29 AM »
This is a very cool block! Thanks!