<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[My Awesome Publication]]></title><description><![CDATA[My Awesome Publication]]></description><link>https://vedtech.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 21:06:17 GMT</lastBuildDate><atom:link href="https://vedtech.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building a Search Engine From Scratch: Introducing My Project]]></title><description><![CDATA[I've always been curious about what happens behind the scenes when we search for something online. We type a few words into a search bar, press Enter, and…]]></description><link>https://vedtech.hashnode.dev/building-a-search-engine-from-scratch-introducing-my-project</link><guid isPermaLink="true">https://vedtech.hashnode.dev/building-a-search-engine-from-scratch-introducing-my-project</guid><category><![CDATA[Search Engines]]></category><category><![CDATA[algorithms]]></category><category><![CDATA[Python]]></category><category><![CDATA[FastAPI]]></category><category><![CDATA[backend developments]]></category><dc:creator><![CDATA[Ved Patel]]></dc:creator><pubDate>Mon, 02 Nov 2026 21:06:07 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/30d739d3-8c70-4af2-ae73-01e6a2da664a.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I've always been curious about what happens behind the scenes when we search for something online.</p>
<p>We type a few words into a search bar, press Enter, and within milliseconds, we're presented with a list of results. But what actually happens between entering a query and receiving those results? How does a search engine find relevant documents? How does it decide which results should appear first?</p>
<p>I wanted to understand these processes beyond just learning the theory. So, I decided to build my own search engine from scratch.</p>
<p>This is the beginning of a series where I'll document the development of my search engine, the technologies I'm using, the challenges I encounter, and the concepts I learn along the way.</p>
<h2>What Am I Building?</h2>
<p>My goal is to develop a search engine that can process documents, organize information, and retrieve relevant results based on a user's search query.</p>
<p>Rather than relying on an existing search engine API to handle the main functionality, I want to implement the underlying search mechanisms myself.</p>
<p>Some of the major components I plan to work on include:</p>
<ul>
<li><strong>Document Processing:</strong> Preparing and processing documents so they can be searched efficiently.</li>
<li><strong>Inverted Indexing:</strong> Creating a data structure that maps terms to the documents in which they appear.</li>
<li><strong>Information Retrieval:</strong> Finding documents that match a user's search query.</li>
<li><strong>Search Ranking:</strong> Determining how relevant each document is to a query.</li>
<li><strong>Query Processing:</strong> Taking a user's input and transforming it into something the search engine can process.</li>
</ul>
<p>These components will work together to turn a basic search query into an organized list of relevant results.</p>
<h2>Technologies I'm Using</h2>
<p>I'm building this project with technologies that allow me to develop and connect the different parts of the search engine.</p>
<p>Some of the technologies currently involved include:</p>
<ul>
<li><strong>Python:</strong> The primary programming language for implementing the search engine's backend logic.</li>
<li><strong>FastAPI:</strong> A Python framework I'm using to build the backend API and handle requests.</li>
<li><strong>JavaScript:</strong> Used for frontend functionality and communication with the backend.</li>
<li><strong>HTML and CSS:</strong> Used to structure and style the user interface.</li>
<li><strong>Git and GitHub:</strong> Used for version control and documenting the project's development.</li>
</ul>
<p>I'm also keeping the project locally runnable rather than depending on a deployed application. This allows me to focus on the underlying implementation and provide instructions for others who want to run it on their own machines.</p>
<h2>How Does a Search Engine Actually Work?</h2>
<p>Before getting deeper into the implementation, it's useful to understand the general workflow I'm trying to build.</p>
<p>A simplified search engine follows a process like this:</p>
<ol>
<li><strong>Collect documents:</strong> The system obtains the information that users will eventually be able to search.</li>
<li><strong>Process documents:</strong> The content is cleaned and prepared for indexing.</li>
<li><strong>Build an index:</strong> The system organizes terms so it doesn't have to scan every document from scratch for every query.</li>
<li><strong>Process a query:</strong> A user enters a search term, which the system analyzes.</li>
<li><strong>Retrieve and rank results:</strong> The search engine finds matching documents and determines which ones are most relevant.</li>
<li><strong>Display results:</strong> The user receives an ordered list of search results.</li>
</ol>
<p>One particularly interesting part of this process is the inverted index.</p>
<p>Imagine having thousands of documents. Without an index, the search engine might need to examine every document whenever someone searches for a word. An inverted index changes this approach by storing a mapping between words and the documents containing them.</p>
<p>For example:</p>
<table>
<thead>
<tr>
<th>Word</th>
<th>Documents containing the word</th>
</tr>
</thead>
<tbody><tr>
<td>Python</td>
<td>Document 1, Document 3</td>
</tr>
<tr>
<td>Security</td>
<td>Document 2, Document 3</td>
</tr>
<tr>
<td>Programming</td>
<td>Document 1, Document 2</td>
</tr>
</tbody></table>
<p>Instead of searching through every document, the engine can use this mapping to locate potentially relevant documents much more efficiently.</p>
<p>This is one of the core concepts I want to implement and understand in this project.</p>
<h2>What Makes This Project Interesting to Me?</h2>
<p>I could have built another basic web application, but I wanted to work on something that would challenge me to understand the computer science concepts operating behind the scenes.</p>
<p>Building a search engine involves several interesting areas of computer science, including:</p>
<ul>
<li>Data structures and algorithms</li>
<li>Information retrieval</li>
<li>Text processing</li>
<li>Backend development</li>
<li>API design</li>
<li>Software testing</li>
<li>Performance optimization</li>
</ul>
<p>I'm particularly interested in understanding how different algorithms affect search quality and performance.</p>
<p>For example, I plan to explore TF-IDF and BM25, two approaches used in information retrieval to evaluate how relevant a document is to a search query.</p>
<p>I also want to understand the trade-offs involved in designing a system that can retrieve useful results without unnecessarily wasting computational resources.</p>
<h2>Where Does the Project Stand Right Now?</h2>
<p>I'm developing the project incrementally rather than trying to implement everything at once.</p>
<p>I've started by setting up the local development environment, organizing the project structure, and building the initial backend functionality.</p>
<p>At this stage, the project is still under development. The more advanced indexing, ranking, and retrieval features are part of the implementation roadmap, not features I'm claiming to have completed.</p>
<p>I'll be sharing actual code, screenshots, test results, and explanations as I implement each component.</p>
<p>You can also follow the development through my GitHub repository:</p>
<p><strong>GitHub:</strong> <a href="https://github.com/ved-p-coder/Search-Engine">https://github.com/ved-p-coder/Search-Engine</a></p>
<h2>What's Next?</h2>
<p>In the next article, I'll take a closer look at the backend architecture and how I'm using FastAPI to build the foundation of the search engine.</p>
<p>I'll explain the project structure, how the backend handles requests, and how the different components will communicate with one another.</p>
<p>This is just the beginning. I'm looking forward to documenting the process, learning more about information retrieval, and seeing how far I can take this project.</p>
<p><strong>Thanks for following along!</strong></p>
<p><em>This is the first article of my Search Engine development series. More updates coming as the project progresses.</em></p>
]]></content:encoded></item><item><title><![CDATA[The $6.3 Billion Binance Hack: How Hackers Pulled Off Crypto's Biggest Heist]]></title><description><![CDATA[The October 2026 Binance breach exposed a major weakness in cryptocurrency security. Here's how attackers reportedly got in, what happened to the stolen…]]></description><link>https://vedtech.hashnode.dev/the-6-3-billion-binance-hack-how-hackers-pulled-off-crypto-s-biggest-heist</link><guid isPermaLink="true">https://vedtech.hashnode.dev/the-6-3-billion-binance-hack-how-hackers-pulled-off-crypto-s-biggest-heist</guid><category><![CDATA[cybersecurity]]></category><category><![CDATA[Cryptocurrency]]></category><category><![CDATA[Blockchain]]></category><category><![CDATA[hacking]]></category><category><![CDATA[Bitcoin]]></category><dc:creator><![CDATA[Ved Patel]]></dc:creator><pubDate>Mon, 02 Nov 2026 01:16:57 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/ad93e37c-a252-4a12-b64b-d779c7c88cc4.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>On October 29, 2026, the cryptocurrency industry experienced one of the biggest cybersecurity incidents in its history. Binance, the world's largest cryptocurrency exchange, suffered a massive security breach that resulted in approximately <strong>$6.3 billion</strong> in stolen digital assets.</p>
<p>The incident quickly became known as the largest cryptocurrency theft on record. It also raised an uncomfortable question. If one of the world's largest crypto exchanges can suffer a breach of this scale, how secure are the platforms holding billions of dollars in customer assets?</p>
<p>What makes this incident particularly interesting is that attackers reportedly didn't need to break Bitcoin or discover a flaw in its blockchain. Instead, they targeted the systems responsible for authorizing cryptocurrency transactions.</p>
<h2>When Did the Attack Happen?</h2>
<p>The attack occurred on October 29, 2026. According to blockchain investigators, most of the stolen funds were transferred within approximately 20 minutes.</p>
<p>Initial estimates placed the losses at more than $6 billion, with blockchain analytics firms later estimating the total at around $6.3 billion.</p>
<p>The stolen assets were spread across multiple cryptocurrencies and blockchains. Bitcoin was among the affected assets, but this was not exclusively a Bitcoin theft.</p>
<p>The FBI later attributed the incident to North Korean state-sponsored hackers associated with the TraderTraitor group, also tracked under names connected to the Lazarus Group. The attribution was announced on October 31.</p>
<h2>How Did the Hack Actually Happen?</h2>
<p>To understand this incident, we first need to understand how cryptocurrency exchanges handle transactions.</p>
<p>When customers withdraw cryptocurrency from an exchange, the platform must authorize and sign transactions using systems that control access to its wallets. These systems are extremely sensitive because anyone who gains sufficient control over them may be able to move large amounts of cryptocurrency.</p>
<p>According to Binance's initial investigation, the attack may have involved a compromised laptop belonging to a DevOps engineer. The attacker allegedly used access to an internal service container to submit unauthorized withdrawal transactions.</p>
<p>However, blockchain investigators uncovered evidence suggesting the incident involved a broader compromise of Binance's transaction-signing infrastructure.</p>
<p>Here's a simplified breakdown of what reportedly happened:</p>
<ol>
<li>Initial access</li>
</ol>
<p>The attackers gained access to internal infrastructure, reportedly through a compromised employee device. This gave them a potential entry point into systems involved in transaction processing.</p>
<ol start="2">
<li>Compromising transaction authorization</li>
</ol>
<p>Rather than simply stealing a wallet's private key, investigators believe the attackers compromised systems capable of authorizing transactions. This distinction is important, even if private keys remain protected, an attacker who can abuse the systems controlling transaction approvals may still move funds.</p>
<ol start="3">
<li>Unauthorized transfers</li>
</ol>
<p>The attackers used their access to initiate transactions across multiple blockchains. On Ethereum, investigators reported the use of EIP-7702, a feature that allows externally owned accounts to temporarily delegate certain execution capabilities.</p>
<ol start="4">
<li>Moving and laundering the funds</li>
</ol>
<p>After the theft, the attackers moved assets through different wallets, decentralized exchanges, and other services to make tracking and recovery more difficult.</p>
<p>The investigation is ongoing, so the precise sequence of every action should be treated as provisional.</p>
<h2>What Happened to the Stolen Cryptocurrency?</h2>
<p>One interesting aspect of this incident is that stealing cryptocurrency doesn't necessarily mean attackers can immediately spend all of it.</p>
<p>Blockchain transactions are publicly visible, allowing investigators to follow funds as they move between addresses. Additionally, certain cryptocurrency issuers can freeze tokens held at identified addresses.</p>
<p>Following the breach, companies including Tether and Circle reportedly froze significant amounts of assets associated with the attackers. Estimates of the frozen funds varied, with reports placing the amount around $3 billion.</p>
<p>However, Bitcoin and Ether cannot simply be frozen by a central issuer in the same way as certain stablecoins. This makes recovering those assets considerably more difficult.</p>
<p>The FBI also warned that the stolen funds were being converted primarily into Ethereum and could be moved through decentralized finance platforms and instant-swap services.</p>
<h2>What Impact Will This Have on Cybersecurity?</h2>
<p>I believe this incident will have consequences beyond Binance and the cryptocurrency industry.</p>
<ol>
<li>Exchanges will need stronger internal security.</li>
</ol>
<p>For years, cryptocurrency security discussions have focused heavily on protecting private keys and auditing smart contracts. This incident highlights another major risk: the infrastructure, employee devices, and internal services that control access to those keys.</p>
<p>Organizations will likely need stronger access controls, hardware-backed authentication, isolated signing environments, and additional transaction verification.</p>
<ol start="2">
<li>Insider and supply-chain security will become more important.</li>
</ol>
<p>A compromised employee device can potentially become an entry point into an organization's most sensitive systems. Companies must treat employee endpoints, developer tools, service accounts, and internal infrastructure as part of their security perimeter.</p>
<ol start="3">
<li>Real-time blockchain monitoring will become essential.</li>
</ol>
<p>Blockchain analytics helped investigators follow the stolen assets and identify suspicious transaction patterns. Exchanges and security companies will likely invest further in automated monitoring systems that detect unusual transfers and respond before funds disappear.</p>
<ol start="4">
<li>Trust in centralized exchanges could decline.</li>
</ol>
<p>Cryptocurrency exchanges act as custodians for enormous amounts of customer money. Incidents like this may encourage users to reconsider how much cryptocurrency they leave on centralized platforms. Exchanges will face greater pressure to demonstrate that their security controls and financial reserves are reliable.</p>
<h2>The Bigger Picture</h2>
<p>The $6.3 billion Binance incident demonstrates that cryptocurrency security is about much more than protecting blockchain technology.</p>
<p>Bitcoin's underlying network was not the system breached in this incident. The attackers reportedly exploited weaknesses in the infrastructure surrounding the exchange and its transaction authorization processes.</p>
<p>That distinction is important. A decentralized blockchain can operate as designed while the centralized services built around it remain vulnerable.</p>
<p>As cryptocurrency adoption grows, exchanges will need to approach cybersecurity with the same seriousness as major financial institutions. Stronger infrastructure security, continuous monitoring, and carefully controlled transaction authorization will be essential.</p>
<p>The biggest lesson is simple. You don't always have to break the technology itself to compromise the money it protects. Sometimes, you just need to compromise the systems controlling it.</p>
<p>Further Reading</p>
<p>Reuters: <a href="https://www.reuters.com/legal/transactional/tether-circle-freeze-238-billion-after-binance-reports-security-incident-2026-10-29/">Binance's response to the $6.3 billion heist</a></p>
<p>The Block: <a href="https://www.theblock.co/news/business/2026-10-30-binance-hack-largest-crypto-hack-north-korea-432225">Inside the largest crypto hack on record</a></p>
<p>CoinDesk: <a href="https://www.coindesk.com/business/2026/10/29/potential-multi-billion-binance-hack-hitting-crypto-markets">Binance loses over $6 billion</a></p>
<p>BleepingComputer: <a href="https://www.bleepingcomputer.com/news/security/fbi-links-63-billion-binance-crypto-heist-to-north-korean-hackers/">FBI links the hack to North Korea</a></p>
]]></content:encoded></item><item><title><![CDATA[AI Found a Decades Old PHP Vulnerability. Is This the Future of Cybersecurity?
]]></title><description><![CDATA[PHP2Shell shows how artificial intelligence is changing vulnerability research and why defenders must prepare for a world where discovering and exploiting…]]></description><link>https://vedtech.hashnode.dev/ai-found-a-decades-old-php-vulnerability-is-this-the-future-of-cybersecurity</link><guid isPermaLink="true">https://vedtech.hashnode.dev/ai-found-a-decades-old-php-vulnerability-is-this-the-future-of-cybersecurity</guid><category><![CDATA[PHP]]></category><category><![CDATA[vulnerability]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[Ved Patel]]></dc:creator><pubDate>Sun, 25 Oct 2026 18:22:44 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/7cb8c863-3767-476d-83f3-2812a8b8c6e3.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In October 2026, two critical vulnerabilities in PHP made headlines across the cybersecurity community. Known collectively as <strong>PHP2Shell</strong>, CVE-2026-109618 and CVE-2026-109619 could allow unauthenticated attackers to execute code remotely on vulnerable servers. Both received a CVSS v4.0 severity score of 9.2. <a href="https://www.wiz.io/blog/php2shell-php-rce">Wiz Research</a> published its findings on October 21.</p>
<p>But the most interesting part of this story isn't just the vulnerabilities themselves. <strong>AI played a major role in helping researchers uncover and investigate flaws that had remained hidden for years.</strong></p>
<p>This raises an important question: Are we entering an era where AI can discover security weaknesses faster than humans can?</p>
<h2>How Did AI Help Find PHP2Shell?</h2>
<p>PHP powers a huge portion of the web, including platforms such as WordPress, Drupal, and Joomla. Because PHP is mature and widely used, its underlying code has been examined by developers and security researchers for years.</p>
<p>Yet, extensive human review doesn't guarantee that every vulnerability will be found.</p>
<p>According to Wiz Research, the PHP2Shell investigation involved AI-assisted research tools, including models from OpenAI and Google, alongside the team's own expertise and tooling. OpenAI also reported that Calif identified a critical flaw using GPT-5.6 Sol, while Wiz independently discovered and reported both vulnerabilities.</p>
<p>The breakthrough wasn't simply asking an AI to scan code and point out a mistake. The challenge involved complex memory-safety problems, situations where PHP's handling of errors and internal memory state could leave invalid data behind.</p>
<p>Researchers used AI to help analyze code, investigate unusual behavior, develop exploit techniques, and work through repeated testing and debugging. These flaws required connecting multiple low-level behaviors into a chain that could produce a serious security impact.</p>
<p>In other words, AI helped make a difficult research process more practical. Human researchers still played an essential role in understanding the system, validating results, coordinating disclosure, and ensuring the problems were fixed.</p>
<h2>Why Does This Discovery Matter?</h2>
<p>The vulnerabilities affected PHP itself, rather than one particular website or content management system. That distinction matters, changing application code alone would not necessarily protect a server running a vulnerable PHP version.</p>
<p>The flaws could expose sensitive process memory or enable remote code execution, potentially giving attackers access to a compromised server and the information it handles.</p>
<p>More importantly, the discovery illustrates a shift in cybersecurity: <strong>AI can help turn obscure, difficult-to-exploit bugs into practical security findings.</strong></p>
<p>If AI lowers the time and expertise needed to investigate complex code, vulnerabilities that once seemed too difficult to exploit may become realistic targets. The same capability can help defenders discover and fix those flaws before attackers take advantage of them.</p>
<h2>The AI-Assisted Vulnerability Discovery Loop</h2>
<p>A simplified version of the process looks like this:</p>
<ol>
<li>Analyze: Examine source code and identify suspicious patterns.</li>
<li>Test: Generate edge cases and investigate unexpected behavior.</li>
<li>Trace: Follow crashes and errors to potential root causes.</li>
<li>Validate: Confirm whether a genuine vulnerability exists.</li>
<li>Fix: Work with maintainers to patch the issue and verify the solution.</li>
</ol>
<p>AI can accelerate several of these stages, but it doesn't automatically make every result correct. Researchers must distinguish real vulnerabilities from false positives and test whether proposed fixes actually work.</p>
<h2>What Does This Mean for the Future of Cybersecurity?</h2>
<p>I see three major implications.</p>
<ol>
<li>Attackers may become more capable. AI could help malicious actors analyze unfamiliar code, adapt techniques, and automate parts of their work. That doesn't mean every attacker will suddenly become an expert, but the barrier to certain tasks may fall.</li>
<li>Defensive security could become more proactive. Organizations may increasingly use AI-assisted code review, automated testing, and vulnerability research to find weaknesses before software reaches production.</li>
<li>Human expertise will evolve. Security professionals will need to understand systems, evaluate AI-generated findings, prioritize risk, and make sound decisions under pressure. Knowing how to use AI responsibly may become as important as knowing how to use traditional security tools.</li>
</ol>
<h2>The Bottom Line</h2>
<p>PHP2Shell is a warning and an opportunity. AI can help uncover vulnerabilities that have survived years of scrutiny, but the same capabilities could also accelerate attacks.</p>
<p>The future of cybersecurity won't be determined by AI alone. It will depend on how quickly developers patch flaws, organizations improve their defenses, and security professionals learn to work effectively with these tools.</p>
<p>The real advantage won't belong to whoever uses AI first. It will belong to whoever can use it responsibly, verify its findings, and act before the other side does.</p>
<h3>Further Reading</h3>
<p>Wiz Research: <a href="https://www.wiz.io/blog/php2shell-php-rce">PHP2Shell technical analysis</a></p>
<p>OpenAI: <a href="https://openai.com/index/coordinated-disclosure-of-critical-vulnerabilities/">Coordinated disclosure of critical vulnerabilities</a></p>
<p>Elastic Security Labs: <a href="https://www.elastic.co/security-labs/threat-command/php2shell-php-rce-detection">PHP2Shell detection coverage</a></p>
<p><a href="https://www.php.net/">PHP official website and security updates</a></p>
]]></content:encoded></item><item><title><![CDATA[What Actually Happens When You Type a URL Into Your Browser?]]></title><description><![CDATA[Learn what happens when you type a URL into your browser, from DNS resolution and TCP connections to TLS security, HTTP requests, and page rendering.]]></description><link>https://vedtech.hashnode.dev/what-actually-happens-when-you-type-a-url-into-your-browser</link><guid isPermaLink="true">https://vedtech.hashnode.dev/what-actually-happens-when-you-type-a-url-into-your-browser</guid><category><![CDATA[webdev]]></category><category><![CDATA[Beginner Developers]]></category><category><![CDATA[networking]]></category><dc:creator><![CDATA[Ved Patel]]></dc:creator><pubDate>Sat, 24 Oct 2026 02:36:26 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/469cc73d-5adf-4379-83f0-ba3bbbb72b0f.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1><strong>Introduction</strong></h1>
<p>You type <a href="https://example.com">https://example.com</a> into your browser, press Enter, and a website appears a moment later. It feels almost instant, but several systems work together behind the scenes to make that happen.</p>
<p>Your browser needs to locate the server hosting the website, establish a connection, securely exchange information when using HTTPS, and request the resources needed to display the page.</p>
<p>Understanding this process helps explain fundamental concepts in software engineering, networking, and cybersecurity.</p>
<p>Let's follow a request from your browser to a web server and back.</p>
<h3><strong>1. Understanding the big picture</strong></h3>
<img src="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/09c5d6a8-0f1d-419f-984c-1eb24c22c8a9.png" alt="" style="display:block;margin:0 auto" />

