As has been said before, if you do not want people to have your data, it makes no sense putting it on the internet in the first place. If your site visitors can see your web page, it means your data is already on their computer.
Disabling the context menu on right click would only serve to irritate your site visitors. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of SenthilKumar Munusamy Sent: Saturday, May 21, 2005 9:38 AM To: [email protected] Subject: Re: [ASP] Hiding Source Code? Hi, This is Senthil, I don't know the possiblities of hiding the source code in asp. But I can help you something better which really works in Javascript code which is given below: This is just to disable the right click of the mouse: Use Javascript to disable the users ability to display a popup menu after right clicking in browser window. Left click on document is accepted, Right click is disabled. <script language="javascript"> document.onmousedown=disableclick status="Right Click Disabled" function disableclick(e) { if( event.button==2 ) alert("Sorry Right Click has been disabled!"); return false; } </script> Place this code in your Header <Script Language="VBScript"> sub fOnMouseDown() if Window.event.button = 2 Then Alert("Right Click Disabled") End If End sub </Script> Place this code into the Body markers <body link='#6600FF' vlink='#0000FF' onMouseDown="fOnMouseDown()" > Regards SENTHIL samson <[EMAIL PROTECTED]> wrote: Dear Friends, I wanna hide my ASP & HTML code from my website (I mean web page). When users click on view "source code", It shouldn't display source code, It may show something else atleast..or how can I lock "users view source code" option?? Can you pls help me? Thanks, ~Samson.(ASP Beginner) --------------------------------- Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links --------------------------------------------------------------------------- CRBAfrica - providing professional debt management and credit reference bureau services in Kenya, Uganda, Botswana, Tanzania, Ghana and Zambia. --------------------------------------------------------------------------- AccessKenya - Your Corporate ISP - CRB's solution provider for fast efficient Email and Internet Services --------------------------------------------------------------------------- ATTENTION --------------------------------------------------------------------------- The information in this electronic mail message is private and confidential and only for the addressee. Should you receive this message by mistake, you are hereby notified that any disclosure, reproduction, distribution or use of this message is strictly prohibited. Please inform the sender by reply transmission and delete the message without copying or opening it. Any unauthorised use or interception of this e.mail is illegal. If this e.mail is not intended for you, you may not copy, distribute or disclose the contents to anyone. Save for the bona fide company matters, the CRB Group of companies does not accept responsibility for the opinions expressed in this e.mail. --------------------------------------------------------------------------- --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
