<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hetvi Patoliya on Medium]]></title>
        <description><![CDATA[Stories by Hetvi Patoliya on Medium]]></description>
        <link>https://medium.com/@hetvi.patoliya?source=rss-0ab09a51454f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sCusutb3xAYYw4C3</url>
            <title>Stories by Hetvi Patoliya on Medium</title>
            <link>https://medium.com/@hetvi.patoliya?source=rss-0ab09a51454f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:21:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hetvi.patoliya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What I Didn’t Know About NGINX Until Production Taught Me]]></title>
            <link>https://medium.com/reversebits/what-i-didnt-know-about-nginx-until-production-taught-me-883a2e702df0?source=rss-0ab09a51454f------2</link>
            <guid isPermaLink="false">https://medium.com/p/883a2e702df0</guid>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[production-ready]]></category>
            <dc:creator><![CDATA[Hetvi Patoliya]]></dc:creator>
            <pubDate>Fri, 01 May 2026 07:41:22 GMT</pubDate>
            <atom:updated>2026-05-01T07:41:22.839Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5-DVWCBwC52xq63HK6tPw.png" /></figure><p>Most backend systems aren’t architected. They’re just deployed. And that gap is exactly where things break.</p><p>An unprotected endpoint getting hammered. A certificate expiring across six services. A slow upload tying up every worker. None of these are code problems. They’re infrastructure problems, solved before your app sees a single request.</p><p>Rate limiting is free. TLS offloading cuts compute. A proxy layer kills bad traffic at the edge.</p><p>That layer is NGINX. Not a web server. The thing between the internet and everything you care about: encryption, routing, malicious traffic, rate limits.</p><p>This is how you use it.</p><h3>01. Reverse Proxy</h3><p>Your application servers should never be exposed to the internet. NGINX sits in front, takes every request, and forwards it to the right backend.</p><p>Think of it as a front desk: clients never walk into the back office. They talk to reception, reception handles it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qkqn-FNZFZsYv1ia59H8Jg.png" /></figure><p>This gives you backend isolation, centralized logic (headers, compression, CORS, logging), and request buffering. That last one matters more than people think.</p><blockquote><em>Without NGINX, a user on a slow connection uploading a 10MB file holds your app worker hostage for the entire upload. NGINX buffers it, then delivers a clean completed request to your backend.</em></blockquote><pre>location / {<br>    proxy_pass            http://backend_cluster;<br>    proxy_set_header      Host              $host;<br>    proxy_set_header      X-Real-IP         $remote_addr;<br>    proxy_set_header      X-Forwarded-For   $proxy_add_x_forwarded_for;<br>    proxy_read_timeout    60s;<br>    proxy_connect_timeout 5s;<br>}</pre><p>The headers preserve the real client IP so your backend logs are actually useful. The timeouts prevent one flaky backend from cascading into a full outage.</p><h3>02. TLS Termination</h3><p>TLS is CPU-intensive. Having every backend service handle HTTPS independently wastes compute and turns certificate rotation into a multi-service operation. Which saves the compute cost.</p><p>Terminate at NGINX instead. Decrypt once at the edge, forward plain HTTP internally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyJkyfTSRCfZHTd7FtlOQA.png" /></figure><pre>Client (HTTPS)<br>      ↓<br>   NGINX  ← decrypts here<br>      ↓<br>Backend (plain HTTP)</pre><pre>listen 443 ssl http2;<br>ssl_certificate           /etc/nginx/ssl/fullchain.pem;<br>ssl_certificate_key       /etc/nginx/ssl/privkey.pem;<br>ssl_protocols             TLSv1.2 TLSv1.3;<br>ssl_prefer_server_ciphers on;<br>add_header Strict-Transport-Security &quot;max-age=31536000&quot; always;</pre><p>Bonus: enable HTTP/2 here and every client gets multiplexing even if your backends don’t support it. One certificate renewal, one NGINX reload. Done.</p><h3>03. Load Balancing</h3><p>One backend isn’t enough for real traffic. NGINX distributes across multiple nodes pick your algorithm based on what your API actually does.</p><p><strong>Round Robin: </strong>Equal distribution. Fine for fast, uniform requests.</p><p><strong>Least Connections: </strong>Routes to the least-busy server. Better for APIs with variable response times.</p><p><strong>IP Hash: </strong>Same IP always hits the same server. Use when you need session stickiness.</p><pre>upstream backend_cluster {<br>    least_conn;<br>    server 10.0.1.10:8000;<br>    server 10.0.1.11:8000;<br>}</pre><pre>location / {<br>    proxy_pass <a href="http://backend_cluster;/">http://backend_cluster;</a><br>}</pre><blockquote><em>For WebSockets and long-running streaming requests, </em><em>least_conn dramatically outperforms round-robin. Round-robin doesn&#39;t know which servers are already busy holding open connections.</em></blockquote><h3>04. Security Hardening</h3><p>Your application should not be your first security boundary. NGINX filters and sanitizes before traffic ever reaches your code.</p><p>Start with response headers. These lines close entire vulnerability classes:</p><p>Header What it prevents X-Frame-Options: DENY Clickjacking X-Content-Type-Options: nosniff MIME sniffing X-XSS-Protection: 1; mode=block Reflected XSS Referrer-Policy: no-referrer Data leakage</p><pre># Hide what you&#39;re running<br>server_tokens off;</pre><pre># Block unexpected HTTP methods<br>if ($request_method !~ ^(GET|POST|PUT|DELETE|PATCH|OPTIONS)$) {<br>    return 405;<br>}</pre><pre># Reject payload abuse<br>client_max_body_size 10M;</pre><p>server_tokens off is a small change that stops NGINX from broadcasting its version number in every response header. Attackers use that to look up version-specific CVEs.</p><h3>05. Rate Limiting</h3><p>Bots don’t stop. Rate limiting is what keeps a scraper or brute-force attack from becoming a scaling incident.</p><pre># Define a zone — tracks request rate per IP, 10MB shared memory<br>limit_req_zone $binary_remote_addr zone=api_limit:10m rate=5r/s;</pre><pre># Apply it<br>location /api/ {<br>    limit_req zone=api_limit burst=10 nodelay;<br>    proxy_pass <a href="http://backend_cluster;/">http://backend_cluster;</a><br>}</pre><p><strong>rate=5r/s</strong> :5 requests per second per IP <strong>burst=10: </strong>allows short traffic spikes, so legitimate users stay unaffected <strong>no delay: </strong>requests beyond burst are rejected immediately, not queued</p><p>Always rate-limit these endpoints like :/login, /otp, /password-reset, /register, /ai/inference</p><h3>The Production Request Lifecycle</h3><p>Every request through a properly configured NGINX layer goes through this before your app sees it:</p><pre>Internet request arrives<br>        ↓<br>TLS decrypted at NGINX edge<br>        ↓<br>Rate limit checked — excessive traffic blocked<br>        ↓<br>Security headers attached to response<br>        ↓<br>Load balanced across healthy backend nodes<br>        ↓<br>Application code finally runs</pre><h3>The Real Lesson</h3><p>Most production outages aren’t caused by bad code.</p><p>They’re caused by an unprotected login endpoint getting hammered. A certificate that expired across six services at once. A slow client upload that tied up every available worker.</p><p>None of that requires a code fix. It requires a properly configured proxy layer.</p><p>NGINX doesn’t make your application faster. It makes your application <em>irrelevant</em> to the chaos happening in front of it.</p><p>That’s the point.</p><p><em>Everything in this publication is made with care by a tight-knit team of engineers, dreamers, and problem-solvers at reverseBits. Peek into our world at</em></p><p><a href="https://www.reversebits.tech/">Home - reverseBits</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=883a2e702df0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reversebits/what-i-didnt-know-about-nginx-until-production-taught-me-883a2e702df0">What I Didn’t Know About NGINX Until Production Taught Me</a> was originally published in <a href="https://medium.com/reversebits">reverseBits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Essential Frontend Configuration Checklist Before Launch]]></title>
            <link>https://medium.com/reversebits/the-essential-frontend-configuration-checklist-before-launch-1e3469b0ec4b?source=rss-0ab09a51454f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e3469b0ec4b</guid>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[sitemap]]></category>
            <category><![CDATA[meta-tags]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Hetvi Patoliya]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 13:07:27 GMT</pubDate>
            <atom:updated>2026-01-01T13:07:27.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-7BeVmRm-aj_N4nxYF76w.png" /></figure><p>Something worth remembering: the real difference between a <em>good</em> website and a <em>great</em> one often comes down to the small configuration details set before launch. These aren’t the flashy features that wow stakeholders during demos — they’re the quiet, behind-the-scenes elements that form the foundation of professional web development.</p><p>This guide walks through a few essential frontend configurations you need. Whether you’re a junior developer shipping your first project or a senior engineer reviewing your checklist, this covers the nitty-gritty details that make websites discoverable, credible, accessible, and professional.</p><h3>Why These Configurations Matter</h3><p>Before diving in, let’s be clear: skipping these isn’t catastrophic. Your app will function. But you’ll miss out on:</p><ul><li><strong>Search engine visibility</strong> — Google won’t properly index your pages</li><li><strong>Social media previews</strong> — Shared links will look broken or unprofessional</li><li><strong>Mobile user experience</strong> — Content will be tiny and hard to interact with</li><li><strong>Professional credibility</strong> — Missing favicons and broken 404 pages signal neglect</li></ul><p>Think of these configurations as the foundation of a house. You can build without them, but you’ll have problems later.</p><h3>1. Essential HTML Meta Tags:</h3><p>Here’s a minimal example head for your HTML page, check out the Brekdown &amp; Best-practices below:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br><br> &lt;! - 1. Character encoding --&gt;<br> &lt;meta charset=&quot;UTF-8&quot;&gt;<br><br>&lt;! - 2. Viewport Meta Tag: Responsive viewport so mobile users get a good experience --&gt;<br> &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br><br>&lt;! - 3. Page Title: Title of the page, shown in browser tab and SERPs --&gt;<br> &lt;title&gt;My Awesome Page - CompanyName&lt;/title&gt;<br><br>&lt;! - 4. Meta Description: Description used by search engines &amp; displayed in SERPs --&gt;<br> &lt;meta name=&quot;description&quot; content=&quot;A concise description of this page&#39;s content.&quot;&gt;<br><br>&lt;! - 5.Open Graph and Social Media Tags --&gt;<br>&lt;! - 5.1 Open Graph Tags: Open Graph tags for social sharing (Facebook, LinkedIn etc..) --&gt;<br> &lt;meta property=&quot;og:title&quot; content=&quot;My Awesome Page - CompanyName&quot;&gt;<br> &lt;meta property=&quot;og:description&quot; content=&quot;A concise description of this page&#39;s content.&quot;&gt;<br> &lt;meta property=&quot;og:image&quot; content=&quot;https://www.example.com/assets/og-image.png&quot;&gt;<br> &lt;meta property=&quot;og:url&quot; content=&quot;https://www.example.com/my-awesome-page&quot;&gt;<br>&lt;! - 5.2 Twitter Card tags --&gt;<br> &lt;meta name=&quot;twitter:card&quot; content=&quot;summary_large_image&quot;&gt;<br> &lt;meta name=&quot;twitter:title&quot; content=&quot;My Awesome Page - CompanyName&quot;&gt;<br> &lt;meta name=&quot;twitter:description&quot; content=&quot;A concise description of this page&#39;s content.&quot;&gt;<br> &lt;meta name=&quot;twitter:image&quot; content=&quot;https://www.example.com/assets/twitter-image.png&quot;&gt;<br><br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;! - your content… --&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>1.1 Character Encoding</h3><p>Always declare your character encoding first: &lt;head&gt;&lt;meta charset=”UTF-8&quot;&gt;— before any other content in your &lt;head&gt;.</p><p><strong>Why it matters:</strong> Without this, browsers might misinterpret special characters, leading to those infamous � symbols or garbled text. UTF-8 supports virtually every language and emoji, making it the universal standard.</p><h3>1.2. Viewport Meta Tag</h3><p>&lt;meta name=”viewport” …&gt; This single line makes your website mobile-friendly. This makes the page width match the device’s screen width and sets the initial zoom level to 100%</p><p>Without this tag, mobile browsers render your page at desktop width (typically 980px) and shrink it down, making everything tiny and unreadable. This tag has been essential since responsive design became standard around 2012.</p><h3>1.3. Page Title</h3><p>Every page needs a unique, descriptive title: &lt;title&gt; Page title | YourSite ... &lt;/title&gt;.Describe the content clearly, and ideally start with your main keyword or topic. For the secondary phrase, you can add a pipe or a dash.</p><h3>1.4. Meta Description</h3><p>This doesn’t affect SEO rankings directly, but it’s crucial for click-through rates. It affects click-through rate (CTR) from search results. Keep under ~150–160 characters. Accurately summarize the page content. Don’t stuff keywords — write for humans.</p><h3>1.5. Open Graph and Social Media Tags</h3><p>When someone shares your link on Facebook, LinkedIn, or Slack, these tags decide how the preview looks. Without them, the shared link may show random text, broken images, or sometimes nothing at all.</p><p>You need to include Open Graph tags for platforms like Facebook and LinkedIn, and Twitter Card tags for X/Twitter, as it uses its own meta format.</p><p>To test your tags, simply search for “open graph checker” — you’ll find enough websites/tools where you can paste your website URL and see how the preview appears.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*aEIErcEF1WhhhKErqALamg.png" /></figure><h3>2. Favicons and Icons: The Complete Set</h3><p>Favicons and icons may seem like small details, but they contribute to brand recognition, PWA support, and mobile/web device compatibility. What you should include</p><h4>2.1. favicon.ico</h4><p>Place this in your root directory (/favicon.ico) — most browsers will look for it by default.</p><h4>2.2 Modern PNG Favicons</h4><p>PNG favicons with multiple sizes (16×16, 32×32), and larger sizes for high-DPI devices (192×192, 512×512).</p><pre>&lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;16x16&quot; href=&quot;/favicons/favicon-16x16.png&quot;&gt;<br>&lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;32x32&quot; href=&quot;/favicons/favicon-32x32.png&quot;&gt;<br>&lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;192x192&quot; href=&quot;/favicons/android-chrome-192x192.png&quot;&gt;<br>&lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; sizes=&quot;512x512&quot; href=&quot;/favicons/android-chrome-512x512.png&quot;&gt;</pre><h4>2.3. Apple Touch Icon</h4><p>iOS devices use a special format. This is what appears when users save your site to their iOS home screen. Don’t add corner rounding — iOS does that automatically. Just provide a square 180x180 PNG with your logo or icon.</p><pre>&lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;180x180&quot; href=&quot;/favicons/apple-touch-icon.png&quot;&gt;</pre><h4>Practical Favicon Generation</h4><p>Rather than manually creating all these sizes, use a tool:</p><ol><li><a href="https://realfavicongenerator.net/"><strong>RealFaviconGenerator</strong></a> — Upload one high-res image, get all sizes plus HTML code</li><li><a href="https://favicon.io/"><strong>Favicon.io</strong></a> — Simple generator with preview</li></ol><h4>Testing your icons</h4><p><a href="https://ismywebsiteready.com/tools/favicon-touch-icon-checker">Here</a> is where you can preview and test your icons. You can also find many other online tools/websites that let you check how your icons preview</p><h3>3. Essential Files</h3><h4>3.1. manifest.json(for PWA)</h4><p>Defines how your web app should behave when installed on a device; includes icons, start-url, and display mode</p><pre>&lt;link rel=&quot;manifest&quot; href=&quot;/manifest.json&quot;&gt;<br>{<br>  &quot;name&quot;: &quot;Your Site Name&quot;,<br>  &quot;short_name&quot;: &quot;YourSite&quot;,<br>  &quot;description&quot;: &quot;A complete guide to frontend configuration&quot;,<br>  &quot;start_url&quot;: &quot;/&quot;,<br>  &quot;display&quot;: &quot;standalone&quot;,<br>  &quot;background_color&quot;: &quot;#ffffff&quot;,<br>  &quot;theme_color&quot;: &quot;#4285f4&quot;,<br>  &quot;orientation&quot;: &quot;portrait-primary&quot;,<br>  &quot;icons&quot;: [<br>    {<br>      &quot;src&quot;: &quot;/favicons/android-chrome-192x192.png&quot;,<br>      &quot;sizes&quot;: &quot;192x192&quot;,<br>      &quot;type&quot;: &quot;image/png&quot;,<br>      &quot;purpose&quot;: &quot;any maskable&quot;<br>    },<br>    {<br>      &quot;src&quot;: &quot;/favicons/android-chrome-512x512.png&quot;,<br>      &quot;sizes&quot;: &quot;512x512&quot;,<br>      &quot;type&quot;: &quot;image/png&quot;,<br>      &quot;purpose&quot;: &quot;any maskable&quot;<br>    }<br>  ]<br>}<br></pre><h4>3.2. robots.txt</h4><p>This file lives in your root directory( /robots.txt)and tells search engines which pages to crawl. Below you’ll find the example file.</p><pre># /robots.txt<br><br># Allow all bots to crawl everything<br>User-agent: *<br>Allow: /<br><br># Prevent indexing of admin areas<br>Disallow: /admin/<br>Disallow: /private/<br><br># Prevent indexing of duplicate content<br>Disallow: /*?*sort=<br>Disallow: /*?*filter=<br><br># Point to your sitemap<br>Sitemap: https://yoursite.com/sitemap.xmltx</pre><h4>3.3 Block everything (staging sites):</h4><p>This is very important because staging or development sites should not be indexed by search engines or allowed to be crawled.</p><pre>User-agent: *<br>Disallow: /</pre><h4>Block specific bots:</h4><pre>User-agent: GPTBot<br>Disallow: /<br><br>User-agent: CCBot<br>Disallow: /</pre><h4>3.4 sitemap.xml</h4><p>A sitemap lists all your pages for search engines. Which helps search engines discover all your important URLs</p><p>Most frameworks have plugins to generate the sitemap. Once site map is accessible to your website <a href="https://www.example.com/">https://www.example.com/</a>sitemap.xml, Submit your sitemap in Google Search Console and Bing Webmaster Tools for indexing.</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://yoursite.com/&lt;/loc&gt;<br>    &lt;lastmod&gt;2025-11-09&lt;/lastmod&gt;<br>    &lt;changefreq&gt;weekly&lt;/changefreq&gt;<br>    &lt;priority&gt;1.0&lt;/priority&gt;<br>  &lt;/url&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://yoursite.com/blog/frontend-configuration&lt;/loc&gt;<br>    &lt;lastmod&gt;2025-11-09&lt;/lastmod&gt;<br>    &lt;changefreq&gt;monthly&lt;/changefreq&gt;<br>    &lt;priority&gt;0.8&lt;/priority&gt;<br>  &lt;/url&gt;<br>  &lt;url&gt;<br>    &lt;loc&gt;https://yoursite.com/about&lt;/loc&gt;<br>    &lt;lastmod&gt;2024-10-15&lt;/lastmod&gt;<br>    &lt;changefreq&gt;yearly&lt;/changefreq&gt;<br>    &lt;priority&gt;0.5&lt;/priority&gt;<br>  &lt;/url&gt;<br>&lt;/urlset&gt;</pre><p>Field explanations:</p><ul><li><strong>loc</strong> — The page URL (required)</li><li><strong>lastmod</strong> — Last modification date (optional but recommended)</li><li><strong>changefreq</strong> — How often the page changes (hint for crawlers)</li><li><strong>priority</strong> — Page importance relative to other pages (0.0 to 1.0)</li></ul><p><strong>For large sites (1000+ pages):</strong></p><p>Use a sitemap index file. Below is an example file:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;sitemapindex xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&gt;<br>  &lt;sitemap&gt;<br>    &lt;loc&gt;https://yoursite.com/sitemap-posts.xml&lt;/loc&gt;<br>    &lt;lastmod&gt;2024-11-09&lt;/lastmod&gt;<br>  &lt;/sitemap&gt;<br>  &lt;sitemap&gt;<br>    &lt;loc&gt;https://yoursite.com/sitemap-pages.xml&lt;/loc&gt;<br>    &lt;lastmod&gt;2024-11-09&lt;/lastmod&gt;<br>  &lt;/sitemap&gt;<br>&lt;/sitemapindex&gt;</pre><h3>4. Verification Checklist</h3><p>Before launching, verify each item:</p><p><strong>HTML Meta Tags:</strong></p><ul><li>UTF-8 charset declared</li><li>Viewport meta tag present</li><li>Unique title on every page (under 60 characters)</li><li>Meta description on every page (150–160 characters)</li></ul><p><strong>OG and Social Media:</strong></p><ul><li>Open Graph tags complete</li><li>Twitter Card tags complete</li><li>Social preview images (1200x630)</li><li>Tested with the website available for the “open graph checker”</li></ul><p><strong>Favicon and Icons:</strong></p><ul><li>favicon.ico in the root directory</li><li>PNG favicons (16, 32, 192, 512)</li><li>Apple touch icon (180x180)</li><li>manifest.json configured</li><li>Test it using the suggested website or any online tool</li></ul><p><strong>Static Files:</strong></p><ul><li>robots.txt in root</li><li>sitemap.xml generated and submitted</li><li>Ensure that search engines are allowed to crawl the production site, while the staging and development environments are disallowed from indexing in the robots.txt and sitemap.xml also handled</li><li>Custom 404.html page</li><li>manifest.json for PWA features</li></ul><h3>Bonuc Tips:</h3><ul><li>Create a custom 404 page that matches your website’s branding and style.</li><li>Always include descriptive alt text for all images.</li><li>Spend time on performance optimization since page speed is a ranking factor — for example, optimize images (use WebP format and proper sizing), use a CDN, lazy load images, and minify CSS/JS based on your website’s needs.</li></ul><p>The tools and websites mentioned in this guide are provided for reference and convenience only. You can use any alternative tools of your choice for similar results</p><p><em>Everything in this publication is made with care by a tight-knit team of engineers, dreamers, and problem-solvers at reverseBits. Peek into our world at</em></p><p><a href="https://www.reversebits.tech/">Home - reverseBits</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e3469b0ec4b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reversebits/the-essential-frontend-configuration-checklist-before-launch-1e3469b0ec4b">The Essential Frontend Configuration Checklist Before Launch</a> was originally published in <a href="https://medium.com/reversebits">reverseBits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything You Need to Know About JWT: The What, Why and How]]></title>
            <link>https://medium.com/reversebits/everything-you-need-to-know-about-jwt-the-what-why-and-how-b29aad4949ae?source=rss-0ab09a51454f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b29aad4949ae</guid>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[security-token]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Hetvi Patoliya]]></dc:creator>
            <pubDate>Fri, 25 Apr 2025 11:52:42 GMT</pubDate>
            <atom:updated>2025-04-25T11:52:42.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YmXcO2oGQEAHfKhk1cyQYA.png" /></figure><p>You would have read JWT, or JSON Web Token, term in many places, right from documentation to API headers, and of course, tech discussions.So what exactly does it mean? How does it work? More importantly, what should one be careful about?</p><h3>What is JWT (JSON Web Token)?</h3><p><strong>JWT (JSON Web Token)</strong> is a compact, URL-safe token used to securely transmit information between parties as a JSON object. It consists of a <strong>header</strong>, <strong>payload</strong>, and <strong>signature</strong>. The header defines the algorithm, the payload carries claims, and the signature ensures data integrity using a secret or key. JWTs are stateless, meaning all session data is stored in the token itself. They use encoding (not encryption), so the payload is readable and should not contain sensitive data. They’re widely used for authentication and authorization in modern web apps.</p><blockquote>Let’s break it all down simply and technically, so that even your future self will thank you for revisiting.</blockquote><h3>Why Is It Called JSON Web Token?</h3><p>It’s named quite literally:</p><ol><li><strong>JSON</strong>: The data is formatted as a JSON object.</li><li><strong>Web</strong>: It’s designed to be used in web environments (HTTP headers, URLs, etc.)</li><li><strong>Token</strong>: It acts as a credential for authentication and data exchange.</li></ol><h3>The Structure of a JWT</h3><p>A JWT consists of three parts, separated by dots:</p><pre>xxxxx.yyyyy.zzzzz<br>header.payload.signature</pre><ol><li><strong>Header</strong> — Contains the token type (JWT) and signing algorithm (e.g., HS256).</li><li><strong>Payload</strong> — The actual data (claims). This can be user data, expiration time, etc.</li><li><strong>Signature</strong> — Created by hashing the header and payload with a secret or private key.</li></ol><blockquote>JWT example taken from <a href="https://jwt.io/">jwt.io</a>, which allows you to decode, verify, and generate Json Web Token — a super helpful tool!</blockquote><blockquote>You can see the Encoded and decode token both as below:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/0*e-EeZOSguTWL-nOB" /></figure><h3>Why is JWT stateless?</h3><p>JWT is stateless because all information necessary to authenticate a user is contained within the token itself. No session data needs to be stored in memory or a database by the server.</p><ul><li><strong>Advantages</strong>: Scalability -each request is independent.</li><li><strong>Cons</strong>: It is difficult to revoke a token since the server does not keep track of sessions.</li></ul><h3>Never Store Sensitive Data in JWT(Signing ≠ Encryption)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7XxxCARlsm9YswKpdScbxQ.png" /></figure><p>JWTs use <strong>Base64 encoding</strong>. Any person who possesses the token can decode and read the payload. Thus <strong>never store sensitive data</strong> like passwords, bank information, or private keys in the payload.</p><p>Use JWT for IDs, roles, and non-sensitive claims that help you validate and authorize the user — -not for anything you wouldn’t want leaked.</p><h4>Signing (e.g., using HMAC SHA256 or RSA):</h4><ol><li>Ensures the token was created by a trusted source (can’t be forged without the secret/private key).</li><li>Ensures data wasn’t tampered with.</li><li>You can read the payload (it’s just base64, can see decode json in jwt.io), but can’t fake or modify it without breaking the signature.</li></ol><h4>Encryption (e.g., AES):</h4><ol><li>Makes the data unreadable to anyone without the decryption key.</li><li>Use <strong>JWE (JSON Web Encryption)</strong> if you need to hide sensitive data inside the token.</li></ol><h3>Token Expiration and Best Practices</h3><p>Set an expiration time (exp) on your JWTs — -always.</p><ol><li><strong>Access tokens</strong>: 5–15 minutes</li><li><strong>Refresh tokens</strong>: Up to 7–30 days (depending on your security needs)</li></ol><p>Also, implement <strong>token revocation mechanisms</strong>, for example:</p><ol><li>Store revoked token IDs in a <strong>blacklist</strong></li><li>Use short-lived tokens and refresh tokens together</li></ol><h3>Security Considerations</h3><p>JWTs are powerful, but not immune to common web vulnerabilities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9thirqHntpL7GCGRb3sOtg.png" /></figure><p>Don’t store JWTs in localStorage or sessionStorage, They’re vulnerable to XSS attacks. Instead:</p><h4><strong>Store them in secure, httpOnly cookies:</strong></h4><ol><li>httpOnly: Makes the cookie inaccessible to JavaScript.</li></ol><h4><strong>SameSite Policy</strong>:</h4><ol><li>Use SameSite=Lax for basic protection</li><li>Use SameSite=Strict for tighter security</li><li>Use SameSite=None; Secure if your frontend/backend are on different domains and HTTPS is in place</li></ol><h4><strong>Use HTTPS — Always:</strong></h4><p>That goes without saying, but let’s repeat it for emphasis:</p><p>Use HTTPS when transmitting JWTs. Otherwise, your tokens are at risk via MITM (Man-In-The-Middle) attacks.</p><h3>JWT Isn’t Perfect — Know the Trade-offs</h3><p>✔️ <strong>Benefits</strong>:</p><ol><li>Stateless and scalable</li><li>Compact and fast to transfer</li><li>Easy to integrate across systems</li><li>A nice fit with modern frontend frameworks</li></ol><p>❌ <strong>Disadvantages</strong>:</p><ol><li>No built-in revocation</li><li>Prone to misuse (don’t mix access and ID tokens!)</li><li>Exposure of sensitive data in case of misuse</li><li>Make sure Tokens Are Used Properly</li></ol><ul><li>Not all JWT tokens has the same format, make we need to check proper claims. Some are <strong>ID tokens</strong> (identify the user), and others are <strong>access tokens</strong> (authenticate access). Check the scope / aud (audience) claim well.</li></ul><h3>Use Cases for JWT</h3><ol><li><strong>Authentication</strong>: After login, issue a JWT for API access.</li><li><strong>Authorization</strong>: Use the token to check user roles and permissions.</li><li><strong>Information Exchange</strong>: Send signed (but readable) data between services.</li></ol><h3>Final Thoughts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xg6H8J8BeJCuteidGFp6wg.png" /><figcaption>JWT Best practices</figcaption></figure><p>JWTs are an elegant solution to modern authentication and authorization challenges — -but they must be used wisely.</p><p>Respect their limitations, follow best practices, and you’ll have a secure, scalable authentication system that serves you well.</p><p>Just remember:</p><blockquote>Use them for stateless authentication</blockquote><blockquote>Don’t store sensitive data — it’s encoded, not encrypted</blockquote><blockquote>Don’t skip token validation (strict validation of claims like iss, aud, and exp)</blockquote><blockquote>Keep them short-lived</blockquote><blockquote>Handle refresh tokens with care</blockquote><blockquote>Sign them securely</blockquote><p>Whether you’re building a simple login system or a complex microservices architecture, understanding how JWTs work under the hood will make you a better, more secure developer.</p><p>If you made it this far—— respect!</p><blockquote>If you found this helpful or learned something new, please give a clap 👏.</blockquote><blockquote>Got questions or thoughts? Drop them in the comments -I’d love to hear from you!</blockquote><p><em>Everything in this publication is made with care by a tight-knit team of engineers, dreamers, and problem-solvers at reverseBits. Peek into our world at</em></p><p><a href="https://www.reversebits.tech/">Home - reverseBits</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b29aad4949ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/reversebits/everything-you-need-to-know-about-jwt-the-what-why-and-how-b29aad4949ae">Everything You Need to Know About JWT: The What, Why and How</a> was originally published in <a href="https://medium.com/reversebits">reverseBits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>