[ListLayout]
×

Are Html Files Secure?

To know the exact answer one must know the mechanism of request and response between server and client. 

In simple words when we access a website we send a request to its server to view that website. After that depending upon the request, the server sends back the response. 

That response consist of important header information along with the website's rendered data and then the web browser parse that data on the client's computer to show the content of the website inside the web browser. 

Now, the data we get from the server is in the form of hyper text because the web browsers are programed to understand hypertext. 

This is how an html file is transfered from the server to the client over TCP. 

Now when a webpage is rendered on the client side, its source code is visible to everyone. You can view the page source by right clicking on the webpage inside the webbrowser and then selecting View Source from the popup menu. 

So, The answer  is NO, the html files are not secure. If you are thinking send some secret information inside a web page then its not a good idea. However,  there are some ways to secure the information on HTML page. 
You can encrypt the data you want to secure  or you can use hashing or other cryprographic techniques.  You can also use server side languages like PHP or Nodejs etc. To apply access control over the webpage so that no unknown person can access the webpage!.

 If you think i have missed something then you can comment below and also suggest me next topic to cover.

Thankyou! 



Comments