<p>When you visit a website, the process generally involves these stages:</p>
<ol>
<li>DNS resolution: Find the IP address associated with the domain name.</li>
<li>Connection establishment: Set up the necessary network connection.</li>
<li>TLS handshake: Establish a secure connection when using HTTPS.</li>
<li>HTTP request: Ask the server for a resource, such as a webpage.</li>
<li>Server response: Receive a response containing content or an error.</li>
<li>Rendering: The browser processes the returned resources and displays the page.</li>
</ol>
<p>These steps are a simplified model. Some can be skipped, reused, or combined when information is cached or an existing connection is available.</p>
<h3><strong>2. DNS: Finding the server</strong></h3>
<p>Computers communicate across networks using IP addresses. However, remembering numerical addresses for every website would be inconvenient. That's why we use domain names such as example.com.</p>
<p>The Domain Name System (DNS) translates domain names into records that help a client locate the appropriate server.</p>
<p>Your device may first check its DNS cache. If it doesn't have a usable answer, it sends a query to a DNS resolver, often provided by your internet service provider or a public DNS service.</p>
<p>The resolver can consult other DNS servers, including authoritative name servers, to obtain the relevant record. It then returns the answer to your device.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/cc2212fd-1666-4eb1-bce0-3e0adc649bf1.png" alt="" style="display:block;margin:0 auto" />

<p>For example, suppose DNS returns the IPv4 address <code>93.184.216.34</code>. Your browser can use that address to connect to the destination server.</p>
<p>The example address is illustrative. The actual address depends on the domain and its DNS configuration.</p>
<p><strong>Why it matters</strong>: DNS makes the web easier to navigate, but it also creates security considerations. Incorrect DNS responses can direct users toward unintended destinations, which is one reason DNS security and certificate validation matter.</p>
<h3><strong>3. TCP: Establishing a connection</strong></h3>
<p>Once the browser has an IP address, it needs a way to communicate with the server.</p>
<p>For a typical HTTPS connection using HTTP/1.1 or HTTP/2 over TCP, the browser establishes a TCP connection before beginning the TLS handshake.</p>
<p>TCP, or Transmission Control Protocol, provides an ordered, reliable stream of data. It handles retransmission when data is lost and ensures bytes are delivered in order.</p>
<p>The connection begins with a three-way handshake.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/44e0504a-19f2-40f6-9a0e-869b61ccbb85.png" alt="" style="display:block;margin:0 auto" />

<p>The three messages are:</p>
<ul>
<li><strong>SYN</strong>: The client asks to establish a connection.</li>
<li><strong>SYN-ACK</strong>: The server acknowledges the request and responds.</li>
<li><strong>ACK</strong>: The client acknowledges the server's response.</li>
</ul>
<p>The connection is now established.</p>
<p>TCP commonly uses port 443 for HTTPS and port 80 for HTTP. These are conventional ports, not guarantees about which port every server uses.</p>
<p>One important detail: not every modern website uses TCP. HTTP/3 uses QUIC, which runs over UDP and incorporates transport security setup differently. This is why the exact sequence depends on the protocol being used.</p>
<h3><strong>4. TLS: Securing the connection</strong></h3>
<p>If you're visiting an HTTPS website, your browser also needs to establish secure communication with the server.</p>
<p>HTTPS uses HTTP over a connection secured by TLS (Transport Layer Security). TLS helps protect data from being read or modified in transit and helps authenticate the server.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/78c15ad7-2a60-4b32-b326-ed8867b375ca.png" alt="" style="display:block;margin:0 auto" />

<p>During a simplified TLS handshake, the browser and server negotiate security parameters, establish shared cryptographic keys, and authenticate the server using its certificate.</p>
<p>The browser checks whether the certificate is valid for the requested hostname and whether it chains to a trusted certificate authority, along with other applicable checks.</p>
<p>After the handshake, application data can be transmitted through the protected connection.</p>
<p>This matters when you're entering passwords, sending payment information, or accessing private accounts. Without appropriate transport security, information could be exposed or altered by an attacker positioned to intercept network traffic.</p>
<p>However, HTTPS doesn't automatically mean a website is trustworthy. A malicious website can also obtain a valid TLS certificate.</p>
<h3><strong>5. HTTP: Requesting the webpage</strong></h3>
<p>Now the browser can send an HTTP request to the server.</p>
<p>For example, a simplified request might look like this:</p>
<p>GET / HTTP/1.1</p>
<p>Host: <a href="http://example.com">example.com</a></p>
<p>Accept: text/html</p>
<p>The GET method asks the server to retrieve a resource. The "/" path refers to the root path of the website, and the headers provide additional information about the request.</p>
<p>The server receives the request and determines how to handle it. Depending on the application, it might retrieve a static file, execute application code, query a database, or communicate with another service.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6adc0ea1992ed339b634116d/e585c91b-c703-4e64-a95c-7c9ca4da9a61.png" alt="" style="display:block;margin:0 auto" />

