image block
1135 Views 153 Comments
Hi, everyone! I'm very happy that you came here! I will do my best to make quality content and explain the main thing of this post! Let's do this!
I read a lot of sources related to this question, what is going on when I try to reach some page on Internet? Many of them are very useful but in each were skipped some steps or they were described not enough deep, so I will try to put all of this information on this post and show you as guide step by step.
Before the start, I want to tell that I will not describe physical specific (like how keyboard gets the signal), but will review this process from programmer side.

1. Browser actions

1.1 When you start writing the URL (Uniform Resource Locator) of the website on the address bar, your web browser is starting function of autocomplete and give you variants of sites based on your record. This base of sites has been build based on your history or general records of browser (ex., etc.)

1.2 When you press the "Enter" key, the browser gets all information from the address bar and check the record on symbols type. URL record can consist of the next characters: a-z; A-Z; 0-9; -; ..
If characters are different than the browser should run the function "Punycode" which converts these symbols to ASCII (American standard code for information interchange) format.
1.3 In next stage browser checking if this request goes on the external or internal resource. Like internal resource, it can be the local file with HTML (Hypertext Markup Language) text. If this external request, browser is moving to the next step.
1.4 Next step of the browser will be checking whether this site is using restrict connection or no.
If connnection is restricted then browser is using HSTS (HTTP Strict Transport Security) function. This function is checking the list of secure sites and if this site record is found, it's running the forced secure connection to this resource (using HTTPS, instead of HTTP protocol of connection).
This list you can find on the site of your browser : And also you can change HSTS list in settings of your browser :
Google : chrome://net-internals/#hsts
Firefox : about:preferences#advanced (certificate tab)

2. DNS lookup

DNS (Domain Name System) is decentralized naming system. This system associates various information with domain names assigned to each of the participating entities.
2.1 If this is the external request, the browser should know the address of source to which browser will make the request and first step of it will be checking the internal cache of the browser (for example on chrome it is "chrome://net-internals/#dns" link)
If there are no records regarding this domain in cache than will be running function "hostbyname" which will check the file in your machine on the availability of it. hostbyname - function which returns value with type "hostent". Here name is either a hostname, or an IPv4 address in standard dot notation (as for inet_addr(3)), or an IPv6 address in colon (and possibly dot) notation.
2.2 The first step of this function will be checking internal configuration (on OS level) on the availability of the needed address.
This file is stored on each OS and platform in different places. These are only a few of them :
  • Linux : /etc/hosts
  • Windows : %SystemRoot%\System32\drivers\etc\hosts
  • Macintosh : /etc/hosts (a symbolic link to /private/etc/hosts)
The full list you can find on Wikipedia page.
2.3 If this function can’t find this record neither on cache or “hosts” file then it makes a request to the DNS server configured in the network stack. This is typically the local router or the ISP's (Internet Service Provider) caching DNS server.
2.4 If function can't find this domain on your router and provider, then request is forwarding to "root servers".
A root name server is a name server for the root zone of the Domain Name System (DNS) of the Internet. Full list of these servers you can find by follow the link :
However "root servers" will not give you information regarding needed host. They just forward you to lower domain server. And this action will be until you get to lowest domain server and receive needed information.
Just, for example, you wanna get the address of "", the first request will be to the nearest root server (marked like ".") that you wanna get the IP address of google site, but like the response, you will get the address of ".com" DNS. The second step you will ask the same question of ".com" domain server, but answer would be the address of "" DNS. And the third step will be asking this question of "" domain server and only in this step, you will receive needed address.

You may ask, why such long path is needed? Why can't we make it easier? The main point is you will not are making requests of information regarding "" on root server or other DNSs all the time. After the first request, your provider to this domain will cache address. And for other people, the provider will give this information from the personal cache. That's why this process is faster than you think.

3. ARP process

