Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question for Spookster

    Greetings Spookster,

    I read on http://warriorlibrarian.com/IMHO/antiplag.html that you had invented a method to prevent NS users from copying text off a web site by simply preventing the ability to highlight a text. It says that one has to use a transparent image as shield.

    However, the Warrior web page is not very clear on what to do exactly. I've been experimenting all day, but I can't get it to work. Would you be willing to help me out?

    Thanks,
    Frank

    (P.S.: I'm not looking for a fool-proof method. Preventing people from highlighting text, which is easy enough in IE, but seems impossible in NS, will do just fine.)

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Well first of all ASAAKI impersonating me will get you zapped with my moderator gun.

    Seoncd of all fconjin please don't address topics to specific people.

    Third of all this will work in both NS and IE. Here is the original code I had used. Had to dig around to find it:

    Code:
    <html>
    <head>
    <title>Prevent copy and paste</title>
    </head>
    <body marginwidth="0" marginheight="0" bgcolor="#0000ff">
    <h3>This is a test to see if this text can be highlighted<a href="#">This is a link</a></h3>
    <div id="blank" style="position:absolute;top:0;left:0">
    <img src="images/blank.gif" width="800" height="600" alt="Blank Image">
    </div>
    </body>  
    </html>
    What you need to do is use a graphics program ie Macromedia Fireworks, Photoshop, PaintshopPro, whatever and create a 1 pixel by 1 pixel transparent gif. That is the graphic file you will use. You need to set the width and height of the image tag to cover all of your text.

    As has been mentioned obviously they can just view the source and grab what they want but this can deter the novice users.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just use:


    <SCRIPT language=JavaScript1.2>
    function disableselect(e)
    {
    return false
    }
    function reEnable()
    {
    return true
    }
    document.onselectstart=new Function ("return false")
    if (window.sidebar)
    {
    document.onmousedown=disableselect
    document.onclick=reEnable
    }
    </SCRIPT>

    Ionsurge.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    -moz-user-select:none

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Location
    This little Earth.
    Posts
    383
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    Well first of all ASAAKI impersonating me will get you zapped with my moderator gun.
    err..soooorrryy
    i earnestly apologize...didn't realize...
    Last edited by ASAAKI; 10-27-2002 at 08:40 PM.
    'If you don't stand for something, you'll fall for anything.'

  • #6
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disabling text-highlighting

    Thanks guys, for your responses. It seems, Spookster, that your solution is the only one that would really disable all methods of highlighting text. The other methods that were mentioned are too easy to work around in NS (by means of Ctrl+A, or Select All, which I see as standard operating knowledge).

    One problem, however: I don't have a graphics program with which I could make a 1x1 transparent gif. Would it be a lot of work for you to make one (assuming you do have such a program), and send it to me? Of course I'll mention you on my "I Am Grateful To"-page then (and I'll send you the URL).

    Thanks a million in advance! I'd really be helped with it.

    Frank
    (e-mail: ptu@planet.nl)

  • #7
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts

    Re: Disabling text-highlighting

    Originally posted by fconijn
    Thanks guys, for your responses. It seems, Spookster, that your solution is the only one that would really disable all methods of highlighting text. The other methods that were mentioned are too easy to work around in NS (by means of Ctrl+A, or Select All, which I see as standard operating knowledge).

    One problem, however: I don't have a graphics program with which I could make a 1x1 transparent gif. Would it be a lot of work for you to make one (assuming you do have such a program), and send it to me? Of course I'll mention you on my "I Am Grateful To"-page then (and I'll send you the URL).

    Thanks a million in advance! I'd really be helped with it.

    Frank
    (e-mail: ptu@planet.nl)
    You can download this one:

    http://www.designqueue.com/blank.gif
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #8
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    It works!

    You're brilliant, Spookster. It works, and in all browsers! Slight problem was that the hyperlinks covered by the gif neither work anymore, but for the most important pages that's no problem.

    Thanks!
    Frank


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •