<?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: Azeem Javed</title>
    <description>The latest articles on DEV Community by Azeem Javed (@jeemmo).</description>
    <link>https://dev.to/jeemmo</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%2F1094809%2F3da06d21-15cd-4488-8a7b-507b4aa18505.png</url>
      <title>DEV Community: Azeem Javed</title>
      <link>https://dev.to/jeemmo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jeemmo"/>
    <language>en</language>
    <item>
      <title>How I built a hotel-to-gate walking directory for Makkah and Madinah with PostGIS and OSRM</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Wed, 25 Nov 2026 19:13:53 +0000</pubDate>
      <link>https://dev.to/jeemmo/how-i-built-a-hotel-to-gate-walking-directory-for-makkah-and-madinah-with-postgis-and-osrm-dd9</link>
      <guid>https://dev.to/jeemmo/how-i-built-a-hotel-to-gate-walking-directory-for-makkah-and-madinah-with-postgis-and-osrm-dd9</guid>
      <description>&lt;p&gt;If you have booked a hotel for Umrah or Hajj, you have seen it: "200 m from the Haram". From where? To which gate? Measured how? The Grand Mosque in Makkah has dozens of named gates, and a distance that ends at the wrong one can add a long walk. For older and less mobile pilgrims that matters a lot.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://makkahmadina.net" rel="noopener noreferrer"&gt;makkahmadina.net&lt;/a&gt;: a directory that links each hotel to a &lt;strong&gt;named mosque gate&lt;/strong&gt;, gives a &lt;strong&gt;real walking distance&lt;/strong&gt;, and says &lt;strong&gt;where the distance starts, how it was measured and when it was last checked&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Today it has 885 hotels (504 in Makkah, 381 in Madinah), 37 named gates, 32 ziyarat sites and 1,950 computed walking routes. This post is about the parts that turned out to be harder than they looked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 15&lt;/strong&gt; (App Router, TypeScript, Tailwind) for the site, in English and Turkish&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL 17 + PostGIS&lt;/strong&gt; for places and distances&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prisma&lt;/strong&gt; for normal CRUD, plain parameterised SQL for the spatial queries&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OSRM&lt;/strong&gt; (self-hosted) for walking routes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MapLibre&lt;/strong&gt;, lazy-loaded, so map JavaScript only loads when someone opens a map&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker Compose&lt;/strong&gt; running the app, database and router on one server, behind Apache&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  One table for every place
&lt;/h2&gt;

&lt;p&gt;Mosques, gates, hotels and ziyarat sites all live in one &lt;code&gt;places&lt;/code&gt; table. &lt;code&gt;location&lt;/code&gt; (and &lt;code&gt;entrance&lt;/code&gt;, when it is known) are &lt;code&gt;geography(Point, 4326)&lt;/code&gt; with a GiST index, so distance queries are fast and in metres.&lt;/p&gt;

&lt;p&gt;Hotels come from OpenStreetMap, but I edit names, translations and details by hand. Two flags stop the next import from wiping that work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;lockedFromImport&lt;/code&gt; on a place: the importer leaves it alone.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;isEditorial&lt;/code&gt; on a translation: imports never overwrite it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Source records are unique on &lt;code&gt;(source, element_type, external_id)&lt;/code&gt;, because an OSM node, way and relation can share the same numeric ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: candidate gates with PostGIS
&lt;/h2&gt;

&lt;p&gt;The nearest gate in a straight line is often not the best gate to walk to. So the first step only picks &lt;strong&gt;candidates&lt;/strong&gt;: the 5 nearest published gates in the same city.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;gate_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nc"&gt;ST_Distance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;COALESCE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;entrance&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;places&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;
&lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;places&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'GATE'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'PUBLISHED'&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$1&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;COALESCE(h.entrance, h.location)&lt;/code&gt; matters: if a hotel's entrance has been mapped, the distance starts there; otherwise it starts at the building centre, and the page says so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: real walking routes with OSRM
&lt;/h2&gt;

&lt;p&gt;Each candidate is then routed with OSRM's foot profile. The primary gate is the shortest &lt;em&gt;usable&lt;/em&gt; walking route, not the closest point on a map.&lt;/p&gt;

&lt;p&gt;"Usable" is the important word. OSRM always returns &lt;em&gt;something&lt;/em&gt;, so every route goes through two sanity checks before it can be shown as the headline number:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Snap distance.&lt;/strong&gt; OSRM snaps the start and end points to the nearest path. If the hotel snaps more than 100 m away, or the gate more than 40 m, the route is probably starting from the wrong street. The snap legs are added to the distance and written into the route's notes, so a reviewer can see them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detour.&lt;/strong&gt; If the route is more than 2× the straight line &lt;em&gt;and&lt;/em&gt; more than 400 m longer, it usually means a missing crossing or link in the map data (podiums, tunnels, fenced plazas), not a real detour.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A route that fails either check is not published as the headline. The hotel falls back to a clearly labelled straight-line distance, and the route is flagged &lt;code&gt;needs review&lt;/code&gt;. Right now 117 of the 1,950 routed candidates are flagged, and they cluster in a few areas around both mosques, which points to gaps in the map data rather than random errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixing the map without editing OpenStreetMap
&lt;/h2&gt;

&lt;p&gt;The area around the two mosques is hard for a router: huge open plazas mapped as areas (a router cannot walk across an area), gates with no path through them, and footpaths that stop a few metres short of each other.&lt;/p&gt;

&lt;p&gt;Instead of uploading guesses to OpenStreetMap, a Python script (osmium + shapely) builds an &lt;strong&gt;extra OSM file&lt;/strong&gt; that is merged into the routing graph only:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gate passages:&lt;/strong&gt; each named gate gets a node linked to the nearest walkable way outside and inside, so a route can step through the gate instead of detouring to another entrance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pavements:&lt;/strong&gt; main roads near the mosques that people really walk along get a footway on the same nodes. Tunnels, bridges and roads tagged &lt;code&gt;sidewalk=no&lt;/code&gt; are excluded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dead ends:&lt;/strong&gt; paths that stop just short of another path are joined.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plaza crossings:&lt;/strong&gt; open squares get a 20 m walkable grid (with diagonals), joined to the paths around them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Being honest about every number
&lt;/h2&gt;

&lt;p&gt;Every route stores its method (&lt;code&gt;STRAIGHT_LINE&lt;/code&gt; or &lt;code&gt;ROUTED&lt;/code&gt;), its start point, and a verification level: &lt;code&gt;UNVERIFIED&lt;/code&gt;, &lt;code&gt;DESK_CHECKED&lt;/code&gt; or &lt;code&gt;FIELD_CHECKED&lt;/code&gt;, with the date it was checked.&lt;/p&gt;

&lt;p&gt;The pipeline only ever replaces unverified rows. Once a person has checked a route, a re-run cannot overwrite it, and if that checked route is the primary one, it stays primary.&lt;/p&gt;

&lt;p&gt;This was the main design decision of the whole project: a confident wrong number is worse than an honest estimate. The page shows the method and the check status next to the distance, so readers can decide how much to trust it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping affiliate links apart
&lt;/h2&gt;

&lt;p&gt;The site will earn from hotel booking links, but offers, price observations and outbound clicks live in their own tables, separate from editorial content. Only active offers are shown, click-outs go through a tracked &lt;code&gt;/go/[offerId]&lt;/code&gt; route marked &lt;code&gt;rel="sponsored"&lt;/code&gt;, and the disclosure sits next to the button. A hotel's gate and distance never depend on whether it has an offer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it
&lt;/h2&gt;

&lt;p&gt;Everything runs from one &lt;code&gt;docker compose&lt;/code&gt; file: the app, PostgreSQL with PostGIS, OSRM, and an &lt;code&gt;ops&lt;/code&gt; profile for the data pipeline. One command re-runs migrations, seeds, the OSM import, hotel publishing and route computation. Refreshing the map data means downloading a new extract, rebuilding the OSRM graph and recomputing the routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still to do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Mapping real hotel entrances, so more distances start at the door rather than the building centre.&lt;/li&gt;
&lt;li&gt;On-site checks of gates and routes, to move routes from desk-checked to field-checked.&lt;/li&gt;
&lt;li&gt;Reviewing the flagged routes and the areas where the map data is thin.&lt;/li&gt;
&lt;li&gt;Arabic and Urdu translations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have walked these routes and something looks wrong, I would love to hear about it. And if you are building something with maps, routing or messy open data, I am happy to compare notes in the comments.&lt;/p&gt;

&lt;p&gt;Map data © OpenStreetMap contributors, ODbL.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Azeem, a freelance web developer. I build custom web apps, directories and data-heavy sites. You can see more of my work at &lt;a href="https://jeemmo.com/case-studies/" rel="noopener noreferrer"&gt;jeemmo.com&lt;/a&gt; or email &lt;a href="mailto:info@jeemmo.com"&gt;info@jeemmo.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>postgres</category>
      <category>nextjs</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Your new Windows Server VPS is being scanned already. Lock down RDP in 15 minutes</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Sat, 21 Nov 2026 09:54:04 +0000</pubDate>
      <link>https://dev.to/jeemmo/your-new-windows-server-vps-is-being-scanned-already-lock-down-rdp-in-15-minutes-1p91</link>
      <guid>https://dev.to/jeemmo/your-new-windows-server-vps-is-being-scanned-already-lock-down-rdp-in-15-minutes-1p91</guid>
      <description>&lt;p&gt;Put a Windows Server on a public IP with Remote Desktop open on port 3389, and within minutes the Security log starts filling with failed logins for &lt;code&gt;administrator&lt;/code&gt;, &lt;code&gt;admin&lt;/code&gt;, &lt;code&gt;user&lt;/code&gt; and friends. Bots scan the whole IPv4 range all day; they are not looking for you, they are looking for anyone.&lt;/p&gt;

&lt;p&gt;None of that is a reason to panic. It is a reason to spend 15 minutes on the basics before you install anything else. This guide is for a fresh Windows Server 2019/2022/2025 VPS that you reach with Remote Desktop as &lt;code&gt;administrator&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before you start:&lt;/strong&gt; find out how to reach the server's console without RDP (most VPS hosts have a "console" or "VNC" button in their panel). If a firewall change locks you out, that console is how you get back in.&lt;/p&gt;

&lt;p&gt;All commands below run in &lt;strong&gt;PowerShell as Administrator&lt;/strong&gt; on the server, and assume an English-language Windows install (names like &lt;code&gt;Administrators&lt;/code&gt; and the firewall group names are translated on other languages).&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Change the password you were given
&lt;/h2&gt;

&lt;p&gt;The first password was shown in a panel or sent by email, so treat it as already seen. In your RDP session press &lt;strong&gt;Ctrl+Alt+End&lt;/strong&gt; (the RDP version of Ctrl+Alt+Del) and choose &lt;strong&gt;Change a password&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Use a long passphrase (four or five random words, 20+ characters) and keep it in a password manager. Length beats clever symbols, and bots mostly try short, common passwords.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Make your own admin account
&lt;/h2&gt;

&lt;p&gt;Every bot on the internet guesses the username &lt;code&gt;administrator&lt;/code&gt;. Give yourself an account they have to guess too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$pw&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Read&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Host&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;AsSecureString&lt;/span&gt; &lt;span class="s2"&gt;"Password for the new account"&lt;/span&gt;
&lt;span class="nc"&gt;New&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;LocalUser&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="s2"&gt;"ops-anna"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Password&lt;/span&gt; &lt;span class="nv"&gt;$pw&lt;/span&gt;
&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;LocalGroupMember&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Group&lt;/span&gt; &lt;span class="s2"&gt;"Administrators"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Member&lt;/span&gt; &lt;span class="s2"&gt;"ops-anna"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pick a name that is not obvious (not &lt;code&gt;admin&lt;/code&gt;, not your company name). On a default install, members of Administrators can sign in over Remote Desktop, but local policies can change that, so log out, log in as the new user, and check that it works &lt;strong&gt;before&lt;/strong&gt; you change anything about the built-in account.&lt;/p&gt;

&lt;p&gt;By default the new account's password expires under the local password policy (42 days on a default standalone server). Many people set it to never expire for a single-admin box and rely on the long passphrase instead; if you want that, add &lt;code&gt;-PasswordNeverExpires&lt;/code&gt;, knowingly.&lt;/p&gt;

&lt;p&gt;What to do with the built-in &lt;code&gt;Administrator&lt;/code&gt; then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If your host's panel resets passwords or runs scripts as &lt;code&gt;Administrator&lt;/code&gt;, keep it enabled with its long new password.&lt;/li&gt;
&lt;li&gt;Otherwise you can disable it once your own account works: &lt;code&gt;Disable-LocalUser -Name "Administrator"&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Turn on an account lockout policy
&lt;/h2&gt;

