Advanced Search

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Disable Right Click

  1. #1
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Disable Right Click

    Disable right click javascript.

    Hi every one try out this right click script I made and see what you make of it just copy&paste the code into your site. This script displays one pop-up (once) and a small banner as its only a demo. The code may look funny but it works in all browsers, the reason is, is that the JavaScript is encrypted. Please leave your comments and please let me know if you find any bugs e.g. does not work in some browsers or away around it. This script ONLY works online not offline (if using offline) you will only see a blankage. Reason I did this was just to add alittle extra security for you!!!!



    copy&paste code below:
    -----------------------

    get code from

    http://www.*****************/scripts/rightclick.zip
    Last edited by htmlblock; 06-12-2005 at 06:59 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Firefox defeats it.

    So basically, it's an encrypted script (which is encrypted using perfectly avaliable techniques, for FREE, on the Dynamic Drive site), which displays an advert and doesn't work?

    Erm, excuse me if I'm wrong, but isn't your whole website profiting on existing free technology and adverts?

    Maybe I'm in a bad mood, but that's disgraceful.

    cr3ative

    /edit: For your reference, the Dynamic Drive HTML Encrypter works just as well as your paid product (http://www.dynamicdrive.com/dynamicindex9/encrypter.htm).
    Last edited by cr3ative; 06-12-2005 at 06:11 PM.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default No not really

    No not really as that encryptor does use the same method, and the way in which I have done it is much more secure than the URL you gave me. Well you did not even try the script out, so only comment please if you try it. I'm after feedabck on what people think of the script ONCE they have tried it. The only reason I encrypted the code was so that you cant read or edit my code. If anyone would like it then e-mail me.

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Excuse me, but I tested the script quite thoroughly, and my comments still stand.

    Explain yourself.

    cr3ative

    Placed code on http://cr3ation.co.uk/geocaching/ , still there. Check for yourself. Does nothing.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Woah, wait.

    <!--/BODY--><!--/HTML-->

    WHAT?!
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  6. #6
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ok

    ok thank you for that please wait 2 sec's and i will look at the code see whats up, thank you

  7. #7
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    reason for change of post due to other member in forum saying code not working after some looking I found the code was not layed out well and you must copy and paste code from http://www.*****************/scripts/rightclick.zip then DO NOT CHANGE ANYTHING or it WILL NOT WORK!!!!
    Last edited by htmlblock; 06-12-2005 at 07:01 PM.

  8. #8
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ahhh found out why it might be beacuse of the layout?? if the above code does not work downlaod the script from my server http://www.*****************/scripts/rightclick.zip

  9. #9
    Join Date
    Jun 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, found out your problem with the code not working and that is that the layouts wrong, due to when you copy&paste from the forum it reformats the code you must copy and paste from http://www.*****************/scripts/rightclick.zip

  10. #10
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, my site's updated, but your code is still malfunctioning. Not looking good for a commercial product, is it?

    Hardly very encrypted, either, is it? Ever used a DOM inspector?
    Unicode "escaping" is not secure, and you should not convince people it is. That's unethical in my opinion.

    Your "encrypted" code follows.
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    hp_ok=true;
    function hp_d01(s)
    {
    if(!hp_ok)
    return;
    var o="";
    ar=new Array();
    os="",
    ic=0;
    for(i=0;i<s.length;i++){
    c=s.charCodeAt(I);
    if(c<128)c=c^2;
    os+=String.fromCharCode(C);
    if(os.length>80)
    {
    ar[ic++]=os;
    os=""
    }
    }
    o=ar.join("")+os;
    document.write(O)
    }
    //-->
    </SCRIPT>
    Firstly, //--> SGML delimiters are obselete.
    Secondly, the <script LANGUAGE=""> has long been replaced by <script type="">.

    Overall, your code is a shambles.

    cr3ative.
    Last edited by cr3ative; 06-12-2005 at 06:55 PM.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

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