Web Design Forum: how to make the text not copyable ? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to make the text not copyable ?

#1 User is offline   tangara 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 140
  • Joined: 09-November 09
  • Reputation: 0

Posted 31 August 2010 - 11:20 AM

Dear experts,

I've come across a web page whereby you are not allowed to copy the text or image there. When you tried to do so, there will be a circle with a slash symbol appear and you can't do the copy and paste thing.

Hope someone out there can advise me how to do this kinda thing. thanks.
0

#2 User is offline   STWebDesign 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 601
  • Joined: 01-June 08
  • Reputation: 2
  • Gender:Male
  • Location:UK - Wirral
  • Experience:Advanced
  • Area of Expertise:Web Designer

Posted 01 September 2010 - 02:37 PM

hello, have you got any examples of the this?

Thanks
Simon
0

#3 User is offline   brown2005 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 26-August 10
  • Reputation: 3

Posted 01 September 2010 - 02:42 PM

Put the following script in the head of your page:

<script language="Javascript1.2">


// Set the message for the alert box
am = "This function is disabled!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

</script>

0

#4 User is offline   bocaj 

  • The First Messiah of Javology
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,383
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:The West Country.
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

Posted 01 September 2010 - 02:47 PM

You can spend your time trying to make people's browsers not allow things, but it won't make a difference, Anyone with half a brain can bypass any prevention method you try.

Chances are it was a disable right click function. Which annoys people. They can still use the toolbar, take screenshots, view the source, use telnet cmd and a million and one other ways to get around it.

I wouldn't really waste any time trying to prevent people stealing it, they'll steal it anyway, and all you're going to do is annoy genuine users.

Just my $0.02
0

#5 User is offline   brown2005 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 26-August 10
  • Reputation: 3

Posted 01 September 2010 - 02:48 PM

or simply disable scripts.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users