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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can it possible to hide/Diasble view source [ HTML Source] of any Web page??

Can it possible to hide/Diasble view source [ HTML Source] of any Web page??

Scheduled Pinned Locked Moved ASP.NET
htmlhelpquestion
5 Posts 3 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
    basantakumar
    wrote on last edited by
    #1

    Hi Friends, Can it possible to disable or hide HTML view sources of any web page ?? I think this way it can protect my page data to crawled.. Please help me ..

    A A 2 Replies Last reply
    0
    • B basantakumar

      Hi Friends, Can it possible to disable or hide HTML view sources of any web page ?? I think this way it can protect my page data to crawled.. Please help me ..

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      basantakumar wrote:

      Can it possible to disable or hide HTML view sources of any web page ??

      No you can't . :-D

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • B basantakumar

        Hi Friends, Can it possible to disable or hide HTML view sources of any web page ?? I think this way it can protect my page data to crawled.. Please help me ..

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        No. it is not possible, as the entire html should be downloaded to the client browser to render content. If you want to protect your client logic there are two way out : 1. You render everything within an object(might be Flash / silverlight) so that the actual validation logic or web service calls cant be found by the user easily. 2. You can open your website in a new window, with addressbar, statusbar, toolbar etc hidden... Also hide the context menu, so that the normal user cant find the html source very easily. This is done by most of the banking sites. Just add the code :

        document.oncontextmenu = function(){
            return false;
        }
        

        To hide the context menu. I think this helps you. :rose:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        A 1 Reply Last reply
        0
        • A Abhishek Sur

          No. it is not possible, as the entire html should be downloaded to the client browser to render content. If you want to protect your client logic there are two way out : 1. You render everything within an object(might be Flash / silverlight) so that the actual validation logic or web service calls cant be found by the user easily. 2. You can open your website in a new window, with addressbar, statusbar, toolbar etc hidden... Also hide the context menu, so that the normal user cant find the html source very easily. This is done by most of the banking sites. Just add the code :

          document.oncontextmenu = function(){
              return false;
          }
          

          To hide the context menu. I think this helps you. :rose:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Good Answer Abhishek !:thumbsup:

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          A 1 Reply Last reply
          0
          • A Abhijit Jana

            Good Answer Abhishek !:thumbsup:

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            Thank you dear... :) :):rose::rose:

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            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