Page 1 of 2 12 LastLast
Results 1 to 40 of 42

Thread: Java Script Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Baltimore,MD
    Posts
    536

    Talking Java Script Question

    Do anyone know a java script code i could use so when a person clicks on view source code a message box comes up letting them know that you cant view the source code
    check out my website
    http://www.geocities.com/striver2000t/enterprise.html
    Walter Richardson
    Striver2000 Christian Productions
    Iam seventeen but since I started VB in June of 01 GOD has been helping me excell by finding this great forum with a bunch of GREAT PEOPLE!

  2. #2
    scoutt
    Guest
    not possible

    how did you do that popup box for the save and print?

  3. #3
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    It's not possible to stop anyone (anyway that I know of) to stop people seeing your Source code.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Baltimore,MD
    Posts
    536

    Talking I saw it on a website

    I went to a website that once I tried to click on the view menu on my browser a message box came up saying that I could not do that I dont remember the website no one know how to do it? If so please let me know
    http://www.geocities.com/striver2000t/designs.html
    Walter Richardson
    Striver2000 Christian Productions
    Iam seventeen but since I started VB in June of 01 GOD has been helping me excell by finding this great forum with a bunch of GREAT PEOPLE!

  5. #5
    scoutt
    Guest
    it is not that nobody knows how, it's that it's impossible.

    if you find a way,, do share

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Baltimore,MD
    Posts
    536

    Talking Hiding A script

    Do anyone know how I can hide a script from all webbrowsers like if they click view source code the script will be hidden?
    http://www.geocities.com/striver2000t/enterprise.html
    http://www.geocities.com/striver2000t/designs.html
    Walter Richardson
    Striver2000 Christian Productions
    Iam seventeen but since I started VB in June of 01 GOD has been helping me excell by finding this great forum with a bunch of GREAT PEOPLE!

  7. #7
    scoutt
    Guest
    but they still can download it and view it. you can't hide anything from the user as far as source goes, not even scripts. all you can do is encrypt them but some people know how to decrypt them.

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Well, I haven't tried, but you can't use the reference and put the scripts in a directory that is not virtual?

    I guess if it is important enough to want to hide the code, use Java.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  9. #9
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    This will disable the right click button, but the user can still use the top menubar view/sourcecode.

    So open you site in a popup window with no menubar.

    This will bamboozle most users!

    But the ones it doesn't will probably be able to write the code that your trying to hide so it's of no great interest to them!

    script coutesy of dynamicdrive theres some more alternatives on the site.

    <script language=JavaScript>
    <!--

    //Disable right click script III- By Renigade ([email protected])
    //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>

  10. #10
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    why do you have to use it anyway? Most people find it annoying, and anyone that knows anything can stll easily get the source. I highly suggest not using those.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  11. #11
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    The no right click is good to keep people from getting your pictures. Al least most of the people.

  12. #12
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    well, you can always take a screen shot.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  13. #13
    scoutt
    Guest
    or you can look at the source and download the picture.

  14. #14
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    when people try and block it, it just motivates me more to try and steal it.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  15. #15
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    if someone really wants your source, they can simply make a 2 minute VB prog which puts the whole source in a text box, this makes it impossible to hide source from someone if they really want it

  16. #16
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    So the question is ... why hide source code?

  17. #17
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404

    Talking

    when people try and block it, it just motivates me more to try and steal it.
    It's usually a dissapointment when you do get the source code. Because tricks like this are only done by amatures.

    Proffesionals don't care if there code gets used somewhere else. It just means youv'e made a good script and should be proud that someone else is using it. Even if it took you hours..days...weeks to get your ideas into the script and make it compatiable with every browser ever written...*groans*


  18. #18
    Member vbGirl's Avatar
    Join Date
    Sep 2001
    Location
    India
    Posts
    41

    Talking

    Nice topic to chat

  19. #19
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Cheers vbgirl (thank Walter100 for the topic!)

  20. #20
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    I will continue the thread...

    What does the script that you want to hide do?

  21. #21
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Players poker with the other scripts! sorry jk

  22. #22
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Originally posted by chrismitchell
    Players poker with the other scripts! sorry jk
    ??
    Players poker?

    Plays poker?

    What do you mean?

  23. #23
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Sorry it was a very bad joke... you asked what the hidden script did -- well as it is hidden it can play poker with the other hidden scripts....


    I'll get me coat!

  24. #24
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Angry

    LOL

    Yes you do that

  25. #25
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    i can see why you a programmer and are not a stand up comic

  26. #26
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Saving a page with IE 5 will download any .js files and images anyway.

    If you don't want anyone to see your tricks use Flash.

    I growth of Internet was mainly due to people being able to reuse other peoples scripts and improve upon them rather than having to re-invent the wheel from scratch as you have to with Flash.


    In my opinion any scripts posted on the Internet are there for all to share.

    Please persuade me otherwise....
    Mark
    -------------------

  27. #27
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Originally posted by progressive
    i can see why you a programmer and are not a stand up comic
    Sadly enough.. I have done stand up comedy and I'm not a programmer.. I'm a Graphic Designer.

  28. #28
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    Originally posted by Mark Sreeves
    Saving a page with IE 5 will download any .js files and images anyway.

    If you don't want anyone to see your tricks use Flash.

    I growth of Internet was mainly due to people being able to reuse other peoples scripts and improve upon them rather than having to re-invent the wheel from scratch as you have to with Flash.


    In my opinion any scripts posted on the Internet are there for all to share.

    Please persuade me otherwise....
    I agree. I would say that that accounts for 70% of the success of the net!

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  29. #29
    kayoca
    Guest
    Check out this site.. ya CAN'T view the source code. And i dont know how they did it..

    http://www.statistics.gov.uk/census2001/

  30. #30
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    What are you on about??

    I've just been on the site clicked with my right mouse button viewed the source!

  31. #31
    scoutt
    Guest
    yeah I just went to view then source and looked at it.

    man, you guys don't give up do you

    let em spell it out for you.

    YOU CAN'T HIDE THE SOURCE...... unless it is flash

  32. #32
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    But is flash impregnable ?

    I've seen tools on various sites that claim they can reverse engineer flash files!

  33. #33
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    There was a program called FlashRipper (which was taken away --mainly because Macromedia had a field day on them and got them to NEVER do it again)... Other than that one there have been a few programs that try to get the .fla's etc but I have never seen them work?

    My main question is why? Why do you not want anyone to see your code?

  34. #34
    scoutt
    Guest
    what you mean like doenload that flash file and open it. you can do that but the person that made it can close it so nobody can open it, not even him. That is if I understand flash, which I have little experience in.

  35. #35
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    My main question is why? Why do you not want anyone to see your code?
    It's not me mate!

    I dont care if anyone see's my code I probabbly got it from somewhere else anyway...lol!

    Besides the only way to learn, html and javascript is to view source....in my opinion!

  36. #36
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Basically Flash makes an .swf file which can be viewed (in its finished form) though you can't take it and alter it after it has been compiled like this... As I said there used to be a program called FlashRipper but that has been taken away to a room with the trolls with long hair (you remember those things!). You cannot steal someones work in Flash and then change parts.. I'm sorry Flash is good for keeping secrets on how it was made... If thats what you want to do!

    I agree progressive.. Thats the way most of us learn.. I have no idea why people want to keep things to themselves... Seems very odd to me.

  37. #37
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    The below URL takes you to a delphi site the onwer charges $24
    dollars to download tutorial and stuff.

    http://www.festra.com/eng/download.htm

    His old password is easy to find, but for the new password,
    he's used a funky Javascript algorithm to hide it. I was trying to crack it earlier but I'm busy at the mo!

    He's not hidden his code, but after an hour of stepping through it i couldn't fathum out his algorithm and get the password!

    I guess the moral is don't hide your code!
    If you don't want someone to know how you did something then hide how you did it with intricate code!

  38. #38
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    This link was from another thread...

    http://search.microsoft.com/us/SearchMS25.asp

    Try to view the source after the page is fully loaded.

    Here's the thread:

    http://www.vbforums.com/showthread.p...hreadid=104708

    Hey that's yours too Walter...
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  39. #39
    scoutt
    Guest
    only problem with that is that microsoft can make IE do anything they want

    also if you load it with NS it goes to another script. so it is an IE thing they are doing. maybe the script is running something in windows that makes it not viewable. you know M$

  40. #40
    scoutt
    Guest
    but again you are getting the outcome of that script. you don't see the main part that is controlling IE.

    still pretty complex indeed.

Page 1 of 2 12 LastLast

Posting Permissions

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



Click Here to Expand Forum to Full Width