|
-
Sep 23rd, 2001, 12:37 AM
#1
Thread Starter
Fanatic Member
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!
-
Sep 23rd, 2001, 03:38 AM
#2
not possible
how did you do that popup box for the save and print?
-
Sep 23rd, 2001, 05:49 AM
#3
Fanatic Member
It's not possible to stop anyone (anyway that I know of) to stop people seeing your Source code.
-
Sep 24th, 2001, 05:06 PM
#4
Thread Starter
Fanatic Member
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!
-
Sep 24th, 2001, 07:36 PM
#5
it is not that nobody knows how, it's that it's impossible.
if you find a way,, do share
-
Sep 26th, 2001, 12:18 PM
#6
Thread Starter
Fanatic Member
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!
-
Sep 26th, 2001, 04:30 PM
#7
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.
-
Sep 26th, 2001, 04:33 PM
#8
Frenzied Member
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.
-
Oct 2nd, 2001, 11:29 AM
#9
Hyperactive Member
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>
-
Oct 2nd, 2001, 03:45 PM
#10
PowerPoster
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
-
Oct 2nd, 2001, 04:48 PM
#11
Frenzied Member
The no right click is good to keep people from getting your pictures. Al least most of the people.
-
Oct 2nd, 2001, 04:52 PM
#12
PowerPoster
well, you can always take a screen shot.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Oct 2nd, 2001, 08:15 PM
#13
or you can look at the source and download the picture.
-
Oct 2nd, 2001, 08:40 PM
#14
PowerPoster
-
Oct 2nd, 2001, 11:56 PM
#15
Conquistador
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
-
Oct 3rd, 2001, 03:20 AM
#16
Fanatic Member
So the question is ... why hide source code?
-
Oct 3rd, 2001, 03:30 AM
#17
Hyperactive Member
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*
-
Oct 3rd, 2001, 03:36 AM
#18
Member
-
Oct 3rd, 2001, 03:47 AM
#19
Fanatic Member
Cheers vbgirl (thank Walter100 for the topic!)
-
Oct 3rd, 2001, 04:16 AM
#20
Conquistador
I will continue the thread... 
What does the script that you want to hide do?
-
Oct 3rd, 2001, 04:28 AM
#21
Fanatic Member
Players poker with the other scripts! sorry jk
-
Oct 3rd, 2001, 05:36 AM
#22
Conquistador
Originally posted by chrismitchell
Players poker with the other scripts! sorry jk
??
Players poker?
Plays poker?
What do you mean?
-
Oct 3rd, 2001, 05:45 AM
#23
Fanatic Member
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!
-
Oct 3rd, 2001, 05:49 AM
#24
Conquistador
-
Oct 3rd, 2001, 05:50 AM
#25
Hyperactive Member
i can see why you a programmer and are not a stand up comic
-
Oct 3rd, 2001, 06:05 AM
#26
Frenzied Member
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....
-
Oct 3rd, 2001, 06:23 AM
#27
Fanatic Member
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.
-
Oct 3rd, 2001, 03:29 PM
#28
PowerPoster
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
-
Oct 10th, 2001, 07:06 AM
#29
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/
-
Oct 10th, 2001, 07:40 AM
#30
Hyperactive Member
What are you on about??
I've just been on the site clicked with my right mouse button viewed the source!
-
Oct 10th, 2001, 09:11 AM
#31
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
-
Oct 10th, 2001, 09:16 AM
#32
Hyperactive Member
But is flash impregnable ?
I've seen tools on various sites that claim they can reverse engineer flash files!
-
Oct 10th, 2001, 09:22 AM
#33
Fanatic Member
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?
-
Oct 10th, 2001, 09:22 AM
#34
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.
-
Oct 10th, 2001, 09:33 AM
#35
Hyperactive Member
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!
-
Oct 10th, 2001, 09:37 AM
#36
Fanatic Member
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.
-
Oct 10th, 2001, 09:50 AM
#37
Hyperactive Member
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!
-
Oct 12th, 2001, 11:07 PM
#38
Fanatic Member
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...
-
Oct 12th, 2001, 11:30 PM
#39
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$
-
Oct 13th, 2001, 12:12 PM
#40
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|