Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to block the user from doing "save as" my mebsite.

How to block the user from doing "save as" my mebsite.

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Balagurunathan S
    wrote on last edited by
    #1

    Hi Friends.. I am having a website developed in ASP.NET.I need my website not to be made "save as" by any user who views my website.I also need to disallow my user from viewing the source of my application by selecting view--source..The primary objective of mine is to protect my source by means of this..Moreover i need not want to block the enire toolbar itself..rather i need to block two submenus in the tool bar i,e save as and view source. Someone help in this regard as early as possible..

    Balaguru

    V P J 3 Replies Last reply
    0
    • B Balagurunathan S

      Hi Friends.. I am having a website developed in ASP.NET.I need my website not to be made "save as" by any user who views my website.I also need to disallow my user from viewing the source of my application by selecting view--source..The primary objective of mine is to protect my source by means of this..Moreover i need not want to block the enire toolbar itself..rather i need to block two submenus in the tool bar i,e save as and view source. Someone help in this regard as early as possible..

      Balaguru

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Balagurunathan S wrote:

      The primary objective of mine is to protect my source by means of this

      Source means your .NET Code or HTML? If .NET code, there no need to worry, your code will not be visible since everything will be rendered into HTML. Actually you cannot disble the IE's menu item at any cost since ASP.NET application has nothing to do with Client Side. But your can disable the Context Menu (Right-Click Menu) of your browser by capturing the Mouse Events of the Page

      Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

      B 1 Reply Last reply
      0
      • V Venkatesh Mookkan

        Balagurunathan S wrote:

        The primary objective of mine is to protect my source by means of this

        Source means your .NET Code or HTML? If .NET code, there no need to worry, your code will not be visible since everything will be rendered into HTML. Actually you cannot disble the IE's menu item at any cost since ASP.NET application has nothing to do with Client Side. But your can disable the Context Menu (Right-Click Menu) of your browser by capturing the Mouse Events of the Page

        Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

        B Offline
        B Offline
        Balagurunathan S
        wrote on last edited by
        #3

        Dear Mookkan.. Thanks for your response. I want to hide my HTML source..Is there any way for doing this..? I have blocked the right click option of mouse in my application.so kindly suggest whether there is any way to hide the HTML source and to disable "save as" menu.. Regards,

        Balaguru

        V 1 Reply Last reply
        0
        • B Balagurunathan S

          Dear Mookkan.. Thanks for your response. I want to hide my HTML source..Is there any way for doing this..? I have blocked the right click option of mouse in my application.so kindly suggest whether there is any way to hide the HTML source and to disable "save as" menu.. Regards,

          Balaguru

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Balagurunathan S wrote:

          I want to hide my HTML source

          The simple and straight answer is You can not. If your website needs to be rendered on a standards compliant web browser, the HTML ought to go. If you are really really feeling insecure, you may like to host a simple index.htm page and host an ActiveX Control. This ActiveX Control would have a secure connection with your parent webserver through proprietary handshake mechanism.

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          B 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            Balagurunathan S wrote:

            I want to hide my HTML source

            The simple and straight answer is You can not. If your website needs to be rendered on a standards compliant web browser, the HTML ought to go. If you are really really feeling insecure, you may like to host a simple index.htm page and host an ActiveX Control. This ActiveX Control would have a secure connection with your parent webserver through proprietary handshake mechanism.

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            B Offline
            B Offline
            Balagurunathan S
            wrote on last edited by
            #5

            Dear Deepak.. Thanks for the timely reply... Regards,

            Balaguru

            1 Reply Last reply
            0
            • B Balagurunathan S

              Hi Friends.. I am having a website developed in ASP.NET.I need my website not to be made "save as" by any user who views my website.I also need to disallow my user from viewing the source of my application by selecting view--source..The primary objective of mine is to protect my source by means of this..Moreover i need not want to block the enire toolbar itself..rather i need to block two submenus in the tool bar i,e save as and view source. Someone help in this regard as early as possible..

              Balaguru

              P Offline
              P Offline
              Prashant Choudhary 0
              wrote on last edited by
              #6

              u cant do that but u can encrypt your all html so no one can understand any thing.

              B 1 Reply Last reply
              0
              • P Prashant Choudhary 0

                u cant do that but u can encrypt your all html so no one can understand any thing.

                B Offline
                B Offline
                Balagurunathan S
                wrote on last edited by
                #7

                Dear Prashant.. Thanks for the reply.. How to encrypt all the HTML code..Can u kindly eloborate me how to do it.. Thanks & Regards,

                Balaguru

                1 Reply Last reply
                0
                • B Balagurunathan S

                  Hi Friends.. I am having a website developed in ASP.NET.I need my website not to be made "save as" by any user who views my website.I also need to disallow my user from viewing the source of my application by selecting view--source..The primary objective of mine is to protect my source by means of this..Moreover i need not want to block the enire toolbar itself..rather i need to block two submenus in the tool bar i,e save as and view source. Someone help in this regard as early as possible..

                  Balaguru

                  J Offline
                  J Offline
                  J4amieC
                  wrote on last edited by
                  #8

                  quite what you think is so important about your HTML is beyond me. Believe me, you're not doing anything so unique that allowing people to view your HTML will in some way harm you, your website, or your rights as a web developer. That said, there is one sure fire way of not allowing ANYBODY to view your HTML. Its called the "not putting it on the internet" method. Im sure you can work out the details.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups