<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jay Blur</title>
    <description>The latest articles on DEV Community by Jay Blur (@jayblur).</description>
    <link>https://dev.to/jayblur</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4192703%2F570fbe0f-b148-40a1-876a-a6398c4c3c48.png</url>
      <title>DEV Community: Jay Blur</title>
      <link>https://dev.to/jayblur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jayblur"/>
    <language>en</language>
    <item>
      <title>My Website Was Fine Until I Let a Chatbot Look at It</title>
      <dc:creator>Jay Blur</dc:creator>
      <pubDate>Sat, 05 Dec 2026 15:39:02 +0000</pubDate>
      <link>https://dev.to/jayblur/my-website-was-fine-until-i-let-a-chatbot-look-at-it-1gon</link>
      <guid>https://dev.to/jayblur/my-website-was-fine-until-i-let-a-chatbot-look-at-it-1gon</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; A chatbot changed one number in a config file I didn't understand, and I only found out because I eventually learned what the file was for.&lt;/p&gt;

&lt;p&gt;I host my website on a Raspberry Pi at home, behind a Cloudflare Tunnel, and for a while all of that worked perfectly. Then two or three days ago the site started showing a 404, and I began a three-act tragedy in which I was the main character and also, indirectly, the villain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Act 1: In which I understand nothing
&lt;/h2&gt;

&lt;p&gt;I had set up the Tunnel by asking Gemini to make it work and pasting whatever came back, which a hiring manager might call rapid prototyping and which I would more accurately call typing commands I didn't understand into the machine that holds my entire website. I was also trying to get CI/CD going at the time, meaning a GitHub runner that would SSH into the Pi and deploy for me, but the pipeline doesn't exist yet and is currently more of a rumor, so the broken website understandably took priority over it, since a 404 on my own domain is considerably more embarrassing than a deploy script I haven't written.&lt;/p&gt;

&lt;h2&gt;
  
  
  Act 2: In which I consult the machine that probably broke it
&lt;/h2&gt;

&lt;p&gt;I handed my &lt;code&gt;config.yml&lt;/code&gt; to the chatbot and told it, more or less, that something was broken and it should find the problem, and what I completely failed to mention is that the website had been working three days earlier. That detail turns the whole question from "what is wrong with this setup?" into "what changed?", which is a much better question, and by leaving it out I basically asked a very eager assistant to go fix something that had no reason to need fixing.&lt;/p&gt;

&lt;p&gt;It found something to fix anyway, because that is what these tools do when you say the word broken, and the thing it touched was the port number in my ingress rules. I know for certain that the AI did this and not me, because I had to google what "ingress" even means, and a person who needs a search engine to define a word in their own config file is not a person who confidently edited it by hand. I can't show you a before-and-after diff, since my Pi has no version control and no backups of any previous config, so the entire audit trail of this incident is me being absolutely sure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Act 3: In which I learn a Linux command that has existed for decades
&lt;/h2&gt;

&lt;p&gt;I had a theory that it was a port problem, but I couldn't confirm it because I didn't know the commands and I'm still learning Linux, so I asked the same AI how to check, which is a little like asking the arsonist for directions to the fire department but did work out in the end. The answer was &lt;code&gt;ss -tlpn&lt;/code&gt;, a one-line command that lists which programs are listening on which ports, and it showed my app sitting happily on port 80.&lt;/p&gt;

&lt;p&gt;Then I looked at what my Cloudflare config was actually pointing at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://localhost:8000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My app lived on port 80 and my Tunnel was delivering every visitor to port 8000, where absolutely nothing was waiting, so Cloudflare was essentially a very reliable courier bringing packages to the wrong address, with me as the person who supplied the address, or at least the person who failed to check it. I changed 8000 back to 80, restarted &lt;code&gt;cloudflared&lt;/code&gt;, and the site came back, so the fix was a single number and the time it took me to find it was not something I'm going to put on my resume.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Tunnel actually is (now that I know)
&lt;/h2&gt;

&lt;p&gt;I did go read up on how this works, and it's smarter than I expected. The usual way to put a home server on the internet is to expose your home IP and open ports on your router, which is exactly the kind of thing you'd rather not do from the same network where you also stream TV, and a Tunnel avoids all of it by flipping the direction of the connection: a small daemon called &lt;code&gt;cloudflared&lt;/code&gt; runs on the Pi and dials &lt;em&gt;out&lt;/em&gt; to Cloudflare, and when someone visits my domain, Cloudflare sends their request back down that already-open connection to my Pi, which means no inbound ports, no exposed home IP, and a free HTTPS certificate as a bonus.&lt;/p&gt;