&lt;p&gt;A lockout policy turns millions of guesses into a handful:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lockoutthreshold&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lockoutwindow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;lockoutduration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;
&lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="n"&gt;accounts&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That locks an account for 15 minutes after 10 wrong passwords; the count of wrong passwords resets 15 minutes after the last failed try. Do not go much stricter: a bot can lock &lt;em&gt;you&lt;/em&gt; out too, which is one more reason the firewall step below is the real fix.&lt;/p&gt;

&lt;p&gt;The built-in &lt;code&gt;Administrator&lt;/code&gt; account has its own switch. For years it was never locked out; newer, updated Windows versions can lock it too, controlled by the policy &lt;strong&gt;Allow Administrator account lockout&lt;/strong&gt; (Local Security Policy &amp;gt; Account Policies &amp;gt; Account Lockout Policy). &lt;code&gt;net accounts&lt;/code&gt; does not show or change that setting, so check it there. Either way, logging in with your own account from step 2 avoids the question.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Check that Network Level Authentication is on
&lt;/h2&gt;

&lt;p&gt;With NLA, Windows checks your credentials &lt;em&gt;before&lt;/em&gt; it starts a full desktop session, so unauthenticated bots never get a login screen to play with. It is on by default on current Windows Server; confirm it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Namespace&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;cimv2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;TerminalServices&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ClassName&lt;/span&gt; &lt;span class="nc"&gt;Win32_TSGeneralSetting&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Filter&lt;/span&gt; &lt;span class="s2"&gt;"TerminalName='RDP-Tcp'"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;UserAuthenticationRequired&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;1&lt;/code&gt; means NLA is required. If you see &lt;code&gt;0&lt;/code&gt;, turn it on in &lt;strong&gt;System Properties &amp;gt; Remote &amp;gt; "Allow connections only from computers running Remote Desktop with Network Level Authentication"&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Only let your own IP address reach RDP
&lt;/h2&gt;

&lt;p&gt;This is the step that makes the noise stop. If you connect from a fixed IP (home, office or a VPN you control), scope the built-in Remote Desktop firewall rules to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# your public IP, as seen from the internet&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Invoke&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RestMethod&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ipify&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;org&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallRule&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;DisplayGroup&lt;/span&gt; &lt;span class="s2"&gt;"Remote Desktop"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RemoteAddress&lt;/span&gt; &lt;span class="mf"&gt;203.0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;113.10&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallRule&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;DisplayGroup&lt;/span&gt; &lt;span class="s2"&gt;"Remote Desktop"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallAddressFilter&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the first line on &lt;strong&gt;your own computer&lt;/strong&gt; (or open the URL in a browser), not on the server, and put that address in place of &lt;code&gt;203.0.113.10&lt;/code&gt;. You can list several: &lt;code&gt;-RemoteAddress 203.0.113.10,198.51.100.0/24&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What this changes: every rule in the built-in "Remote Desktop" group, that is the TCP and UDP rules for port 3389 and the "Shadow" rule used for session shadowing. All of them now accept only your address.&lt;/p&gt;

&lt;p&gt;It only helps if the firewall is on, blocks by default, and nothing else lets 3389 in. First check every profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallProfile&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PolicyStore&lt;/span&gt; &lt;span class="nc"&gt;ActiveStore&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Enabled&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;DefaultInboundAction&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Enabled&lt;/strong&gt; should be &lt;code&gt;True&lt;/code&gt; and &lt;strong&gt;DefaultInboundAction&lt;/strong&gt; should be &lt;code&gt;Block&lt;/code&gt;. If a profile shows &lt;code&gt;Allow&lt;/code&gt;, everything not explicitly blocked gets in, and scoping the RDP rules changes nothing; fix that first.&lt;/p&gt;

&lt;p&gt;Then list the enabled inbound "allow" rules that are actually in effect (&lt;code&gt;ActiveStore&lt;/code&gt;, which includes policy-applied rules) and could cover RDP: rules for port 3389, for &lt;strong&gt;Any&lt;/strong&gt; port, or for a port range:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallRule&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PolicyStore&lt;/span&gt; &lt;span class="nc"&gt;ActiveStore&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Direction&lt;/span&gt; &lt;span class="nc"&gt;Inbound&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Action&lt;/span&gt; &lt;span class="nc"&gt;Allow&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Enabled&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="k"&gt;ForEach&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$pf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallPortFilter&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;pscustomobject&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;@&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nc"&gt;Rule&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;DisplayName&lt;/span&gt;
      &lt;span class="nc"&gt;Protocol&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$pf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Protocol&lt;/span&gt;
      &lt;span class="nc"&gt;Port&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$pf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;LocalPort&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;join&lt;/span&gt; &lt;span class="s1"&gt;','&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="k"&gt;From&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NetFirewallAddressFilter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;RemoteAddress&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;join&lt;/span&gt; &lt;span class="s1"&gt;','&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Port&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="s1"&gt;'^Any$|3389|-'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="nc"&gt;Sort&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Rule&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Format&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Table&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;AutoSize&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read through what it prints. Besides the Remote Desktop rules (now limited to your IP), anything with &lt;code&gt;Any&lt;/code&gt; in &lt;strong&gt;Port&lt;/strong&gt; and &lt;code&gt;Any&lt;/code&gt; in &lt;strong&gt;From&lt;/strong&gt; deserves a closer look, especially if &lt;strong&gt;Protocol&lt;/strong&gt; is &lt;code&gt;TCP&lt;/code&gt; or &lt;code&gt;Any&lt;/code&gt;. Many built-in rules are limited to a program or service instead of a port, so not every &lt;code&gt;Any&lt;/code&gt; line opens RDP, but the ones you did not create yourself are worth understanding.&lt;/p&gt;

&lt;p&gt;Then &lt;strong&gt;test it&lt;/strong&gt;: keep your current session open, connect once from your allowed address (should work) and once from a different network, such as an iPhone on mobile data with the Windows App, or a laptop on a phone hotspot (should fail). That proves the rule works for those two networks; together with the rule review above, it gives you good confidence the rest of the internet is shut out too.&lt;/p&gt;

