|
 |
asp_web_howto thread: Preventing the Viewing of ASP Source Code
Message #1 by plestj@y... on Thu, 29 Nov 2001 15:47:08
|
|
Is there a way to prevent users who run an ASP script web app the IE
browser from viewing our source code via the "View, Source" menu? I would
like to protect the copying of source code in a particular web
application. Thanks for your input.
Message #2 by Joe Ingle <Joe@k...> on Thu, 29 Nov 2001 16:38:49 -0000
|
|
Unfortunatley, to my knowledge, there is no way you can bypass View
Source
in Explorer, but you can get round it, to an extent, by using frames.
Altenativly you can reference this JavaScript from all the pages you
wish to
protect, and it will disable the right mouse button. It can't even be
bluffed with a quick right - left click.
#############################################
function FuncSecure(o) {
if (navigator.appName =3D=3D 'Netscape' &&
(o.which =3D=3D 3 || o.which =3D=3D 2))
return false;
else if (navigator.appName =3D=3D 'Microsoft Internet Explorer' &&
(event.button =3D=3D 2 || event.button =3D=3D 3)) {
alert("=A9 YOUR SITE NAME");
return false;
}
return true;
}
document.onmousedown=3DFuncSecure;
document.onmouseup=3DFuncSecure;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=3DFuncSecure;
window.onmouseup=3DFuncSecure;
if (parent.location.href =3D=3D self.location.href){
window.location.href =3D 'http://www.YOURSITEADDRESS.co.uk/';
alert(ShowAlert)}
###########################################
hope this is of some use.
Joe
-----Original Message-----
From: plestj@y... [mailto:plestj@y...]
Sent: Thursday, November 29, 2001 03:47
To: ASP Web HowTo
Subject: [asp_web_howto] Preventing the Viewing of ASP Source Code
Is there a way to prevent users who run an ASP script web app the IE
browser from viewing our source code via the "View, Source" menu? I
would
like to protect the copying of source code in a particular web
application. Thanks for your input.
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=3D2181&sourceid=3D38934667&ca
tegoryid
=3Drn_ebooks
Message #3 by "Daniel O'Dorisio" <daniel@o...> on Thu, 29 Nov 2001 10:51:04 -0500
|
|
if they view source they will not view the asp source.. it will be html
source.. and no there is no way at all in the world.. to protect your html
source.. i dont care what people say.. if it is html.. then it HAS to be
sent back to the client.. do this.. go out and telnet www.google.com on port
80, hit enter a few times.. you will get some html back.. it isnt the
default page since a correct request hasnt been made.. but it is still
html.. that is how it all works..
there are methods to try to keep users from viewing source or saving
images.. by disabling right mouse clicks with javascript.. but then heck..
just go in your cach and get it there.. open it with notepad.. nuff said..
anyway.. you might search on google for "disable right mouse click with
javascript" or something.. you should get some sample scripts..
hth
daniel
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
<plestj@y...> wrote in message news:124515@a..._web_howto...
>
> Is there a way to prevent users who run an ASP script web app the IE
> browser from viewing our source code via the "View, Source" menu? I would
> like to protect the copying of source code in a particular web
> application. Thanks for your input.
>
>
Message #4 by Mark Eckeard <meckeard2000@y...> on Thu, 29 Nov 2001 08:34:26 -0800 (PST)
|
|
Another note.....If you do disable the right-click on
the mouse, be sure to do it in taste (if there is such
a way). Although I don't agree, I have heard of some
people feeling alienated by disabling the mouse.
Almost as if you assume every visitor is a thief.
I would definately NOT do this on a business site.
Something to think about.
Mark
--- Daniel O'Dorisio <daniel@o...>
wrote:
> if they view source they will not view the asp
> source.. it will be html
> source.. and no there is no way at all in the
> world.. to protect your html
> source.. i dont care what people say.. if it is
> html.. then it HAS to be
> sent back to the client.. do this.. go out and
> telnet www.google.com on port
> 80, hit enter a few times.. you will get some html
> back.. it isnt the
> default page since a correct request hasnt been
> made.. but it is still
> html.. that is how it all works..
>
> there are methods to try to keep users from viewing
> source or saving
> images.. by disabling right mouse clicks with
> javascript.. but then heck..
> just go in your cach and get it there.. open it with
> notepad.. nuff said..
>
> anyway.. you might search on google for "disable
> right mouse click with
> javascript" or something.. you should get some
> sample scripts..
>
> hth
> daniel
>
> --
> -----------------------------
> Daniel O'Dorisio
> daniel@o...
> www.odorisio-networks.com
> -----------------------------
> <plestj@y...> wrote in message
> news:124515@a..._web_howto...
> >
> > Is there a way to prevent users who run an ASP
> script web app the IE
> > browser from viewing our source code via the
> "View, Source" menu? I would
> > like to protect the copying of source code in a
> particular web
> > application. Thanks for your input.
> >
> >
>
>
>
> meckeard2000@y...
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
Message #5 by Sam Clohesy <sam@e...> on Thu, 29 Nov 2001 16:41:47 -0000
|
|
And disabling the back button
grrrr....
Sam Clohesy
Project Manager
Tel: 0208 772 3958
E: samc@e...
W: http://www.etypemedia.co.uk
-----Original Message-----
From: Mark Eckeard [mailto:meckeard2000@y...]
Sent: 29 November 2001 16:34
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Preventing the Viewing of ASP Source Code
Another note.....If you do disable the right-click on
the mouse, be sure to do it in taste (if there is such
a way). Although I don't agree, I have heard of some
people feeling alienated by disabling the mouse.
Almost as if you assume every visitor is a thief.
I would definately NOT do this on a business site.
Something to think about.
Mark
--- Daniel O'Dorisio <daniel@o...>
wrote:
> if they view source they will not view the asp
> source.. it will be html
> source.. and no there is no way at all in the
> world.. to protect your html
> source.. i dont care what people say.. if it is
> html.. then it HAS to be
> sent back to the client.. do this.. go out and
> telnet www.google.com on port
> 80, hit enter a few times.. you will get some html
> back.. it isnt the
> default page since a correct request hasnt been
> made.. but it is still
> html.. that is how it all works..
>
> there are methods to try to keep users from viewing
> source or saving
> images.. by disabling right mouse clicks with
> javascript.. but then heck..
> just go in your cach and get it there.. open it with
> notepad.. nuff said..
>
> anyway.. you might search on google for "disable
> right mouse click with
> javascript" or something.. you should get some
> sample scripts..
>
> hth
> daniel
>
> --
> -----------------------------
> Daniel O'Dorisio
> daniel@o...
> www.odorisio-networks.com
> -----------------------------
> <plestj@y...> wrote in message
> news:124515@a..._web_howto...
> >
> > Is there a way to prevent users who run an ASP
> script web app the IE
> > browser from viewing our source code via the
> "View, Source" menu? I would
> > like to protect the copying of source code in a
> particular web
> > application. Thanks for your input.
> >
> >
>
>
>
> meckeard2000@y...
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
$subst('Email.Unsub')
Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks
Message #6 by "Daniel O'Dorisio" <daniel@o...> on Thu, 29 Nov 2001 12:08:34 -0500
|
|
yeah i feel the same way.. i think the user should have control.. but just
answering his quest..
danie.
--
-----------------------------
Daniel O'Dorisio
daniel@o...
www.odorisio-networks.com
-----------------------------
"Sam Clohesy" <sam@e...> wrote in message
news:124538@a..._web_howto...
>
> And disabling the back button
>
> grrrr....
>
> Sam Clohesy
> Project Manager
> Tel: 0208 772 3958
> E: samc@e...
> W: http://www.etypemedia.co.uk
>
>
> -----Original Message-----
> From: Mark Eckeard [mailto:meckeard2000@y...]
> Sent: 29 November 2001 16:34
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: Preventing the Viewing of ASP Source Code
>
>
> Another note.....If you do disable the right-click on
> the mouse, be sure to do it in taste (if there is such
> a way). Although I don't agree, I have heard of some
> people feeling alienated by disabling the mouse.
> Almost as if you assume every visitor is a thief.
>
> I would definately NOT do this on a business site.
>
> Something to think about.
>
> Mark
> --- Daniel O'Dorisio <daniel@o...>
> wrote:
> > if they view source they will not view the asp
> > source.. it will be html
> > source.. and no there is no way at all in the
> > world.. to protect your html
> > source.. i dont care what people say.. if it is
> > html.. then it HAS to be
> > sent back to the client.. do this.. go out and
> > telnet www.google.com on port
> > 80, hit enter a few times.. you will get some html
> > back.. it isnt the
> > default page since a correct request hasnt been
> > made.. but it is still
> > html.. that is how it all works..
> >
> > there are methods to try to keep users from viewing
> > source or saving
> > images.. by disabling right mouse clicks with
> > javascript.. but then heck..
> > just go in your cach and get it there.. open it with
> > notepad.. nuff said..
> >
> > anyway.. you might search on google for "disable
> > right mouse click with
> > javascript" or something.. you should get some
> > sample scripts..
> >
> > hth
> > daniel
> >
> > --
> > -----------------------------
> > Daniel O'Dorisio
> > daniel@o...
> > www.odorisio-networks.com
> > -----------------------------
> > <plestj@y...> wrote in message
> > news:124515@a..._web_howto...
> > >
> > > Is there a way to prevent users who run an ASP
> > script web app the IE
> > > browser from viewing our source code via the
> > "View, Source" menu? I would
> > > like to protect the copying of source code in a
> > particular web
> > > application. Thanks for your input.
> > >
> > >
> >
> >
> >
> > meckeard2000@y...
> > $subst('Email.Unsub')
> >
> > Read the future with ebooks at B&N
> >
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
> =rn_ebooks
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
> =rn_ebooks
>
>
Message #7 by Mark Eckeard <meckeard2000@y...> on Thu, 29 Nov 2001 09:22:38 -0800 (PST)
|
|
makes ya wanna send the web master a nasty email...
--- Sam Clohesy <sam@e...> wrote:
> And disabling the back button
>
> grrrr....
>
> Sam Clohesy
> Project Manager
> Tel: 0208 772 3958
> E: samc@e...
> W: http://www.etypemedia.co.uk
>
>
> -----Original Message-----
> From: Mark Eckeard [mailto:meckeard2000@y...]
> Sent: 29 November 2001 16:34
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: Preventing the Viewing
> of ASP Source Code
>
>
> Another note.....If you do disable the right-click
> on
> the mouse, be sure to do it in taste (if there is
> such
> a way). Although I don't agree, I have heard of
> some
> people feeling alienated by disabling the mouse.
> Almost as if you assume every visitor is a thief.
>
> I would definately NOT do this on a business site.
>
> Something to think about.
>
> Mark
> --- Daniel O'Dorisio <daniel@o...>
> wrote:
> > if they view source they will not view the asp
> > source.. it will be html
> > source.. and no there is no way at all in the
> > world.. to protect your html
> > source.. i dont care what people say.. if it is
> > html.. then it HAS to be
> > sent back to the client.. do this.. go out and
> > telnet www.google.com on port
> > 80, hit enter a few times.. you will get some html
> > back.. it isnt the
> > default page since a correct request hasnt been
> > made.. but it is still
> > html.. that is how it all works..
> >
> > there are methods to try to keep users from
> viewing
> > source or saving
> > images.. by disabling right mouse clicks with
> > javascript.. but then heck..
> > just go in your cach and get it there.. open it
> with
> > notepad.. nuff said..
> >
> > anyway.. you might search on google for "disable
> > right mouse click with
> > javascript" or something.. you should get some
> > sample scripts..
> >
> > hth
> > daniel
> >
> > --
> > -----------------------------
> > Daniel O'Dorisio
> > daniel@o...
> > www.odorisio-networks.com
> > -----------------------------
> > <plestj@y...> wrote in message
> > news:124515@a..._web_howto...
> > >
> > > Is there a way to prevent users who run an ASP
> > script web app the IE
> > > browser from viewing our source code via the
> > "View, Source" menu? I would
> > > like to protect the copying of source code in a
> > particular web
> > > application. Thanks for your input.
> > >
> > >
> >
> >
> >
> > meckeard2000@y...
> > $subst('Email.Unsub')
> >
> > Read the future with ebooks at B&N
> >
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
> =rn_ebooks
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting,
> just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> samc@e...
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
> =rn_ebooks
>
> meckeard2000@y...
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
|
|
 |