How a website works

H

Just as you view a file on your computer by opening it in software like Notepad or Microsoft Word, a website is a file on a server which you open/browse by using a specific software, i.e. a Web Browser. Some common examples of web browser are Mozilla Firefox, Safari, Google Chrome, Internet Explorer. You can open the website in a web browser on your computer, interact with the content on the website, and save the entire website or a part of it onto your computer. Each website may consist of multiple pages which may or may not have inter-linkages. Websites are coded in Hyper Text Markup Language (HTML).

Though it looks seamless to the user, opening a website is a very technical process in the background.

Suppose a user wants to open the website thecybercops.net. The various steps involved in opening the website are as follows:

  1. The user’s computer will connect to a DNS server to know the IP address of thecybercops.net.
  2. The DNS server will return the IP address 172.105.37.21 to the user’s computer.
  3. The user’s web browser will now connect to 172.105.37.21 and request the server for fetching the website’s main page (index.htm or index.html or index.php).
How a website works - 1
  1. The server will connect to the back end software to fetch the required page.
  2. The back end will do any processing that is needed with the any data that came along with the request and also process any cookies that came along with the request.
  3. The back end will fetch any data from a database that is needed to be displayed to the user.
  4. The back end will fetch any other files that need to be sent along with the web-page to the user’s computer.
  5. The data obtained in steps 5 to 7 is passed back to the server.
How a website works - 2
  1. The server now passes the data obtained in the previous step to the front end to render it in a proper format (i.e. Hyper Text Markup Language format).
  2. The front end code is run to generate the required formatted data.
  3. The formatted data is sent to the server.
How a website works - 3
  1. The server sends the formatted data to the user’s web browser which renders it on screen for the user to view.
How a website works - 4

For Wikipedia entry on Website, click here.

For more posts on Internet, click here.

For more posts in The Cyber Cops project, click here.

Add Comment

Leave a Reply

The Cyber Cops Logo

About “The Cyber Cops”

Please see About page for more on The Cyber Cops project.

In case you have any suggestions, please do get in touch through by emailing me at aman@thecybercops.net or amandeep.89@ips.gov.in

All content is copyright material. For using it, please contact on the email address mentioned above – the policy is quite liberal for allowing the use of content from this website. Some of the content is taken from Wikipedia. If content has been sourced from another website, it has been mentioned on the relevant page itself. This project shows its gratitude towards the Wikipedia Project.