&lt;p&gt;Two warnings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If your home IP changes, you are locked out. Open the host's console, look up your new IP, and scope the same rules to it: &lt;code&gt;Set-NetFirewallRule -DisplayGroup "Remote Desktop" -RemoteAddress &amp;lt;your new IP&amp;gt;&lt;/code&gt;. Do not "fix" it by setting &lt;code&gt;-RemoteAddress Any&lt;/code&gt;; that opens the whole group to the internet again.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-DisplayGroup "Remote Desktop"&lt;/code&gt; is the English name. On any language you can use the group's internal name instead: &lt;code&gt;Set-NetFirewallRule -Group "@FirewallAPI.dll,-28752" -RemoteAddress 203.0.113.10&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your IP changes all the time, the better answer is a VPN (for example WireGuard) to the server, and RDP only over the VPN.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What about changing the RDP port?&lt;/strong&gt; Moving 3389 to another port cuts the log noise, but it is not protection: scanners find RDP on any port. Do it if you like quieter logs, never instead of steps 1-5.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Keep Windows updated
&lt;/h2&gt;

&lt;p&gt;Most real RDP compromises come from weak passwords or old, unpatched systems, not from clever attacks. Open the server configuration tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;sconfig&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Windows Server 2022/2025:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Option &lt;strong&gt;5 (Update setting)&lt;/strong&gt;: set it to &lt;strong&gt;Automatic&lt;/strong&gt; so updates install on their own.&lt;/li&gt;
&lt;li&gt;Option &lt;strong&gt;6 (Install updates)&lt;/strong&gt;: install everything that is waiting now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On a server with the desktop experience, &lt;strong&gt;Settings &amp;gt; Windows Update&lt;/strong&gt; works too. Plan a reboot window, because many updates need one.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. See who is knocking
&lt;/h2&gt;

&lt;p&gt;Failed logons are event &lt;strong&gt;4625&lt;/strong&gt; in the Security log. This shows the last 20 with the account name, source IP and logon type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Security'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4625&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'User'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;      &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'FromIP'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;19&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'LogonType'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Properties&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Event 4625 covers every failed logon, not only RDP. Bot guesses against RDP with NLA usually show as logon type &lt;strong&gt;3&lt;/strong&gt; (network) from outside IP addresses; type &lt;strong&gt;10&lt;/strong&gt; is a failed full Remote Desktop sign-in.&lt;/p&gt;

&lt;p&gt;Run it before step 5 and again a day later. Far fewer outside IPs afterwards is a good sign, but it is not proof on its own. What you rely on is the firewall setup from step 5: the profile check, the rule review and the two test connections together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting from a Mac or phone
&lt;/h2&gt;

&lt;p&gt;On Windows, use &lt;strong&gt;Remote Desktop Connection&lt;/strong&gt; (&lt;code&gt;mstsc&lt;/code&gt;). On a Mac, iPhone, iPad or Android, install Microsoft's &lt;strong&gt;Windows App&lt;/strong&gt; (the new name of the Remote Desktop app); Microsoft keeps a compatibility list per platform if a feature seems missing. Remember that if you scoped RDP to your home IP in step 5, your phone on mobile data has a different IP and will not get in, which is exactly the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on licensing
&lt;/h2&gt;

&lt;p&gt;Windows Server allows two simultaneous Remote Desktop sessions for administration. If you want more people using the server at the same time, or anyone using it for work other than administration, you need Remote Desktop Services licensing as well. Check this before you build something many users depend on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Changed the first password to a long passphrase&lt;/li&gt;
&lt;li&gt;[ ] Created your own admin account and tested it&lt;/li&gt;
&lt;li&gt;[ ] Lockout policy set (10 / 15 / 15), Administrator lockout setting checked&lt;/li&gt;
&lt;li&gt;[ ] NLA confirmed (&lt;code&gt;UserAuthenticationRequired&lt;/code&gt; = 1)&lt;/li&gt;
&lt;li&gt;[ ] Firewall on with default inbound Block; RDP firewall rules scoped to your IP (or RDP only over a VPN), no other rule opening 3389, tested from a second network&lt;/li&gt;
&lt;li&gt;[ ] Updates set to Automatic and installed&lt;/li&gt;
&lt;li&gt;[ ] Looked at event 4625 before and after&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is it. None of it is exotic, and together it moves your server from "one of millions of easy targets" to "not worth a bot's time".&lt;/p&gt;




&lt;p&gt;I work on &lt;a href="https://hostingbaba.net" rel="noopener noreferrer"&gt;HostingBaba&lt;/a&gt;, a Linux and Windows VPS host. Our Windows plans come with the server's own console in the browser for exactly the "I locked myself out" moment in step 5; more about them at &lt;a href="https://hostingbaba.net/rdp-vps" rel="noopener noreferrer"&gt;hostingbaba.net/rdp-vps&lt;/a&gt;. The steps above work on any Windows Server VPS, wherever it runs.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>security</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Self-host n8n on a VPS with Docker and Caddy (and claim the owner account before anyone else does)</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Sat, 21 Nov 2026 09:38:23 +0000</pubDate>
      <link>https://dev.to/jeemmo/self-host-n8n-on-a-vps-with-docker-and-caddy-and-claim-the-owner-account-before-anyone-else-does-2bkk</link>
      <guid>https://dev.to/jeemmo/self-host-n8n-on-a-vps-with-docker-and-caddy-and-claim-the-owner-account-before-anyone-else-does-2bkk</guid>
      <description>&lt;p&gt;n8n is a workflow automation tool: you connect apps, APIs, AI models and scripts as boxes on a canvas, and the workflows run on their own. The cloud version is easy, but self-hosting gives you your own data, no per-execution pricing, and a server that keeps running while your laptop is asleep.&lt;/p&gt;

&lt;p&gt;This guide sets it up on a single Linux VPS. It is short on purpose: two containers, one config file, automatic HTTPS.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Linux VPS with &lt;strong&gt;Ubuntu 24.04 LTS&lt;/strong&gt; and SSH access as root.&lt;/li&gt;
&lt;li&gt;A domain or subdomain you control, for example &lt;code&gt;n8n.example.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Memory: n8n itself is light, but every workflow that runs at the same time and every big payload it handles uses RAM. 4 vCPU / 8 GB is a comfortable start for personal and small-team use. Running AI models &lt;em&gt;on&lt;/em&gt; the server needs much more; calling an AI provider's API does not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A note on the licence: the self-hosted Community Edition is free for your own internal business or personal use under the n8n Sustainable Use License. Read it before you host n8n for clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Point your subdomain at the server
&lt;/h2&gt;

&lt;p&gt;At your DNS provider, add an &lt;strong&gt;A record&lt;/strong&gt; for &lt;code&gt;n8n&lt;/code&gt; with your server's IPv4 address. Check it from your own computer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nslookup n8n.example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The answer should be your server's address. This usually takes a few minutes. If there is also an &lt;strong&gt;AAAA&lt;/strong&gt; (IPv6) record for that name that does not point to this server, remove it, or the certificate step can fail.&lt;/p&gt;