&lt;p&gt;My first attempt at explaining this, in a voice memo, was a confused mess about VPNs and certificates, and my second attempt was actually correct, which I'm choosing to take as proof that reading things works.&lt;/p&gt;

&lt;p&gt;The part that actually mattered is that a Tunnel has two links, one from Cloudflare to &lt;code&gt;cloudflared&lt;/code&gt; and one from &lt;code&gt;cloudflared&lt;/code&gt; to my app, and the first link was healthy the entire time while the second was pointed at nothing, which is a failure that "Tunnel: connected" on the dashboard will never tell you about.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tell the debugger the history.&lt;/strong&gt; "It worked three days ago" is probably the most useful sentence in any bug report, and I left it out of mine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't hand a working config to an AI and tell it that it's broken.&lt;/strong&gt; It will go looking for a bug, and sometimes the bug it finds is the one it creates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the config in version control.&lt;/strong&gt; Git on the Pi is now an urgent personal project, because "I'm sure it changed" is not evidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A connected tunnel does not mean a working site.&lt;/strong&gt; There are two links, which means two places to fail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn &lt;code&gt;ss -tlpn&lt;/code&gt;.&lt;/strong&gt; It's one line, it has been around longer than my interest in computers, and it would have saved me a lot of grief.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The site is back up, the pipeline is still a rumor, and I'm told that everyone goes through this at some point, although mostly I'm told it by people who have version control.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>My First Real Client Was My Dad: What Broke When I Shipped His Website</title>
      <dc:creator>Jay Blur</dc:creator>
      <pubDate>Sun, 18 Oct 2026 18:38:13 +0000</pubDate>
      <link>https://dev.to/jayblur/my-first-real-client-was-my-dad-what-broke-when-i-shipped-his-website-57cg</link>
      <guid>https://dev.to/jayblur/my-first-real-client-was-my-dad-what-broke-when-i-shipped-his-website-57cg</guid>
      <description>&lt;p&gt;&lt;em&gt;A story about a leaky first version, a six-hour scraping fight, and a scraper that failed without telling me.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;A while ago my father and I were talking about how entrepreneurship is, at its core, a polite way of stressing about money. By natural flow, he mentioned he wanted a website. He started talking about how hard they must be to build, and I thought: &lt;em&gt;how hard can it be?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is the story of how that sentence led to a real website for a real client, a scraping pipeline, a self-hosted deployment on a Raspberry Pi, and a lot of mistakes I’m glad I made early. (My client is my father. I call him “the client” in this article because it sounds more professional, but he’s very much the reason this project exists.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The short version of what I built:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A React + Vite frontend&lt;/li&gt;
&lt;li&gt;A Django REST backend with an admin panel&lt;/li&gt;
&lt;li&gt;A consultation form, a newsletter, and an articles page&lt;/li&gt;
&lt;li&gt;An “updates” tab that scrapes the main income tax and GST websites and shows everything in one place&lt;/li&gt;
&lt;li&gt;Deployment on a Raspberry Pi behind a Cloudflare Tunnel, with a GitHub Actions pipeline&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It took about 16 working days of commits, spread across 16 days, around school. The website is hosted right now at &lt;a href="https://pisaadvisors.com" rel="noopener noreferrer"&gt;https://pisaadvisors.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The client prefers that the code stay private, so I can’t show it. What I can show is how it works and what went wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Version 1: it works, please don’t look at it
&lt;/h2&gt;

&lt;p&gt;The first version went up in late December 2025. I’d just finished a React frontend in two days, with preboards looming, and my client asked for an appointment-booking feature.&lt;/p&gt;

&lt;p&gt;I had the React basics from messing around in 7th grade, so the structure wasn’t the problem. Time was. I used Claude for the chores: writing JSX and building animations, things I knew how to do but couldn’t afford the hours for. The actual design came from a sketch session with my father on a Sunday evening, on paper.&lt;/p&gt;

&lt;p&gt;The backend was the questionable part. I didn’t have a real one. When someone clicked the booking button, the frontend sent the form data, including the user’s &lt;strong&gt;email address&lt;/strong&gt;, straight to a Google Sheet through Google’s API.&lt;/p&gt;

&lt;p&gt;At that point I didn’t really understand how a frontend and a backend should talk to each other, so it made sense in my head. It didn’t make sense for security.&lt;/p&gt;

&lt;p&gt;The lesson here is simple and it’s the one I’d tattoo on a first-year dev: &lt;strong&gt;anything the browser can reach, a stranger can reach too.&lt;/strong&gt; In my case, nobody had signed up yet, so there was no real user data to expose, and I have no evidence that anyone accessed the sheet. But I also had no way of knowing, and that’s the real problem.&lt;/p&gt;

&lt;p&gt;I posted an Instagram reel about the site that same night. Very cool, very secure.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hosting detour
&lt;/h2&gt;

&lt;p&gt;The site was on Hostinger, which my father chose because it was the easiest option. For a static site, it is. But for my workflow, it wasn’t: every small change meant building the project, zipping it, uploading it through the file manager, and extracting it.&lt;/p&gt;

&lt;p&gt;I looked into connecting GitHub for automatic deploys, hit what looked like a paywall, and assumed I’d need to pay for a CI/CD setup. I was wrong, and I only found that out later.&lt;/p&gt;

&lt;p&gt;So, I decided to try something else. I had a Raspberry Pi lying around.&lt;/p&gt;

&lt;p&gt;How hard could it be?&lt;/p&gt;

&lt;p&gt;Not very, it turned out. Just very confusing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The new architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User → Cloudflare Tunnel → Nginx → /api → Gunicorn (Django)
                                 → everything else → React build (static files)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here’s how it works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every request first goes through a &lt;strong&gt;Cloudflare Tunnel&lt;/strong&gt;. The Pi makes an outbound connection to Cloudflare, so web traffic reaches it without me opening ports for the website.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nginx&lt;/strong&gt; sits in front as a reverse proxy. If the path starts with &lt;code&gt;/api&lt;/code&gt;, it hands the request to the backend. Otherwise, it serves the React build directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gunicorn&lt;/strong&gt; runs the Django app and handles the API requests.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For email, I used the Resend API. Partly because it’s good, and partly because I couldn’t figure out Django’s built-in email setup.&lt;/p&gt;

&lt;p&gt;I was using a Raspberry Pi 3. It only has a 1 GB ram limit, so i had to monitor it carefully.&lt;/p&gt;

&lt;h3&gt;
  
  
  Learning Django from scratch
&lt;/h3&gt;

&lt;p&gt;Before the real backend, I learned Django from scratch: views, URLs, models, and how everything connects through WSGI. It took me about a day, including a small to-do app I built to practice, which is on my GitHub: &lt;a href="https://github.com/Jeet-Bubna/Notes-App" rel="noopener noreferrer"&gt;https://github.com/Jeet-Bubna/Notes-App&lt;/a&gt; . In that same time I built the whole backend apart from the scraper debugging, because I already had most of the frontend and porting it to Vite wasn’t hard.&lt;/p&gt;

&lt;h2&gt;
  
  
  The updates tab, or: the hard part
&lt;/h2&gt;

&lt;p&gt;The client wanted an updates tab that collects announcements from the main income tax and GST sites in one place. It turned out to be the hardest part of the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attempt 1: requests and BeautifulSoup.&lt;/strong&gt; This works for most scraping. But on an earlier project where I’d tried to scrape the NSE, I’d learned that plain &lt;code&gt;requests&lt;/code&gt; often fails on government and financial sites, so I wasn’t surprised.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attempt 2: a headless browser.&lt;/strong&gt; I didn’t know Selenium as a tool, but I understood the idea of an automated browser, so I went looking for one. That didn’t work either.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attempt 3: just read what the page does.&lt;/strong&gt; I opened Chrome dev tools, went to the Network tab, and looked at the requests the page makes. Most of these sites load their content from an API, so I could call that directly and skip the HTML. This solved most of them.&lt;/p&gt;

&lt;p&gt;Then I got to the Income Tax website, which had no such shortcut. I ended up reading its source for far longer than I’d like to admit. I think it was a word press file with code obfuscation. My vacation ended with the problem unsolved.&lt;/p&gt;

&lt;h3&gt;
  
  
  The rethink
&lt;/h3&gt;

&lt;p&gt;Weeks later, on a bus ride to school, I thought of a different approach: don’t parse the page myself. Scrape the page, hand the raw HTML to an AI model with a prompt asking for structured JSON, then loop over the result and save it to my Django models.&lt;/p&gt;

&lt;p&gt;I used the free tier of Gemini Flash Lite. It sometimes fails under heavy traffic, so the scraper skips those pages and tries again later. The scheduling runs on plain Linux &lt;strong&gt;cron jobs&lt;/strong&gt;. systemd timers are the more modern option, but for a project this small, cron means fewer moving parts. When the model returns a non-compatible answer, it is immediately filtered out.&lt;/p&gt;

&lt;p&gt;It worked on my first test, so I moved on to the other pieces: email automation, environment files, and the rest. This is where I should have been more suspicious. Something working once is not the same as it working.&lt;/p&gt;

&lt;h2&gt;
  
  
  The silent failure
&lt;/h2&gt;

&lt;p&gt;During my Dussehra break, I decided to finish deployment. By Sunday I had almost everything on the Pi: SSH, aliases, Gunicorn, Nginx, and a GitHub runner. The only step left was connecting my domain through the Cloudflare Tunnel.&lt;/p&gt;

&lt;p&gt;And right before that last step, I noticed the scraper had stopped working. I have no idea for how long it must've been broken, but it was quite sometime.&lt;/p&gt;

&lt;p&gt;I hadn’t noticed because of how I’d written it. The scraper only added new data. If nothing new arrived, nothing complained, because the old data was still in the database. The site looked healthy. It was just slowly going stale.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A system that fails silently is worse than one that crashes.&lt;/strong&gt; A crash tells you something is wrong. Silence tells you nothing. To my logger, I just added how many records it processed, and based on that we can tell if something is wrong.&lt;/p&gt;

&lt;p&gt;I was in a hurry to finish, so I debugged directly on the Pi with vim. I couldn’t reproduce the behavior properly on Windows, because Playwright behaves differently in headless Linux. It isn’t good practice, but it was the only way to test the real environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Six hours with a government website
&lt;/h2&gt;

&lt;p&gt;Here’s what I tried, in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;BeautifulSoup, Playwright, and requests.&lt;/strong&gt; The server returned &lt;code&gt;200 OK&lt;/code&gt;, but the page just said to enable JavaScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enabling JavaScript in Playwright.&lt;/strong&gt; No change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Playwright stealth plugin.&lt;/strong&gt; This should have worked. It didn’t.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Asking an AI for help.&lt;/strong&gt; It suggested running a Windows virtual machine inside the Pi. I did not do that.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That last one is a good reminder about AI tools. I use them, including inside this project, but I’d rather know what I’m building than follow advice I can’t evaluate. Because I understood enough to know a Windows VM on a Pi was a strange answer, I went and read instead.&lt;/p&gt;

&lt;p&gt;After about an hour of research, I had a theory. Bot-detection scripts often compare what your HTTP headers &lt;em&gt;claim&lt;/em&gt; against what your browser actually &lt;em&gt;is&lt;/em&gt;. My headers said I was a Windows browser, but I was running on Linux, and details like &lt;code&gt;navigator.platform&lt;/code&gt; and other browser characteristics disagreed with the headers. I think the site saw a mismatch, treated it as automated traffic, and returned the “enable JavaScript” page. This is my best explanation, since the site never told me.&lt;/p&gt;

&lt;p&gt;Plain headers weren’t enough. I had to configure the &lt;strong&gt;browser context&lt;/strong&gt; (viewport size and related properties) so it looked consistent, and inject a small script before the page’s own JavaScript runs to hide the markers that give away automation. Instead of relying solely on &lt;code&gt;playwright-stealth&lt;/code&gt; (which can sometimes fail silently or have version mismatches on Linux binaries), we injected raw JavaScript before the page even loaded. This explicitly forced &lt;code&gt;navigator.webdriver = false&lt;/code&gt;, faked the Chrome runtime object, and mocked browser plugins so the firewall's detection scripts couldn't flag it as automation. After that, the scrapes finally worked.&lt;/p&gt;

&lt;p&gt;I’m deliberately not sharing the exact code here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pipeline
&lt;/h2&gt;

&lt;p&gt;Once the scraper worked, I set up CI/CD properly with &lt;strong&gt;GitHub Actions&lt;/strong&gt;. When I push to the main branch, a workflow runs and deploys the new version. It runs on a GitHub-hosted runner that SSHs in using repository secrets.&lt;/p&gt;

&lt;p&gt;Compare that with zipping and extracting files by hand, and you can see why I was happy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I’d do differently
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Never put secrets in frontend code.&lt;/strong&gt; Everything in the browser is public.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match your hosting to your workflow.&lt;/strong&gt; The tool wasn’t bad, it just wasn’t built for what I needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alert on silence.&lt;/strong&gt; Monitor for things &lt;em&gt;not&lt;/em&gt; happening, not only for things failing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate AI output.&lt;/strong&gt; Treat model responses as untrusted input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don’t debug in production.&lt;/strong&gt; Set up a proper Linux test environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Pi is a single point of failure.&lt;/strong&gt; One power cut and the site is down. &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;p&gt;This project taught me more about networking, deployment, and failure than any tutorial did. Most of that came from mistakes: an exposed endpoint, a silent scraper, a hosting plan that didn’t fit. I’m still working on the next stage, which is hardening things properly: monitoring, tighter SSH, and a clearer pipeline.&lt;/p&gt;

&lt;p&gt;Because my father, sorry, &lt;em&gt;the client&lt;/em&gt;, would rather the code stayed private, I can’t show it. But I’m happy to explain any part of how it works.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