<p>The server then sends an HTTP response containing a status code, headers, and potentially a response body.</p>
<p>For example:</p>
<ul>
<li>200 OK means the request succeeded.</li>
<li>301 Moved Permanently indicates a permanent redirect.</li>
<li>404 Not Found means the requested resource wasn't found.</li>
<li>500 Internal Server Error indicates a server-side failure.</li>
</ul>
<p>These codes help the browser and developers understand what happened. An error response can still contain a useful response body explaining the problem.</p>
<h3><strong>6. Rendering: Turning data into a webpage</strong></h3>
<p>Receiving the initial HTML document doesn't necessarily mean the browser has finished loading the website.</p>
<p>The browser parses HTML to construct the Document Object Model (DOM). It processes CSS to determine how elements should appear and executes JavaScript when required.</p>
<p>As it discovers referenced resources, the browser may request additional files, including stylesheets, scripts, images, and fonts. Those requests may reuse existing connections or establish new ones.</p>
<p>The browser combines the relevant information to render the page on your screen. JavaScript can also modify the page after the initial rendering.</p>
<p>This is why a website can display some content before everything has finished loading.</p>
<h3><strong>Conclusion</strong></h3>
<p>Typing a URL into your browser triggers a chain of operations involving DNS, network connections, TLS, HTTP, and browser rendering.</p>
<p>Each component solves a different problem: DNS locates the destination, transport protocols move data, TLS protects communication, HTTP defines requests and responses, and the browser turns returned resources into an interactive webpage.</p>
<p>Understanding this process gives you a useful foundation for debugging web applications, investigating network problems, and learning about web security.</p>
<p>The next time a webpage loads almost instantly, remember that multiple protocols and systems are working together behind the scenes.</p>
]]></content:encoded></item></channel></rss>