After getting needed address, for making the route to the destination host and forming of needed packets of data, you should know the physical address of the host. On this issue will help ARP (Address Resolution Protocol).
3.1. Your host making a request to the gateway (in most cases is router or switch) on MAC address.
3.2 Your device checking their MAC address table. It has a view like :
IP address = MAC Adress
address1  = MAC1
address2 = MAC2
3.3 If there is no record regarding requested host, the device running broadcast request for all local devices in the network and on the external gateway. This request with the next format :
Sender hardware address -
Sender protocol address - 08:00:5A:21:A7:22
Target hardware address -
Target protocol address - 
3.4 When destination host receives this request, after comparison of target protocol address with the personal address it starting to make ARP response packet.
Sender hardware address -
Sender protocol address - 03:01:1A:2B:A7:21
Target hardware address -
Target protocol address - 08:00:5A:21:A7:22
3.5 You are receiving needed physical address and also route to this host.
All these steps are going via transport protocol using TCP connect.

4. Transport of data

4.1 After this is doing of the opening of the socket to destination host for the transport of data. Types of sockets and how it's working described on previous my post, so if you need have a look on it, go to the link
4.2 If destination host using only the secure connection, so one of the steps will be TLS handshake.
4.2.1 Your host sending to destination "ClientHello" message with personal version of TLS
4.2.1 The server replies with a "ServerHello" message to the client with the TLS version, selected cipher, selected compression methods and the server's public certificate signed by a CA (Certificate Authority). The certificate contains a public key that will be used by the client to encrypt the rest of the handshake until a symmetric key can be agreed upon.
4.2.3 The client verifies the server digital certificate against its list of trusted CAs. If trust can be established based on the CA, the client generates a string of pseudo-random bytes and encrypts this with the server's public key. These random bytes can be used to determine the symmetric key.
4.2.4 The server decrypts the random bytes using its private key and uses these bytes to generate its own copy of the symmetric master key.
4.2.5 The client sends a Finished message to the server, encrypting a hash of the transmission up to this point with the symmetric key.
4.2.6 The server generates its own hash and then decrypts the client-sent hash to verify that it matches. If it does, it sends its own Finished message to the client, also encrypted with the symmetric key.
4.2.7 From now on the TLS session transmits the application (HTTP) data encrypted with the agreed symmetric key.
Information regarding TSL handshake was got from post of user "Alex" on GitHub.

5. Last steps

5.1 If this simple request on the web page, source host should send HTTP response and show it on your browser. Full list of HTTP status codes you can find on Wikipedia
5.2 After receiving HTML text browser before decoding, he is trying to get all dependencies (like CSS, JS or images)
5.3 Browser parsing all receiving data and due to HTML tags, CSS styles and is building the interface which is showing for you.

