View Full Version : assistance
pretender
06-28-2002, 04:25 PM
how do i hide my view source or don't allow the user to see the view source or some vaildation for that.
please come to my request positively
joh6nn
06-28-2002, 05:33 PM
because of the way the internet works, it's simply not possible to hide your source. all possible ways of scrambling it, can be done, most of them with the same, simple line of javascript. all of the ways, of trying to make it inaccessible, don't work, because the code has to be stored on the user's computer, in order to be seen. there was one guy, who claimed to have come up with a way to do it using server side, and granted, i never was able to get his source, but he had to use an incredibly complicated system of frames, and http headers, and when i challenged him to make a standard home page using that technique, i never heard back from him.
in practice, it's simply impossible to keep people from getting your code. if you have anything really worth protecting, copyright it, and get a lawyer.
bcarl314
06-28-2002, 05:43 PM
My suggestion would be to delete all the files on your server.
There are some interesting ideas about this topic at http://continue.to/hope
joh6nn
06-28-2002, 05:49 PM
well, if you're looking for real security on your files, then my preferred method is to actually set the server on fire. Mr. T personally recommends this, and his comments on the subject are:
Ain't nobody gonna touch them files, foo'. You's about to be throwed!
premshree
06-29-2002, 06:02 PM
Well, though it is not possible to completely hide the source code of your page, it is possible to disguise it i.e "Encrypt It" and I guess ppl wont take the trouble to decrypt it :)
There are HTML protectors available on the net that do it.
You could also write your entire document as a JavaScript...like this:
document.write(unescape(yourDoc))
Here, yourDoc is your entire documents with characters like 'space' replaced by '%20'.......this could help in a way.
whackaxe
06-29-2002, 06:36 PM
i just had a brainwave about a solution actually, if you dissable the menu bar, then you could use a make a div that takes up exactly the screen size and put a transparent gif in in, it would be hard to pull off with all the different screen sizes but it could get the people of your source for long enough
pretender
06-30-2002, 07:20 AM
my thanks to all the members who have replied me.
i m just a beginer in javascript and it may be possible that i may need ur help in near furture. so plz. help me whenever needed.
i found the way to encrypt my files but is there any way to disable the view source function on the browser and on the menu bar. i think so it may cause a bit of a pain to the person try to **** my ideas
whackaxe
06-30-2002, 08:49 AM
you know daves right, if someone wants your source, they can get it
pretender
07-08-2002, 02:07 PM
Originally posted by Dave Clark
For your own amusement, I give you this:
var myWin = window.open("...", "...", "...,menubar=no,...");
That will create a window without the menu bar. There is no way to turn off the menu bar for the first window that your default page is loaded into. The following script will prevent right-click in IE and NS4:
if (window.Event)
document.captureEvents(Event.MOUSEDOWN);
function noRightClick(evt) {
if (window.Event) {
if (evt.which > 1) {
return false;
}
return true;
}
return true;
}
document.onmousedown = noRightClick;
function noContextMenu() {
event.cancelBubble = true;
event.returnValue = false;
return false;
}
document.oncontextmenu = noContextMenu;
OK? :)
thanks dave 4 ur reply. i m highly obliged.
and dave i wanna ask u 1 more ?.
i don't know asp. from where u think i can get the most simple explaination of how to start with asp. i have already bought a book wrox (unleashed) for asp
thanks once again
ronaldb66
07-08-2002, 03:33 PM
is there any way to disable the view source function on the browser and on the menu bar. i think so it may cause a bit of a pain to the person try to **** my ideas.
Actually, for me that sort of user annoyance is an excellent protection: as soon as i stumble onto such a site, i immediately close the window and make sure never to return.
If you don't want anyone to take notice of your ideas, don't put them on the net.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.