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
Printable View
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
not possible
how did you do that popup box for the save and print?
It's not possible to stop anyone (anyway that I know of) to stop people seeing your Source code. :(
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
it is not that nobody knows how, it's that it's impossible.
if you find a way,, do share
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
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.
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.
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>
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.
The no right click is good to keep people from getting your pictures. Al least most of the people.
well, you can always take a screen shot.
or you can look at the source and download the picture. :)
when people try and block it, it just motivates me more to try and steal it. :D:D:D:D:D:D
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
So the question is ... why hide source code?
It's usually a dissapointment when you do get the source code. Because tricks like this are only done by amatures.Quote:
when people try and block it, it just motivates me more to try and steal it.
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*
:D
:D :D :D :D Nice topic to chat :D :D :D :D
Cheers vbgirl (thank Walter100 for the topic!)
I will continue the thread... :p
What does the script that you want to hide do?
Players poker with the other scripts! :D sorry jk
??Quote:
Originally posted by chrismitchell
Players poker with the other scripts! :D sorry jk
Players poker?
Plays poker?
What do you mean?
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!
LOL :p
Yes you do that ;)
i can see why you a programmer and are not a stand up comic :)
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.... :)
Sadly enough.. I have done stand up comedy and I'm not a programmer.. I'm a Graphic Designer.Quote:
Originally posted by progressive
i can see why you a programmer and are not a stand up comic :)
I agree. I would say that that accounts for 70% of the success of the net!Quote:
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.... :)
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/
What are you on about??
I've just been on the site clicked with my right mouse button viewed the source!
yeah I just went to view then source and looked at it.
man, you guys don't give up do you :D
let em spell it out for you.
YOU CAN'T HIDE THE SOURCE...... unless it is flash
But is flash impregnable ?
I've seen tools on various sites that claim they can reverse engineer flash files!
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?
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.
It's not me mate!Quote:
My main question is why? Why do you not want anyone to see your code?
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!
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.
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!
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...
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$ :)
but again you are getting the outcome of that script. you don't see the main part that is controlling IE. :p
still pretty complex indeed.