And again thank you all of you! I hope I removed the dark curtain and now you have imagined how your computer is getting your favorite sites :)
So will be in touch!
- Kostia


  1. is it dangerouse to take out dated viagra <a href="">does my husband need viagra</a> using viagra twice in a day

  2. how many hours does viagra last <a href="">how much does one viagra pill cost</a> is there a generic drug for viagra

  3. does medi-cal cover viagra <a href="">is generic viagra as effective?</a> can a man get viagra without a prescription

  4. can you mix viagra and cialis <a href="">paul thorn viagra</a> black ant viagra

  5. viagra can cause serious side effects <a href="">results of viagra on women</a> street viagra

  6. how to get free viagra <a href="">viagra coupon</a> male supplement pills vs viagra

  7. viagra experiment <a href="">how to get affordable viagra</a> combining viagra and adderall

  8. viagra without a doctor prescription fast <a href="">getting a viagra prescription online</a> viagra online no prior prescription canada

  9. viagra online stores <a href="">viagra bei pflanzen</a> viagra coupon for 2017

  10. do you need a prescription for female viagra <a href="">viagra online with prescription</a> average cost viagra prescription

  11. viagra with no prescription <a href="">order viagra online without prescription</a> buy viagra without prescription

  12. how do i get viagra without seeing a doctor <a href="">viagra le parisien</a> viagra patent expiration date

  13. online viagra no prescription <a href="">do you need prescription for viagra</a> do you need a prescription for viagra

  14. viva viagra <a href="">what dosages does viagra come in</a> viagra erection duration

  15. cheap generic viagra <a href="">viagra on steroids</a> viagra maximum dose

  16. viagra similares <a href="">viagra blurred vision</a> viagra review wife

  17. how do i get viagra without a prescription <a href="">how to get viagra without prescription</a> viagra without a doctor prescription free trail

  18. cost of viagra in canada <a href="">viagra recommended dose</a> viagra tablets how many in a package

  19. generic viagra online no prescription <a href="">ordering viagra without prescription</a> is a prescription needed for viagra or cialis

  20. viagra no doctor prescription <a href="">cheapest viagra with prescription</a> cheap viagra no prescription

  21. pfizer viagra without a doctor prescription <a href="">buying viagra without a prescription</a> viagra prescription cost

  22. sildenafil citrate generic price <a href="">united states generic sildenafil</a> sildenafil teva 25mg

  23. average age of viagra users <a href="">natural works like viagra</a> zyrexin vs viagra

  24. how many 20mg sildenafil should i take for xname <a href="">sobredosis de sildenafil</a> sildenafil 20 mg for ed dosage

  25. sildenafil citrate walgreens <a href="">eroxim sildenafil</a> no prescription sildenafil 100mg

  26. lower cost of sildenafil <a href="">sildenafil dosage for pulmonary hypertension</a> cost of sildenafil atbroman

  27. buying sildenafil in canada <a href="">sildenafil citrate naturally</a> can i take sildenafil daily

  28. sildenafil zentiva 100mg <a href="">wirkungsdauer sildenafil</a> generic sildenafil 40 mg

  29. sex vitamins viagra <a href="">viagra extra dosage recommendations</a> how to reverse viagra

  30. how common is priapism with viagra <a href="">purchase viagra</a> generic viagra gives me a bad headache

  31. sildenafil tablets 50mg <a href="">wallgreens sildenafil</a> over counter sildenafil

  32. sildenafil hcl uses <a href="">where does sildenafil citrate come from</a> dapoxetine with sildenafil india

  33. viagra works after 5 hours of taking it <a href="">viagra and health benefits</a> viagra pfizer coupon

  34. how to use sildenafil 100mg <a href="">sildenafil citrate used for</a> sildenafil citrate rx

  35. viagra rash pictures <a href="">eception form for viagra</a> wellbutrin viagra

  36. bull sildenafil 150 reviews <a href="">what size pills does sildenafil come in?</a> atenolol and sildenafil

  37. can you take viagra with flomax <a href="">viagra walgreens</a> viagra in action

  38. female viagra pill prank <a href="">is female viagra different from viagra</a> does viagra work for men

  39. can you smoke weed with viagra <a href="">lady viagra prank</a> viagra ring

  40. cialis viagra levitra cheap <a href="">soft chewable cialis</a> comprar cialis online en usa

  41. how long does cialis take to start working <a href="">generic cialis from india</a> cialis 200

  42. cialis over the counter walmart <a href="">cialis dosage timing</a> where can i buy cialis in canada

  43. cialis pics <a href="">cialis cost in canada</a> standard cialis dose

  44. free trial voucher cialis <a href="">fake cialis side effects</a> viagra cialis online canada

  45. long term side effects of cialis <a href="">buy cialis by phone</a> cialis 20mg online

  46. what are the side effect of cialis <a href="">us generic cialis</a> cialis half-life

  47. cialis alternatives <a href="">free samples viagra cialis</a> cialis brand vs generic

  48. para que es cialis 5 mg <a href="">cialis for working out</a> what is the active ingredient in cialis

  49. warfarin cialis <a href="">viagra cialis levitra for sale</a> how much cialis cost in mexico

  50. order cialis online cheap <a href="">alternative for cialis</a> online consult cialis il

  51. how long does cialis 10mg last <a href="">5 mg cialis daily</a> buy generic cialis online cheap

  52. cialis results <a href="">duroval o cialis</a> viagra versus cialis versus levitra

  53. generic viagra cialis <a href="">daily cialis dose</a> cialis effectiveness

  54. cialis patient assistance program <a href="">what does cialis do for a woman</a> cialis before or after food

  55. cbd oil pros and cons <a href="">hemp oil or cbd oil for pain</a> what states is cbd oil legal 2018

  56. can u fname cbd oil <a href="">cbd oil for aggressive dogs</a> can cbd oil go bad

  57. pure kana cbd oil reviews <a href="">nano enhanced liposomal cbd oil</a> cbd oil extraction equipment video

  58. avid hemp cbd oil <a href="">legitimate cbd oil companies</a> how many mg of cbd oil for pain

  59. cbd oil capsules reviews <a href="">cbd oil sciatica</a> does cbd oil delay your period

  60. how much cbd oil for pain <a href="">biocare cbd oil</a> flying with cbd oil

  61. cbd oil for pain nc <a href="">cbd oil for pain</a> is cbd oil effective for pain

  62. make cbd oil for chronic pain <a href="">european cbd hemp oil from for pain</a> how cbd oil topical cream can help pain

  63. cbd oil and anexity <a href="">is cbd oil legal in az</a> how to infused hemp to make cbd oil

  64. cbd oil production <a href="">cbd hemp oil herbal drops safe with medications</a> green roads cbd oil reviews

  65. cbd oil dosage for cats <a href="">marys cbd oil</a> canna pet cbd oil

  66. cbd oil and gerd <a href="">where to buy cbd oil in portland</a> cbd oil manchester nh

  67. cbd oil for anxiety springfield ma <a href="">plus cbd oil balm extra strength</a> can cbd oil make you sick

  68. ataraxia cbd oil <a href="">will cbd oil help pancreatitis in dogs</a> how to make cbd oil with isolate

  69. hemp oil vs cbd oil for pain <a href="">should cbd oil be thick</a> why is cbd oil so expensive

  70. dangers of cbd oil <a href="">cbd oil reno</a> rock 'n roots cbd oil review

  71. cbd oil sciatica <a href="">hempworx cbd oil for anxiety</a> cbd oil and ocd

  72. cachet pure cbd oil <a href="">hempland usa cbd oil</a> cbd oil for paralises

  73. is cbd oil legal in ohio 2017 <a href="">cbd oil penis</a> vet cbd oil

  74. cbd pure hemp oil 600 reviews <a href="">organic hemp oil cbd</a> terpenes in cbd oil

  75. cbd oil near me for sale <a href="">how much does pure cbd oil cost</a> where to buy cbd oil in nc

  76. does drugmart sell cbd oil <a href="">cbd infused oil sisters of the valley</a> cbd oil omaha ne

  77. cbd oil in albuquerque <a href="">cbd oil baltimore</a> we the people cbd oil

  78. cbd oil constipation <a href="">cbd oil birmingham</a> cbd oil muscle spasms

  79. warfarin and cbd oil <a href="">cbd isolate vs oil</a> dosage for cbd oil drops

  80. cbd oil massage <a href="">cbd oil stands for</a> zen green cbd oil

  81. cbd oil and kidneys <a href="">cbd oil pharmacy ft wayne, in</a> difference between cbd oil and hash oil

  82. where buy cbd oil <a href="">cbd oil cloud9</a> efficacy of cbd oil

  83. high concentration cbd oil <a href="">can you use cbd oil topically</a> cbd massage oil for sale

  84. quad cities cbd oil <a href="">cbd oil for ankylosing spondylitis</a> cbd oil gel caps

  85. cbd oil consumerlab report <a href="">cbd oil for migraines and anxiety</a> cbd oil sexual benefits

  86. cbd oil dispensaries sylva nc <a href="">cbd oil drug test reddit</a> cbd oil and ssri

  87. can cbd oil help with sleep <a href="">best cbd oil on amazon</a> walgreens pharmacy cbd oil

  88. cbd oil medical uses <a href="">cbd oil fibromyalgia forum</a> cbd oil colorado

  89. too much cbd oil <a href="">cheapest cbd oil online</a> what does cbd oil look like

  90. see page <a href="">wikipedia reference</a> Check Out Your URL

  91. more helpful hints <a href="">browse around this site</a> recommended site

  92. click this link <a href="">Read More</a> Link

  93. find out here <a href="">you could try this out</a> have a peek at these guys

  94. discover more here <a href="">more info</a> take a look at the site here

  95. read the article <a href="">Learn More</a> other

  96. try this <a href="">go to this site</a> great post to read

  97. this website <a href="">company website</a> on the main page

  98. Extra resources <a href="">i loved this</a> more info here

  99. visit <a href="">hop over to this website</a> check out this site

  100. more information <a href="">get redirected here</a> check this out

  101. internet <a href="">pop over here</a> see this page

  102. our website <a href="">visit</a> go

  103. more tips here <a href="">his response</a> home

  104. address <a href="">cool training</a> their website

  105. Read Full Article <a href="">you could look here</a> websites

  106. our website <a href="">continue reading this</a> internet

  107. Web Site <a href="">see this page</a> Get the facts

  108. Check This Out <a href="">over at this website</a> click here for info

  109. click here! <a href="">like it</a> look at this website

  110. anonymous <a href="">going here</a> this page

  111. you can try here <a href="">recommended you read</a> view it

  112. Full Article <a href="">additional info</a> his explanation

  113. experienced <a href="">browse around here</a> my company

  114. this <a href="">you can try here</a> knowing it

  115. More about the author <a href="">have a peek at this website</a> go

  116. i thought about this <a href="">blog</a> killer deal

  117. Discover More <a href="">Get the facts</a> view publisher site

  118. visit these guys <a href="">visit the site</a> hop over to here

  119. learn more <a href="">this contact form</a> Learn More

  120. use this link <a href="">sell</a> try here

  121. browse around this web-site <a href="">additional hints</a> browse around these guys

  122. look at here now <a href="">published here</a> you could try this out

  123. web site <a href="">our website</a> here

  124. go to website <a href="">her response</a> check this site out

  125. blog link <a href="">check out the post right here</a> have a peek here

  126. see here now <a href="">article</a> right here

  127. Read This <a href="">more</a> my response

  128. reviews cbd oil <a href="">american science cbd oil reviews</a> cbd oil with hemp for sale

  129. best place to buy viagra <a href="">vlue viagra tablets</a> viagra effects

  130. how to make viagra at home for men <a href="">best alternative to viagra</a> zoloft and viagra

  131. cbd oil capsules reviews <a href="">cbd & thc vape oil in utah</a> does cbd oil help pain

  132. womens viagra side effects <a href="">viagra working at its best</a> how can you get viagra

  133. buy cannatonic cbd oil <a href="">beezbee cbd oil</a> how to make salve with cbd oil

  134. does viagra cause heartburn <a href="">is 100mg of viagra too much</a> can you get viagra at urgent care

  135. cbd oil for neuropathy from xname <a href="">rethink cbd oil</a> cbd oil and adderall

  136. the vitamin shoppe cbd oil <a href="">cbd oil science</a> just cbd coconut oil organic 30 ml price

  137. cheap viagra canada <a href="">female viagra 2017</a> how effective is viagra

  138. true bliss cbd oil <a href="">can you use cbd oil in a vape</a> dropship cbd oil

  139. cvs viagra over the counter <a href="">walgreens viagra price</a> how does viagra work to alleviate erectile dysfunction

  140. home make viagra for men <a href="">can you mix cialis and viagra</a> viagra pill cost

  141. md cbd oil <a href="">cbd oil concentration</a> is cbd oil bad for you

  142. viagra white pill <a href="">what does a viagra pill do</a> what does viagra do to a girl

  143. cbd oil in ventura county <a href="">auroa cbd oil</a> how to use +cbd oil to treat neuropathy

  144. can you buy viagra over the counter in canada <a href="">price for viagra at walgreens</a> viagra discounts

  145. can u buy viagra over the counter <a href="">viagra versus cialis</a> does ohio medicaid pay for viagra

  146. florida law on cbd oil <a href="">can cbd oil make you gain weight</a> target cbd oil

  147. cbd oil what is it <a href="">amazon cbd oil $6</a> cbd pure oil gold label

  148. cialis generic tadalafil for sale <a href="">what color is cialis</a> generic cialis reviews from users

  149. buy cialis without prescriptions <a href="">cialis and molly</a> cialis women

  150. cialis lilly <a href="">does lilly make cialis</a> cialis disscount

  151. copaiba oil vs cbd oil <a href="">infused edibles cbd oil</a> cbd oil portland maine

  152. coreg side effects with cialis <a href="">what happens if i take too much cialis</a> buy cialis generic

  153. cbd oil for dogs with voice box paraplegia <a href="">cbd oil and seizures</a> can you put cbd oil in a nebulizer

  154. Leave a Comment