&lt;p&gt;Ports &lt;strong&gt;80 and 443&lt;/strong&gt; must be reachable from the internet. If your provider has a firewall in its control panel, open them there too.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Install Docker (from Docker's own repository)
&lt;/h2&gt;

&lt;p&gt;The Docker in Ubuntu's default repository is often old, so use Docker's repository, as their Ubuntu guide describes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; apt -y upgrade
apt install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release &amp;amp;&amp;amp; echo "&lt;/span&gt;&lt;span class="nv"&gt;$VERSION_CODENAME&lt;/span&gt;&lt;span class="s2"&gt;") stable"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/apt/sources.list.d/docker.list
apt update
apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. One compose file: n8n + Caddy
&lt;/h2&gt;

&lt;p&gt;The idea:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;n8n&lt;/strong&gt; listens only on &lt;code&gt;127.0.0.1:5678&lt;/code&gt;, so it is never reachable from the internet directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caddy&lt;/strong&gt; is the only thing on ports 80 and 443. It gets a free, publicly trusted HTTPS certificate by itself (from Let's Encrypt or ZeroSSL) and forwards traffic to n8n.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p /opt/n8n &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; /opt/n8n
nano compose.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;n8n&lt;/span&gt;
&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;n8n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;docker.n8n.io/n8nio/n8n:VERSION&lt;/span&gt;   &lt;span class="c1"&gt;# replace VERSION, see below
&lt;/span&gt;    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"127.0.0.1:5678:5678"&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;N8N_HOST=n8n.example.com&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;N8N_PROTOCOL=https&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;WEBHOOK_URL=https://n8n.example.com/&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;N8N_PROXY_HOPS=1&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;GENERIC_TIMEZONE=Europe/London&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;TZ=Europe/London&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;n8n_data:/home/node/.n8n&lt;/span&gt;
  &lt;span class="na"&gt;caddy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;caddy:2&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;unless-stopped&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"80:80"&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"443:443"&lt;/span&gt;
    &lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;caddy reverse-proxy --from n8n.example.com --to n8n:5678&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;caddy_data:/data&lt;/span&gt;
&lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;n8n_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;n8n_data&lt;/span&gt;
  &lt;span class="na"&gt;caddy_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;caddy_data&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;n8n.example.com&lt;/code&gt; (three places) and the time zone with your own, and replace &lt;code&gt;VERSION&lt;/code&gt; with a complete stable version number from the &lt;a href="https://docs.n8n.io/release-notes/" rel="noopener noreferrer"&gt;n8n release notes&lt;/a&gt; (Compose will fail if you leave the word &lt;code&gt;VERSION&lt;/code&gt; in).&lt;/p&gt;

&lt;p&gt;Why these settings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A fixed version&lt;/strong&gt; instead of the default &lt;code&gt;latest&lt;/code&gt; tag means &lt;code&gt;docker compose pull&lt;/code&gt; never jumps to a new major version by surprise. You choose when to upgrade (step 7).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;name: n8n&lt;/code&gt; and the named volumes&lt;/strong&gt; keep the volume names fixed (&lt;code&gt;n8n_data&lt;/code&gt;, &lt;code&gt;caddy_data&lt;/code&gt;), so the backup command in step 6 always finds the right data.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEBHOOK_URL&lt;/code&gt; makes n8n show the public HTTPS address in webhook nodes, not &lt;code&gt;localhost&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;N8N_PROXY_HOPS=1&lt;/code&gt; tells n8n there is one reverse proxy in front of it, so it reads the real client IP from Caddy's headers.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;caddy_data&lt;/code&gt; volume keeps your certificates, so a restart does not ask Let's Encrypt for a new one every time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Claim the owner account privately, &lt;em&gt;then&lt;/em&gt; go public
&lt;/h2&gt;

&lt;p&gt;This is the step most guides skip. &lt;strong&gt;The first person to open a fresh n8n creates the owner account.&lt;/strong&gt; If you start Caddy first, anyone who finds your subdomain before you do can claim your instance.&lt;/p&gt;

&lt;p&gt;So start only n8n:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d n8n
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On your own computer, open an SSH tunnel and keep the window open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -L 5678:127.0.0.1:5678 root@YOUR.SERVER.IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://localhost:5678&lt;/code&gt; in &lt;strong&gt;Chrome or Firefox&lt;/strong&gt; and create the owner account with a strong password. (Safari refuses the n8n login over plain &lt;code&gt;http://localhost&lt;/code&gt;, so use another browser for this one step.)&lt;/p&gt;

&lt;p&gt;Now start everything and close the tunnel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;https://n8n.example.com&lt;/code&gt;. If it does not load straight away, give Caddy a minute to get the certificate and check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose logs caddy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Firewall
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ufw allow OpenSSH
ufw &lt;span class="nb"&gt;enable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(If SSH runs on another port, allow that port instead.)&lt;/p&gt;

&lt;p&gt;One gotcha worth knowing: &lt;strong&gt;ports published by Docker bypass ufw.&lt;/strong&gt; Here only Caddy publishes 80/443 and n8n is bound to &lt;code&gt;127.0.0.1&lt;/code&gt;, so that is fine. But if you later add a database or another container with &lt;code&gt;ports: - "5432:5432"&lt;/code&gt;, it will be open to the whole internet even though ufw "denies" it. Bind such ports to &lt;code&gt;127.0.0.1&lt;/code&gt; or leave them out.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Backups
&lt;/h2&gt;

&lt;p&gt;Everything that matters (workflows, credentials and the &lt;strong&gt;encryption key&lt;/strong&gt; that unlocks those credentials) lives in the &lt;code&gt;n8n_data&lt;/code&gt; volume. Lose the key and your saved credentials are useless, so back up the whole volume, not just an export of workflows.&lt;/p&gt;

&lt;p&gt;First make sure the volume really exists, because &lt;code&gt;docker run&lt;/code&gt; would otherwise quietly create an empty one and you would back up nothing. This should print &lt;code&gt;n8n_data&lt;/code&gt;; if it prints nothing, stop here and check your compose file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker volume ls -q --filter &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'^n8n_data$'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a consistent copy, stop n8n for a few seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /opt/n8n
docker compose stop n8n
docker run --rm -v n8n_data:/data:ro -v /opt/n8n:/backup alpine tar czf /backup/n8n-backup.tgz -C /data .
chmod 600 n8n-backup.tgz
docker compose start n8n
ls -lh n8n-backup.tgz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file should be more than a few kilobytes. It contains your credentials and encryption key, so treat it like a password: copy it off the server (for example with &lt;code&gt;scp&lt;/code&gt;) to somewhere private, and do not leave copies lying around. A backup that lives on the same server is not a backup.&lt;/p&gt;

&lt;p&gt;To restore: use the same compose file with the &lt;strong&gt;same n8n version that made the backup&lt;/strong&gt; (upgrade afterwards, not during), put the file in &lt;code&gt;/opt/n8n&lt;/code&gt; and run the block below. It &lt;strong&gt;overwrites&lt;/strong&gt; whatever is in the &lt;code&gt;n8n_data&lt;/code&gt; volume, and each step only runs if the one before it worked, so n8n is not started on half-restored data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /opt/n8n &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
docker compose stop n8n &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
docker volume create n8n_data &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
docker run --rm -v n8n_data:/data -v /opt/n8n:/backup:ro alpine \
  sh -c &lt;span class="s1"&gt;'find /data -mindepth 1 -maxdepth 1 -exec rm -rf -- {} + &amp;amp;&amp;amp; tar xzf /backup/n8n-backup.tgz -C /data'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
docker compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If any step prints an error, stop and fix that before going on.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Updates
&lt;/h2&gt;

&lt;p&gt;Pick the new version in the n8n release notes and read what changed (especially for a new major version). Take a backup as above, change the version number in &lt;code&gt;compose.yaml&lt;/code&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /opt/n8n
docker compose pull &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; docker compose up -d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If something breaks, put the old version number back and run the same command; restore the backup if the new version already changed your data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that commonly go wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Webhooks show &lt;code&gt;localhost&lt;/code&gt;&lt;/strong&gt; - &lt;code&gt;WEBHOOK_URL&lt;/code&gt; is missing or wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caddy cannot get a certificate&lt;/strong&gt; - the A record does not point to this server yet, a stale AAAA record points elsewhere, ports 80/443 are blocked by a provider firewall, or something else is already using them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Connection lost" in the editor&lt;/strong&gt; - n8n restarting, a network hiccup or the server running out of memory are common causes. Another possible one is an extra proxy or CDN in front that does not pass WebSockets (Caddy itself passes them by default).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lost credentials after moving servers&lt;/strong&gt; - the new instance has a different encryption key. Restore the whole &lt;code&gt;n8n_data&lt;/code&gt; volume, not just workflow JSON.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;That is the whole setup: one file, two containers, HTTPS, a private first login, a firewall and a backup you can actually restore. From here you can add a PostgreSQL database or queue mode when you outgrow the defaults, but for most personal and small-team automation this is plenty.&lt;/p&gt;

&lt;p&gt;I work on &lt;a href="https://hostingbaba.net" rel="noopener noreferrer"&gt;HostingBaba&lt;/a&gt;, a Linux and Windows VPS host, and we keep a longer version of this guide with plan sizing notes at &lt;a href="https://hostingbaba.net/n8n-vps" rel="noopener noreferrer"&gt;hostingbaba.net/n8n-vps&lt;/a&gt;. The steps above work on any Ubuntu 24.04 server, wherever it runs.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;n8n is a trademark of n8n GmbH. This post is not affiliated with or endorsed by n8n.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>n8n</category>
      <category>selfhosted</category>
      <category>docker</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>My SMTP relay broke DKIM twice. Here's how I found both bugs.</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Thu, 29 Oct 2026 23:01:15 +0000</pubDate>
      <link>https://dev.to/jeemmo/my-smtp-relay-broke-dkim-twice-heres-how-i-found-both-bugs-46g6</link>
      <guid>https://dev.to/jeemmo/my-smtp-relay-broke-dkim-twice-heres-how-i-found-both-bugs-46g6</guid>
      <description>&lt;p&gt;I run several small sites on one Ubuntu VPS. Mail goes out through Postfix, gets signed by OpenDKIM, and then leaves through a shared SMTP relay (Hostinger, which sends onward via MailChannels). I don't send directly from the VPS because a fresh IP has no sending reputation.&lt;/p&gt;

&lt;p&gt;DKIM looked fine on paper. &lt;code&gt;opendkim-testkey&lt;/code&gt; said &lt;code&gt;key OK&lt;/code&gt;. The mail log showed &lt;code&gt;DKIM-Signature field added&lt;/code&gt;. And Google's DMARC reports still said &lt;strong&gt;dkim=fail&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It turned out to be two separate bugs, with the same cause: &lt;strong&gt;the relay changes the message after I sign it.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: the body changed
&lt;/h2&gt;

&lt;p&gt;The first failure came from website contact forms. Their emails had long lines and were sent as &lt;code&gt;8bit&lt;/code&gt;. On the way out, the relay re-wrapped those long lines. The body changed, so the body hash (&lt;code&gt;bh=&lt;/code&gt;) no longer matched, so DKIM failed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; send the body as quoted-printable. QP lines are already short (76 characters), so the relay has nothing to re-wrap. In PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$qpBody&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;quoted_printable_encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;str_replace&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\r\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="se"&gt;\r\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="nv"&gt;$body&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="c1"&gt;// header: Content-Transfer-Encoding: quoted-printable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, some domains passed. One still failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 2: a header changed
&lt;/h2&gt;

&lt;p&gt;This one was harder, because the body hash was now correct. In Gmail's &lt;strong&gt;Show original&lt;/strong&gt;, the &lt;code&gt;bh=&lt;/code&gt; in my DKIM signature matched the &lt;code&gt;bh=&lt;/code&gt; in Google's own ARC signature. So the body arrived untouched, and the problem had to be a signed &lt;strong&gt;header&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;My signature had &lt;code&gt;h=From:To:Subject:Date:From&lt;/code&gt;. I compared the headers I sent with the ones Gmail received:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sent:&lt;/strong&gt; &lt;code&gt;Date: Thu, 29 Oct 2026 22:17:14 -0000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Received:&lt;/strong&gt; &lt;code&gt;Date: Thu, 29 Oct 2026 22:17:14 +0000 (UTC)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same time, different text. The relay had removed my &lt;code&gt;Date&lt;/code&gt; header and added its own, in its own format. And &lt;code&gt;Date&lt;/code&gt; is a signed header, so one changed character breaks the signature.&lt;/p&gt;

&lt;p&gt;Why only some emails? My website forms (PHP &lt;code&gt;mail()&lt;/code&gt;) never set a Date header. Postfix adds one in exactly the format the relay uses, so the relay's rewrite produced identical text. Only my Python scripts set their own Date with &lt;code&gt;email.utils.formatdate()&lt;/code&gt;, which writes &lt;code&gt;-0000&lt;/code&gt;. That's a valid date, just not the same string.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I proved it
&lt;/h2&gt;

&lt;p&gt;I sent test emails to a Gmail inbox and checked &lt;strong&gt;Show original&lt;/strong&gt; on each:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test&lt;/th&gt;
&lt;th&gt;Date header&lt;/th&gt;
&lt;th&gt;DKIM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;own, &lt;code&gt;-0000&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;FAIL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;own, &lt;code&gt;+0000&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;FAIL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;none (Postfix adds it)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;PASS&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Even a "correct-looking" &lt;code&gt;+0000&lt;/code&gt; failed, because the relay also appends &lt;code&gt;(UTC)&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Don't set a Date header in scripts that send through the relay.&lt;/strong&gt; Let Postfix add it. Postfix writes it in the same format the relay produces, so the signed text survives.&lt;/p&gt;

&lt;p&gt;The other option is to stop signing &lt;code&gt;Date&lt;/code&gt; in OpenDKIM (&lt;code&gt;SignHeaders&lt;/code&gt;). I didn't, because Date is one of the headers the DKIM spec recommends signing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd check first next time
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Read the &lt;strong&gt;DMARC aggregate reports&lt;/strong&gt;. They tell you which selector and which source IP failed.&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Show original&lt;/strong&gt;, compare your &lt;code&gt;bh=&lt;/code&gt; with the receiver's ARC &lt;code&gt;bh=&lt;/code&gt;. If they match, the body is fine and a &lt;strong&gt;header&lt;/strong&gt; changed.&lt;/li&gt;
&lt;li&gt;Diff the headers you sent against the headers received. Any signed header that differs is your bug.&lt;/li&gt;
&lt;li&gt;Remember that a relay can rewrite both the body and the headers.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Mail still got delivered the whole time, because my DMARC policy was &lt;code&gt;p=none&lt;/code&gt;. But a failing signature is exactly the kind of thing that quietly moves you into spam, and I'd rather find it from a report than from a client who never got my reply.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Azeem. I build and fix web systems (WooCommerce, Stripe, AI features) at &lt;a href="https://jeemmo.com" rel="noopener noreferrer"&gt;jeemmo.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>email</category>
      <category>devops</category>
      <category>linux</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How I stop an LLM from hallucinating in production (RAG + entity-match + MCP)</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Sat, 12 Sep 2026 12:24:40 +0000</pubDate>
      <link>https://dev.to/jeemmo/how-i-stop-an-llm-from-hallucinating-in-production-rag-entity-match-mcp-2ndj</link>
      <guid>https://dev.to/jeemmo/how-i-stop-an-llm-from-hallucinating-in-production-rag-entity-match-mcp-2ndj</guid>
      <description>&lt;p&gt;How do you make an LLM answer questions about real-world entities — companies, people, records — without it confidently making things up?&lt;/p&gt;

&lt;p&gt;I build &lt;a href="https://verivello.org" rel="noopener noreferrer"&gt;Verivello&lt;/a&gt;, a live AI agent that answers questions about any UK company from official registers (Companies House, HM Land Registry, FCA, The Gazette, sanctions lists). In that domain, a &lt;em&gt;wrong&lt;/em&gt; director or ownership figure is worse than no answer at all. So "don't hallucinate" isn't a nice-to-have — it's the whole product.&lt;/p&gt;

&lt;p&gt;Here's the system design I use to keep an LLM grounded in production. No prompt-magic, no fine-tuning. Just architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;LLMs are fluent, and fluency reads as confidence. Ask a model "who is the director of Acme Ltd?" and it will happily produce a plausible name — whether or not it actually knows. For casual use that's fine. For anything a business acts on, it's a liability.&lt;/p&gt;

&lt;p&gt;The usual first instinct is "add RAG." Retrieval-augmented generation helps, but on its own it isn't enough: retrieval can pull the &lt;em&gt;wrong&lt;/em&gt; record, and the model can still paraphrase it into something subtly false. Grounding is a pipeline, not a single step.&lt;/p&gt;

&lt;h2&gt;
  
  
  The system at a glance
&lt;/h2&gt;



&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    U[User question] --&amp;gt; C[Classifier: intent + entity]
    C --&amp;gt; R[Engine router]
    R --&amp;gt; T[Tool / function-calling loop]
    T --&amp;gt; M[MCP tool servers]
    M --&amp;gt; S1[Companies House]
    M --&amp;gt; S2[Land Registry]
    M --&amp;gt; S3[FCA / ICO]
    M --&amp;gt; S4[Gazette / Sanctions]
    S1 &amp;amp; S2 &amp;amp; S3 &amp;amp; S4 --&amp;gt; V[Grounding layer:&amp;lt;br/&amp;gt;verbatim output + entity-match]
    V --&amp;gt; A[Streamed, source-cited answer]
    A --&amp;gt; U&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Two rules in that &lt;strong&gt;grounding layer&lt;/strong&gt; do most of the anti-hallucination work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 1 — Verbatim tool output, not model memory
&lt;/h2&gt;

&lt;p&gt;The model is &lt;strong&gt;never&lt;/strong&gt; allowed to recall a fact about an entity. Every fact in an answer must come from a tool call whose raw output is passed through unchanged. The model's job is to &lt;em&gt;explain and cite&lt;/em&gt; retrieved records — not to &lt;em&gt;know&lt;/em&gt; them.&lt;/p&gt;

&lt;p&gt;Concretely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tools return structured records (JSON), and that JSON is placed in context verbatim.&lt;/li&gt;
&lt;li&gt;The system prompt instructs the model to answer &lt;strong&gt;only&lt;/strong&gt; from provided records and to cite them.&lt;/li&gt;
&lt;li&gt;If a fact isn't in the retrieved records, the model must not supply it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This one rule kills the most common failure mode: the model "filling in" a field from training data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 2 — Entity-match verification
&lt;/h2&gt;

&lt;p&gt;This is the rule most people miss. Name-search APIs happily return &lt;em&gt;a&lt;/em&gt; record for a query — often the wrong one. Search "Smith Consulting" and you might get any of dozens. If you feed that straight into context, you've grounded the model in the wrong company. Now it's confidently wrong &lt;em&gt;with a citation&lt;/em&gt;, which is worse.&lt;/p&gt;

&lt;p&gt;So before any record is allowed into the grounded context, it's re-verified against the entity the user actually asked about. Illustrative shape (not production code):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Reject records that don't actually match the entity the user asked about.&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;verifyMatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;record&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// Strongest signal: exact identifier match.&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;companyNumber&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;record&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;companyNumber&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;companyNumber&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;record&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;companyNumber&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="c1"&gt;// Otherwise: normalised name + a corroborating signal.&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;record&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;normalise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;similarity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.92&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nf"&gt;sameIncorporationYear&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;record&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Only verified records are allowed into the grounded context.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;grounded&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;toolResults&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;verifyMatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;query&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mismatches are dropped, not shown. The model only ever sees records that provably belong to the queried entity.&lt;/p&gt;

&lt;h2&gt;
  
  
  The golden rule — fail closed
&lt;/h2&gt;

&lt;p&gt;If nothing verifies, the agent says so. &lt;strong&gt;No verified record → an honest "I don't know," never a plausible guess.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is a product decision as much as an engineering one. In due diligence, a confident wrong answer is the expensive failure mode — far more costly than an honest gap. So the whole pipeline is built to fail &lt;em&gt;closed&lt;/em&gt;: when in doubt, refuse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why MCP for the tool layer
&lt;/h2&gt;

&lt;p&gt;Each data source is exposed as a typed &lt;a href="https://modelcontextprotocol.io" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; (MCP) tool server. That gives a few real benefits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Isolation &amp;amp; testability&lt;/strong&gt; — each source is an independent server with a typed schema, unit-testable on its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reuse&lt;/strong&gt; — the same tool servers work across clients (Claude Code, Claude Desktop, the product itself).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A clean boundary&lt;/strong&gt; — the model requests &lt;em&gt;what&lt;/em&gt; it needs; the tool layer owns &lt;em&gt;how&lt;/em&gt; it's fetched and verified.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I open-sourced a small, keyless example of this pattern — an MCP server exposing UK public-data tools, with unit tests + CI — here: &lt;strong&gt;&lt;a href="https://github.com/cavitnation/mcp-uk-tools" rel="noopener noreferrer"&gt;github.com/cavitnation/mcp-uk-tools&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;If you're wiring an LLM up to real data, grounding is a pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Verbatim tool output&lt;/strong&gt; — the model explains and cites; it never recalls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entity-match verification&lt;/strong&gt; — prove each record belongs to the queried entity before using it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail closed&lt;/strong&gt; — no verified record, no answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP tool servers&lt;/strong&gt; — a clean, testable, reusable boundary between model and data.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's the difference between a demo and something a business can actually trust to act.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I wrote up the full architecture (with the diagram, no product code) here: &lt;a href="https://github.com/cavitnation/verivello-architecture" rel="noopener noreferrer"&gt;github.com/cavitnation/verivello-architecture&lt;/a&gt;. I build production AI and backend systems like this for clients at &lt;a href="https://jeemmo.com/case-studies/" rel="noopener noreferrer"&gt;jeemmo.com&lt;/a&gt; — happy to talk shop in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>webdev</category>
      <category>llm</category>
    </item>
    <item>
      <title>Hi DEV — I build backend-heavy web apps</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Tue, 08 Sep 2026 10:38:02 +0000</pubDate>
      <link>https://dev.to/jeemmo/hi-dev-i-build-backend-heavy-web-apps-16ji</link>
      <guid>https://dev.to/jeemmo/hi-dev-i-build-backend-heavy-web-apps-16ji</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr5l4tqzkntjsi0srb89t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr5l4tqzkntjsi0srb89t.png" alt="Jeemmo — backend-heavy web app development" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm Azeem — I build backend-heavy web apps solo as &lt;a href="https://jeemmo.com/" rel="noopener noreferrer"&gt;Jeemmo&lt;/a&gt;, since 2011, for UK / EU / US clients.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I do:&lt;/strong&gt; custom web apps, real-time features (WebSockets), Stripe / payment integrations, rescuing old PHP, and making slow WooCommerce stores fast.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; PHP / Laravel, Node.js, Python, MySQL, Redis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A few things I've built:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://archstudent.com/" rel="noopener noreferrer"&gt;ArchStudent&lt;/a&gt; — content platform for architecture students&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://quranroshni.com/" rel="noopener noreferrer"&gt;Quran Roshni&lt;/a&gt; — fast, ad-free Quran reader (~30 languages)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://worldhotsprings.com/" rel="noopener noreferrer"&gt;World Hot Springs&lt;/a&gt; — data-pipeline world directory&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://goodping.com/" rel="noopener noreferrer"&gt;GoodPing&lt;/a&gt; — free network tools + uptime monitoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see more of what I build at &lt;a href="https://jeemmo.com/" rel="noopener noreferrer"&gt;jeemmo.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>wordpress</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Are coders still getting hired now that AI can write code?</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Fri, 31 Oct 2025 21:49:12 +0000</pubDate>
      <link>https://dev.to/jeemmo/are-coders-still-getting-hired-now-that-ai-can-write-code-3oa6</link>
      <guid>https://dev.to/jeemmo/are-coders-still-getting-hired-now-that-ai-can-write-code-3oa6</guid>
      <description></description>
    </item>
    <item>
      <title>Wordpress theme development - version update function</title>
      <dc:creator>Azeem Javed</dc:creator>
      <pubDate>Sat, 03 Jun 2023 12:00:31 +0000</pubDate>
      <link>https://dev.to/jeemmo/wordpress-theme-development-version-update-function-2mpi</link>
      <guid>https://dev.to/jeemmo/wordpress-theme-development-version-update-function-2mpi</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;how to add wordpress theme update function in source files? do i need to add a code in function.php ?&lt;/p&gt;

&lt;p&gt;is there any standard code to add? what other files i need to add update functionality code?&lt;/p&gt;

&lt;p&gt;i want to do this.&lt;br&gt;
1- I will take wordpress standard theme files from underscores.me and make it as version 1.0&lt;br&gt;
2- Make some fancy work on it, i will make Landing Pages/sub pages.&lt;br&gt;
3- Make theme documentation for users to read and install.&lt;br&gt;
4- upload on envato market.&lt;/p&gt;

&lt;p&gt;So after 2-3 months if i upgrade my theme as in version 1.1&lt;br&gt;
so how i noptify this to my envato users? where i need to add code in my theme for this function?&lt;/p&gt;

&lt;p&gt;I know i can take api token generate from envato api website and update this in envato plugin in my wordpress dashboard.&lt;/p&gt;

&lt;p&gt;is there anyone doing the same job or have done it?&lt;/p&gt;

&lt;p&gt;Please guide&lt;br&gt;
Best Regards&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
