<?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: Ridh Grg</title>
    <description>The latest articles on DEV Community by Ridh Grg (@ridhgrg).</description>
    <link>https://dev.to/ridhgrg</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%2F4232987%2F50289e38-968a-4255-bef8-d28f7f42368e.png</url>
      <title>DEV Community: Ridh Grg</title>
      <link>https://dev.to/ridhgrg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ridhgrg"/>
    <language>en</language>
    <item>
      <title>What to put in a starter price book for your trade</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Wed, 18 Nov 2026 15:00:03 +0000</pubDate>
      <link>https://dev.to/closequotely/what-to-put-in-a-starter-price-book-for-your-trade-5fhb</link>
      <guid>https://dev.to/closequotely/what-to-put-in-a-starter-price-book-for-your-trade-5fhb</guid>
      <description>&lt;p&gt;Start with a template for your trade, then replace the placeholder lines with your own rates. You do not need a perfect price book to win work. You need lines you can trust and adjust as you learn.&lt;/p&gt;

&lt;p&gt;The hardest part of a first price book is the blank page. A starter template gives you the categories and line structure most jobs need, so you spend your time on rates instead of on layout. CloseQuotely includes templates and starter price books for 20 trades, and that is a reasonable place to begin.&lt;/p&gt;

&lt;h2&gt;
  
  
  What belongs in it
&lt;/h2&gt;

&lt;p&gt;A useful price book answers one question per line: what does this piece of work cost? Keep the structure simple and repeatable.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Labor by task or hour.&lt;/strong&gt; Pick one method and stay consistent so you can compare jobs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Materials with a unit.&lt;/strong&gt; Give every material a unit and a quantity, even if the quantity is one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Common extras.&lt;/strong&gt; Disposal, permits, travel, or after-hours work, if you charge for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discounts.&lt;/strong&gt; Note when you give them and how much, rather than deciding in the moment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tax lines.&lt;/strong&gt; Put tax in the right place so it lands on the right lines.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Build it in the same place you quote
&lt;/h2&gt;

&lt;p&gt;A price book that lives in a spreadsheet and a quote that lives in an email will drift apart. Keeping them together saves re-typing and stops old rates slipping into new work.&lt;/p&gt;

&lt;p&gt;CloseQuotely's quotes can carry sections, quantities, units, labor and materials, discounts, tax on the right lines, and a deposit. That set of fields maps closely to how a price book is organized, so you can translate a template line directly into a quote line. The app is quoting software for the trades, and it works on the phone in your truck and the laptop at home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start from the template, then make it yours
&lt;/h2&gt;

&lt;p&gt;Open the template for your trade and work through it line by line. For each line, ask three things: do I do this work, what do I charge for it, and how long does it take? If the answer is no, delete the line. A shorter book you actually use beats a long one you avoid.&lt;/p&gt;

&lt;p&gt;Adjust the lines to your own rates as you go. Start with what you charged on your last few jobs, then correct anything that came out wrong. With CloseQuotely you can build a detailed, professional quote for any trade in minutes, so a rough first draft is not a big commitment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use it on a real job
&lt;/h2&gt;

&lt;p&gt;A price book only improves when it meets real customers. Send the quote with your rates in it and watch what happens. Customers review a clean, branded quote and accept with a typed signature. You can see when a customer opens your quote and how often, which tells you whether the price or the timing is the issue.&lt;/p&gt;

&lt;p&gt;It helps to offer choices. Your customer picks options and accepts online, and CloseQuotely follows up until they decide. Polite reminders go out on your schedule and stop automatically when the customer accepts, declines, or replies. Your customer never needs an account, so there is nothing to set up on their end.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens after acceptance
&lt;/h2&gt;

&lt;p&gt;Every accepted quote becomes a job. Booking a job drafts the invoice from the quote, with the deposit already credited, so you are not rebuilding the same numbers a third time. Each crew member gets a private phone link to see their jobs and mark them started and done, with no logins to set up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it current
&lt;/h2&gt;

&lt;p&gt;Rates move. Pick a rhythm, such as once a quarter, and review the lines you use most. CloseQuotely says it will tell you before a price changes, so you are not caught out mid-job.&lt;/p&gt;

&lt;p&gt;The product is in early access, so it is changing quickly. Build your book so it survives that: keep the rates in your own head and on paper too, and treat any tool as the place you use them, not the only place they exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to try it
&lt;/h2&gt;

&lt;p&gt;The Free plan is $0 per month, with 10 quotes and 50 follow-up emails a month, and no card is required. The Starter plan is $4 per month, with 100 quotes and 500 follow-up emails a month. The Pro plan is $15 per month, with 1,000 quotes and 2,000 follow-up emails a month.&lt;/p&gt;

&lt;p&gt;Open the template for your trade and adjust the lines to your own rates. That first pass is the whole job.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>No floats near money: how our free estimate template matches the app to the cent</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:28:26 +0000</pubDate>
      <link>https://dev.to/closequotely/no-floats-near-money-how-our-free-estimate-template-matches-the-app-to-the-cent-1jg</link>
      <guid>https://dev.to/closequotely/no-floats-near-money-how-our-free-estimate-template-matches-the-app-to-the-cent-1jg</guid>
      <description>&lt;p&gt;CloseQuotely has a free estimate template: a page where a contractor types lines, quantities and prices, sees a total and prints it. No account, nothing saved on our side. It's a marketing page, and it would be easy to write its math in ten minutes with &lt;code&gt;parseFloat&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We didn't, because the app's real quotes use the same lines, and a free page that's a cent off the product is a bad first impression. So the page imports the product's own quote math. Here's what that math does differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Floats get money wrong in ordinary cases
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;parseFloat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"1.15"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;          &lt;span class="c1"&gt;// 114.99999999999999&lt;/span&gt;
&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.005&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;      &lt;span class="c1"&gt;// 1, not 1.01&lt;/span&gt;
&lt;span class="mf"&gt;0.1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;                          &lt;span class="c1"&gt;// 0.30000000000000004&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first one is the dangerous one: floor it to get cents and $1.15 becomes $1.14.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parse text straight into integers
&lt;/h2&gt;

&lt;p&gt;Money is integer cents, and it never passes through a float. The typed string is checked with a pattern and split, so "1.15" becomes 1 × 100 + 15:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;MONEY_PATTERN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;/^&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;\&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;6&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;d&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;2&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="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;parseMoneyToCents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;trimmed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&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="nf"&gt;replaceAll&lt;/span&gt;&lt;span class="p"&gt;(&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="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="no"&gt;MONEY_PATTERN&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trimmed&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="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;whole&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fraction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;trimmed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cents&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;whole&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="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;parseInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fraction&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;padEnd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"0"&lt;/span&gt;&lt;span class="p"&gt;)&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="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isSafeInteger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;cents&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&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;Quantities get the same treatment in thousandths ("1.5" hours is 1500), and percentages in thousandths of a percent (8.875% tax is 8875), so every number in a quote is an integer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Round once, half up, with BigInt
&lt;/h2&gt;

&lt;p&gt;A line total is quantity × price, which lands in thousandths of a cent, so it has to be rounded somewhere. We round once per line, half up, in BigInt so a big job can't overflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;divRound&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numerator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;denominator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;denominator&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numerator&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2n&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;denominator&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;denominator&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2n&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="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;lineTotalCents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quantityMilli&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unitPriceCents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;divRound&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;BigInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;quantityMilli&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nc"&gt;BigInt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;unitPriceCents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1000n&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1.5 hours at $85.50 is 1500 × 8550 / 1000 = 12,825 cents, exactly $128.25. Discounts and tax are percentages of a cent amount, rounded the same way, each at its own documented step. Writing down where each rounding happens matters as much as the rounding itself: two pages that round at different steps disagree by a cent on some totals.&lt;/p&gt;

&lt;h2&gt;
  
  
  The free page shares the module
&lt;/h2&gt;

&lt;p&gt;The estimate page doesn't have its own math. It calls the same &lt;code&gt;calculateQuoteTotals&lt;/code&gt; the app uses for real quotes, so a contractor who types the same lines into both sees the same total.&lt;/p&gt;

&lt;p&gt;The rest of the page is small: the draft lives in &lt;code&gt;localStorage&lt;/code&gt; under one key per trade (wrapped in try/catch, since private windows can refuse storage), and printing is &lt;code&gt;window.print()&lt;/code&gt; with Tailwind's &lt;code&gt;print:hidden&lt;/code&gt; on the form so only the estimate prints.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Keep money in integer cents, and parse it from the string, not through &lt;code&gt;parseFloat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Pick one rounding rule and one place it happens, and write it down.&lt;/li&gt;
&lt;li&gt;If a marketing page does product math, import the product's code instead of rewriting it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page is at &lt;a href="https://closequotely.com/free-estimate-template?ref=devto" rel="noopener noreferrer"&gt;closequotely.com/free-estimate-template&lt;/a&gt;. I build &lt;a href="https://closequotely.com/?ref=devto" rel="noopener noreferrer"&gt;CloseQuotely&lt;/a&gt;, quoting and invoicing for small trade businesses, free for 10 quotes a month.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Letting strangers ping any Minecraft server without turning our backend into an SSRF tool</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:26:37 +0000</pubDate>
      <link>https://dev.to/mineops/letting-strangers-ping-any-minecraft-server-without-turning-our-backend-into-an-ssrf-tool-1pf7</link>
      <guid>https://dev.to/mineops/letting-strangers-ping-any-minecraft-server-without-turning-our-backend-into-an-ssrf-tool-1pf7</guid>
      <description>&lt;p&gt;We added a free page to MineOps where anyone can type a Minecraft server address and see what the multiplayer list would show: online or not, version, players and response time. No account.&lt;/p&gt;

&lt;p&gt;The feature is a few lines. The risk is the interesting part: our server now opens a TCP or UDP connection to whatever address a stranger types. Done naively, that's a server-side request forgery (SSRF) tool pointed at our own network, our cloud provider's metadata service and everyone's databases.&lt;/p&gt;

&lt;p&gt;Here's what the check does before it connects to anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Every DNS answer must be public
&lt;/h2&gt;

&lt;p&gt;A name can resolve to several addresses. If even one is private, we refuse the whole name, so a record can't mix a real server with an internal one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;resolve_public&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;answers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getaddrinfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SOCK_STREAM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;addresses&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fromkeys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;answers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;any&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;addresses&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;Refused&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"That name leads to a private network, so it can't be checked from here."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;addresses&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&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;public()&lt;/code&gt; leans on Python's &lt;code&gt;ipaddress&lt;/code&gt; module, plus one trap it doesn't cover for you: IPv4 hidden inside IPv6.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;address&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ipaddress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ip_address&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"%"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ipaddress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;IPv6Address&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;inner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ipv4_mapped&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sixtofour&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;teredo&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&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="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;inner&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;inner&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_global&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_multicast&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_reserved&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;is_global&lt;/code&gt; already rules out private ranges, loopback, link-local (including 169.254.169.254, the metadata address) and the shared &lt;code&gt;100.64.0.0/10&lt;/code&gt; carrier-grade NAT range. Without the IPv6 unwrapping, &lt;code&gt;::ffff:10.0.0.5&lt;/code&gt; would slip past.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Connect to the address you checked, not the name
&lt;/h2&gt;

&lt;p&gt;If you check a name and then hand the name to your socket library, it resolves again. A DNS server with a short TTL can answer "public" the first time and "internal" the second. That's DNS rebinding. So the check resolves once and connects to that exact IP. The name only goes into the Minecraft handshake, where the game itself puts it.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Follow SRV records, under the same rules
&lt;/h2&gt;

&lt;p&gt;Java players often type a bare domain, and the game looks up a &lt;code&gt;_minecraft._tcp&lt;/code&gt; SRV record to find the real host and port. We do the same, and the record's target and port go through the same checks as a typed address. Otherwise an SRV record becomes a way around them.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Only ports a game server would use
&lt;/h2&gt;

&lt;p&gt;Ports below 1024 are refused, and so are well-known database, cache, queue, container and admin ports. Names that only mean something on a home network (&lt;code&gt;.local&lt;/code&gt;, &lt;code&gt;.lan&lt;/code&gt;, &lt;code&gt;.internal&lt;/code&gt;, &lt;code&gt;.home.arpa&lt;/code&gt; and friends) are refused before any lookup.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Say only a client's first words
&lt;/h2&gt;

&lt;p&gt;The check sends what a Minecraft client sends to list a server, and nothing else: Java's status request or Bedrock's unconnected ping. It reads at most 128 KiB, with 4-second timeouts.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Count before connecting
&lt;/h2&gt;

&lt;p&gt;Limits are checked before any socket opens: 10 checks a minute and 60 an hour per visitor, 12 a minute per target, and 600 a minute for everyone together. That's plenty for a person and useless for a scan.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's left
&lt;/h2&gt;

&lt;p&gt;A public game server will see our address in its connection log, and a server that hides its status shows as reachable with its status hidden. Both are fine for a status checker.&lt;/p&gt;

&lt;p&gt;If you build anything that connects to user-supplied addresses, a webhook tester, a link previewer or an uptime checker, the same list applies: check every answer, connect to what you checked, apply the rules to redirects and SRV records too, and rate limit before the socket.&lt;/p&gt;

&lt;p&gt;The checker is at &lt;a href="https://mineopsdash.com/minecraft-server-status?ref=devto" rel="noopener noreferrer"&gt;mineopsdash.com/minecraft-server-status&lt;/a&gt;. It's part of &lt;a href="https://mineopsdash.com/?ref=devto" rel="noopener noreferrer"&gt;MineOps&lt;/a&gt;, which watches Minecraft servers you host on your own Linux or Mac machine and alerts your Discord when one crashes, lags or fills its disk.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>python</category>
      <category>minecraft</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Our Pay button returned 403 Forbidden: Referrer-Policy: no-referrer makes the browser send Origin: null</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Fri, 13 Nov 2026 03:35:43 +0000</pubDate>
      <link>https://dev.to/closequotely/our-pay-button-returned-403-forbidden-referrer-policy-no-referrer-makes-the-browser-send-origin-3gpo</link>
      <guid>https://dev.to/closequotely/our-pay-button-returned-403-forbidden-referrer-policy-no-referrer-makes-the-browser-send-origin-3gpo</guid>
      <description>&lt;p&gt;For a few days this month, every customer who pressed &lt;strong&gt;Pay by card&lt;/strong&gt; on an invoice in &lt;a href="https://closequotely.com/?ref=devto" rel="noopener noreferrer"&gt;CloseQuotely&lt;/a&gt; landed on a bare page that said &lt;code&gt;Forbidden&lt;/code&gt;. Stripe was never contacted. Nothing in our tests failed. The cause was two security measures, each reasonable on its own, cancelling each other out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure 1: keep private links private
&lt;/h2&gt;

&lt;p&gt;Invoices and quotes live at unguessable links like &lt;code&gt;/i/&amp;lt;token&amp;gt;&lt;/code&gt;. Anyone holding the link can see the bill, so we don't want it leaking to other sites through the &lt;code&gt;Referer&lt;/code&gt; header. Those pages set:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"referrer"&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"no-referrer"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Measure 2: refuse cross-site money requests
&lt;/h2&gt;

&lt;p&gt;Endpoints that start a payment check where the request came from, as a CSRF defence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;assertFinancialRequestOrigin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Pick&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"get"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sec-fetch-site"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"cross-site"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;APP_URL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;origin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;AppError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"forbidden"&lt;/span&gt;&lt;span class="p"&gt;,&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="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Together: Origin: null
&lt;/h2&gt;

&lt;p&gt;The Fetch spec has a rule that's easy to miss: when a request's referrer policy is &lt;code&gt;no-referrer&lt;/code&gt;, a POST's &lt;code&gt;Origin&lt;/code&gt; header is serialized as the string &lt;code&gt;null&lt;/code&gt;. So the customer's own browser, posting the Pay form from our own page, sent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;Origin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="n"&gt;Sec&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Fetch&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Site&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;same&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;origin&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;"null"&lt;/code&gt; isn't our origin, so the check threw. We reproduced it in Chromium on a local build: &lt;code&gt;POST /i/&amp;lt;token&amp;gt;/pay&lt;/code&gt; got a 403 with exactly those headers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why nothing caught it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Integration tests call the route handler directly, with no browser and no &lt;code&gt;Origin&lt;/code&gt; header, so the check never ran against real browser headers.&lt;/li&gt;
&lt;li&gt;Browser tests run without Stripe configured, and without Stripe the Pay button isn't shown, so no test ever pressed it.&lt;/li&gt;
&lt;li&gt;The refusal wasn't logged, so the only signal was a customer saying "the link is broken".&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ol&gt;
&lt;li&gt;Invoice and quote pages now use &lt;code&gt;Referrer-Policy: same-origin&lt;/code&gt;. Other sites still get no referrer, so the private link stays private, and same-site POSTs carry the real &lt;code&gt;Origin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The check accepts &lt;code&gt;Origin: null&lt;/code&gt; only when the browser also says the request came from the same site:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sec-fetch-site"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fromOurOwnPage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"null"&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"same-origin"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;site&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"cross-site"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;APP_URL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;origin&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;fromOurOwnPage&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;ol&gt;
&lt;li&gt;A refusal now sends the customer back to the bill with a message, and logs why.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;ul&gt;
&lt;li&gt;If you set &lt;code&gt;no-referrer&lt;/code&gt; on a page with a form, test that form's POST in a real browser against your origin checks.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Sec-Fetch-Site&lt;/code&gt; is a better signal than &lt;code&gt;Origin&lt;/code&gt; alone: browsers set it, and pages can't override it.&lt;/li&gt;
&lt;li&gt;Make your security refusals loud in logs. A silent 403 looks like a broken link to everyone, including you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I build CloseQuotely, quoting and invoicing for small trade businesses. Customers accept quotes and pay deposits online, which is exactly the path this bug broke. Card payments have been working again since the fix, and we've since run a real card payment through it end to end.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>security</category>
      <category>nextjs</category>
      <category>debugging</category>
    </item>
    <item>
      <title>MCStatusBot is gone. Here's a 40-line script that keeps your Minecraft server's status in Discord</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Fri, 13 Nov 2026 03:35:01 +0000</pubDate>
      <link>https://dev.to/mineops/mcstatusbot-is-gone-heres-a-40-line-script-that-keeps-your-minecraft-servers-status-in-discord-3o8f</link>
      <guid>https://dev.to/mineops/mcstatusbot-is-gone-heres-a-40-line-script-that-keeps-your-minecraft-servers-status-in-discord-3o8f</guid>
      <description>&lt;p&gt;MCStatusBot, the bot a lot of Discord communities used to show whether their Minecraft server was online, went offline on 1 September 2026. If your &lt;code&gt;#server-status&lt;/code&gt; channel has been frozen since then, this post gets it working again with a short Python script and a Discord webhook. No bot account, no open ports.&lt;/p&gt;

&lt;p&gt;The script keeps &lt;strong&gt;one&lt;/strong&gt; message in the channel and edits it every minute, so the channel never fills up with status posts:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🟢 &lt;strong&gt;play.example.com&lt;/strong&gt; is online: 3/20 players&lt;br&gt;
checked 14:02 UTC&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;ul&gt;
&lt;li&gt;Python 3.9 or newer on any machine that's always on (it doesn't have to be the server).&lt;/li&gt;
&lt;li&gt;The &lt;a href="https://pypi.org/project/mcstatus/" rel="noopener noreferrer"&gt;mcstatus&lt;/a&gt; library: &lt;code&gt;pip install mcstatus&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A Discord webhook: &lt;strong&gt;Server Settings → Integrations → Webhooks → New Webhook&lt;/strong&gt;, pick the channel, &lt;strong&gt;Copy Webhook URL&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The script
&lt;/h2&gt;

&lt;p&gt;Save this as &lt;code&gt;mc_discord_status.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""Keep one Discord message showing whether a Minecraft server is up."""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;

&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mcstatus&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;JavaServer&lt;/span&gt;

&lt;span class="no"&gt;SERVER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"MC_ADDRESS"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;           &lt;span class="c1"&gt;# e.g. play.example.com or 1.2.3.4:25565&lt;/span&gt;
&lt;span class="no"&gt;WEBHOOK&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DISCORD_WEBHOOK"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;     &lt;span class="c1"&gt;# the URL you copied from Discord&lt;/span&gt;
&lt;span class="no"&gt;STATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"STATE_FILE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"~/.mc-status-message"&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="nf"&gt;expanduser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check&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="k"&gt;try&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="nc"&gt;JavaServer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lookup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SERVER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&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="nf"&gt;status&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="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"🟢 **{SERVER}** is online: {status.players.online}/{status.players.max} players"&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;Exception&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"🔴 **{SERVER}** is offline"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;encode&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;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mc-status/1.0"&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="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;urlopen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&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;resp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&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;stamp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;utc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strftime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"%H:%M UTC"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{check()}\n-# checked {stamp}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;message_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;STATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&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="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;STATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;message_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"PATCH"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{WEBHOOK}/messages/{message_id}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;HTTPError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="c1"&gt;# 404: someone deleted the message, post a new one&lt;/span&gt;
                &lt;span class="k"&gt;raise&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{WEBHOOK}?wait=true"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="no"&gt;STATE&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;main&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;How it works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;JavaServer.lookup(...).status()&lt;/code&gt; does the same "server list ping" your Minecraft client does when it shows a server in the multiplayer list. It follows SRV records, so a domain without a port works.&lt;/li&gt;
&lt;li&gt;The first run posts a message with &lt;code&gt;?wait=true&lt;/code&gt;, which makes Discord return the message, and saves its id to a small state file.&lt;/li&gt;
&lt;li&gt;Every later run edits that message (&lt;code&gt;PATCH .../messages/&amp;lt;id&amp;gt;&lt;/code&gt;). If someone deletes it, Discord answers 404 and the script posts a fresh one.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-#&lt;/code&gt; is Discord's small grey "subtext" formatting, used here for the time of the last check.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Run it every minute
&lt;/h2&gt;

&lt;p&gt;Try it once by hand:&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="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MC_ADDRESS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"play.example.com"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;DISCORD_WEBHOOK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://discord.com/api/webhooks/..."&lt;/span&gt;
python3 mc_discord_status.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then add it to cron with &lt;code&gt;crontab -e&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;* * * * * MC_ADDRESS=play.example.com DISCORD_WEBHOOK=https://discord.com/api/webhooks/... /usr/bin/python3 /home/you/mc_discord_status.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Treat the webhook URL like a password: anyone who has it can post in that channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where a ping falls short
&lt;/h2&gt;

&lt;p&gt;A ping only sees what the server answers from outside. It can't tell a crash from a restart you did on purpose, it won't notice a server that's up but lagging, and a run that fails silently looks the same as "online" until someone checks.&lt;/p&gt;

&lt;p&gt;That's the gap I built &lt;a href="https://mineopsdash.com/?ref=devto" rel="noopener noreferrer"&gt;MineOps&lt;/a&gt; to fill for servers you run on your own Linux or Mac machine. A small agent next to the server (it only connects out, so no ports to open) keeps a live status message in Discord, marks planned stops and maintenance as planned, and sends separate alerts to your staff channel for crash loops, low TPS, a full disk or a failed backup. Two servers are free.&lt;/p&gt;

&lt;p&gt;If you only need the green dot back in &lt;code&gt;#server-status&lt;/code&gt;, the script above is all you need.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>minecraft</category>
      <category>discord</category>
      <category>python</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Put a Deposit on the Quote, and Let the Reminders Do the Chasing</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:00:02 +0000</pubDate>
      <link>https://dev.to/closequotely/put-a-deposit-on-the-quote-and-let-the-reminders-do-the-chasing-37n4</link>
      <guid>https://dev.to/closequotely/put-a-deposit-on-the-quote-and-let-the-reminders-do-the-chasing-37n4</guid>
      <description>&lt;p&gt;Put a deposit on the quote before you pick up a single sheet of material. That's the simplest way to stop fronting costs and then waiting on a check after the job. Then let polite reminders run on your schedule so you're not the one calling every few days.&lt;/p&gt;

&lt;p&gt;Here's how that works in CloseQuotely, and how to set it up whether you use the software or a notebook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a deposit on the quote matters
&lt;/h2&gt;

&lt;p&gt;When you buy materials up front, you carry the cost until the customer pays. A deposit moves part of that cost to the customer at the moment they say yes. It also tells you early whether they're serious. A customer who won't put down a deposit on a quote is a customer you'd likely have to chase later anyway.&lt;/p&gt;

&lt;p&gt;A quote can include a deposit. In CloseQuotely, quotes handle sections, quantities, units, labor and materials, discounts, tax on the right lines, and a deposit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when the customer accepts
&lt;/h2&gt;

&lt;p&gt;Customers review a clean, branded quote and accept with a typed signature. Your customer never needs an account, so there's no password to lose and no signup step to abandon.&lt;/p&gt;

&lt;p&gt;Every accepted quote becomes a job. When you book that job, the invoice drafts from the quote, with the deposit already credited.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reminders that stop on their own
&lt;/h2&gt;

&lt;p&gt;Chasing payment eats hours you could spend on the tools. Polite reminders go out on your schedule and stop automatically when the customer accepts, declines, or replies. That last part is the one people miss.&lt;/p&gt;

&lt;p&gt;While the quote is out, you can see when a customer opens your quote and how often. That tells you whether to call, wait, or move on to the next lead.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you're not using software yet
&lt;/h2&gt;

&lt;p&gt;You can apply the same two ideas with paper and a phone.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Put the deposit line on every quote.&lt;/strong&gt; Write it as a line item with a clear amount, so it's part of the price the customer agrees to, not an afterthought.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the reminder dates before you send.&lt;/strong&gt; Pick a day to check in, and a day to stop. Write both down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop when they answer.&lt;/strong&gt; Once the customer accepts, declines, or replies, the reminders end. Anything past that reads as pressure and costs you the goodwill you built.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Draft the invoice from the quote.&lt;/strong&gt; Copy the quote lines into the invoice and mark the deposit as already paid, so nobody double-bills or double-charges.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setting it up in CloseQuotely
&lt;/h2&gt;

&lt;p&gt;You can build a detailed, professional quote for any trade in minutes, and there are templates and starter price books for 20 trades if you'd rather start from something. Your customer picks options and accepts online, and CloseQuotely follows up until they decide. It works on the phone in your truck and the laptop at home.&lt;/p&gt;

&lt;p&gt;One thing to know: CloseQuotely is in early access, so it is changing quickly. The company says it will tell you before a price changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost of trying it
&lt;/h2&gt;

&lt;p&gt;The Free plan is $0 per month, with 10 quotes and 50 follow-up emails a month. It needs no card. If you quote more than that, the Starter plan is $4 per month, with 100 quotes and 500 follow-up emails a month.&lt;/p&gt;

&lt;p&gt;Set a deposit on your next quote with the free plan, no card required.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;Put a deposit on the quote so you're not fronting the whole job. Let reminders follow up on your schedule and stop when the customer answers. Draft the invoice from the quote with the deposit credited. Do those three things and you spend less time chasing and more time working.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why quotes stall after you send a price, and how to close the gap</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Wed, 11 Nov 2026 15:00:02 +0000</pubDate>
      <link>https://dev.to/closequotely/why-quotes-stall-after-you-send-a-price-and-how-to-close-the-gap-5718</link>
      <guid>https://dev.to/closequotely/why-quotes-stall-after-you-send-a-price-and-how-to-close-the-gap-5718</guid>
      <description>&lt;p&gt;A quote goes out. Then nothing. The price was fair, the customer seemed ready, and now the phone is quiet. That silence is the gap between "send me a price" and "yes."&lt;/p&gt;

&lt;p&gt;One way to shrink that gap is to make it easy to say yes and to keep a polite nudge going until the customer decides. CloseQuotely is quoting software for the trades, and that is what it is built to do.&lt;/p&gt;

&lt;p&gt;What helps after the quote goes out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your customer picks options and accepts online, and CloseQuotely follows up until they decide.&lt;/li&gt;
&lt;li&gt;Polite reminders go out on your schedule and stop automatically when the customer accepts, declines, or replies.&lt;/li&gt;
&lt;li&gt;Your customer never needs an account.&lt;/li&gt;
&lt;li&gt;You can see when a customer opens your quote and how often.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;p&gt;You need the customer's contact details, the scope of the job, and your pricing. CloseQuotely includes templates and starter price books for 20 trades, so you do not have to start from a blank page. You can work from the phone in your truck or the laptop at home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Walkthrough: send a quote and let the follow-up run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Build the quote. With CloseQuotely you can build a detailed, professional quote for any trade in minutes. Put in sections, quantities, units, labor and materials, discounts, tax on the right lines, and a deposit as needed.&lt;/li&gt;
&lt;li&gt;Set up the follow-up. Decide when reminders should go out. They go out on your schedule and stop automatically once the customer accepts, declines, or replies.&lt;/li&gt;
&lt;li&gt;Send it. Your customer reviews a clean, branded quote and accepts with a typed signature. They can pick options and accept online, and they never need an account.&lt;/li&gt;
&lt;li&gt;Let the reminders do their job. You do not have to chase by hand. The reminders run until the customer decides, then stop on their own.&lt;/li&gt;
&lt;li&gt;Watch for opens. You can see when a customer opens your quote and how often. That tells you whether to wait or call.&lt;/li&gt;
&lt;li&gt;Turn a yes into a job. Every accepted quote becomes a job. Booking the job drafts the invoice from the quote, with the deposit already credited.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  If the customer has questions
&lt;/h2&gt;

&lt;p&gt;A reply stops the reminders. That is by design. When they come back to you with a question, you answer it like any other call. The automated nudges stay out of the way until things move again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with your next quote
&lt;/h2&gt;

&lt;p&gt;Send your next quote on the free plan. It costs $0 per month, includes 10 quotes and 50 follow-up emails a month, and needs no card.&lt;/p&gt;

&lt;p&gt;CloseQuotely is in early access, so it is changing quickly. CloseQuotely says it will tell you before a price changes.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Put three prices on the quote instead of one</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Tue, 10 Nov 2026 15:00:05 +0000</pubDate>
      <link>https://dev.to/closequotely/put-three-prices-on-the-quote-instead-of-one-p4m</link>
      <guid>https://dev.to/closequotely/put-three-prices-on-the-quote-instead-of-one-p4m</guid>
      <description>&lt;h1&gt;
  
  
  Put three prices on the quote instead of one
&lt;/h1&gt;

&lt;p&gt;Instead of a single price, put three options on the quote: a good, a better, and a best. Your customer picks options and accepts online.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one price stalls
&lt;/h2&gt;

&lt;p&gt;A single price gives the customer only one move: haggle, or walk. Three options change the conversation. Instead of asking whether to hire you, they ask which level suits them. You set the range, and the customer picks a point inside it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it simple
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Good:&lt;/strong&gt; the job done safely and to code, with the basic materials.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Better:&lt;/strong&gt; the same job with a step up in materials or finish.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best:&lt;/strong&gt; the job with the extras a customer often wishes they had bought later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put the work and materials in each option so the difference is obvious. CloseQuotely handles sections, quantities, units, labor and materials, discounts, tax on the right lines, and a deposit, so each option can be built out properly. It also includes templates and starter price books for 20 trades, which saves a lot of typing when you build your first options quote.&lt;/p&gt;

&lt;p&gt;Three is enough. More than that turns a clear choice into homework.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the customer accepts
&lt;/h2&gt;

&lt;p&gt;The customer reviews a clean, branded quote and accepts with a typed signature. They never need an account. They open the quote on their phone, pick an option, and sign.&lt;/p&gt;

&lt;p&gt;You can see when a customer opens your quote and how often.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow-up without the nagging
&lt;/h2&gt;

&lt;p&gt;Most stalled quotes are not a no. They are a maybe that got buried. CloseQuotely's polite reminders go out on your schedule and stop automatically when the customer accepts, declines, or replies. The system does the waiting for you.&lt;/p&gt;

&lt;p&gt;When the customer picks an option, CloseQuotely follows up until they decide.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens after the yes
&lt;/h2&gt;

&lt;p&gt;Every accepted quote becomes a job. Booking a job drafts the invoice from the quote, with the deposit already credited.&lt;/p&gt;

&lt;h2&gt;
  
  
  For the crew
&lt;/h2&gt;

&lt;p&gt;Each crew member gets a private phone link to see their jobs and mark them started and done, with no logins to set up. It works on the phone in your truck and the laptop at home.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs to try
&lt;/h2&gt;

&lt;p&gt;The free plan needs no card and includes 10 quotes a month. Paid plans start small, and CloseQuotely says it will tell you before a price changes. The product is in early access, so it is changing quickly, which is worth knowing before you build your whole process around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick way to start
&lt;/h2&gt;

&lt;p&gt;Take the last quote that went quiet. Rebuild it as three options, with the middle one priced where you want most jobs to land. Send it and watch the open activity. Then follow up on your schedule.&lt;/p&gt;

&lt;p&gt;Build your first options quote on the &lt;a href="https://closequotely.com" rel="noopener noreferrer"&gt;free plan&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to get a Discord alert when your Minecraft server goes down</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Tue, 10 Nov 2026 05:56:56 +0000</pubDate>
      <link>https://dev.to/mineops/how-to-get-a-discord-alert-when-your-minecraft-server-goes-down-29m</link>
      <guid>https://dev.to/mineops/how-to-get-a-discord-alert-when-your-minecraft-server-goes-down-29m</guid>
      <description>&lt;p&gt;If you run a Minecraft server at home, the first sign it's down is usually a message from a player. Here's a free way to hear about it first, with a short script, a cron job and a Discord webhook. It takes about ten minutes on any Linux box.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Make a Discord webhook
&lt;/h2&gt;

&lt;p&gt;In your Discord server, open the channel you want alerts in, then Edit Channel, Integrations, Webhooks, New Webhook. Copy the webhook URL and keep it private, since anyone with it can post to that channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Install netcat
&lt;/h2&gt;

&lt;p&gt;On Debian or Ubuntu:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install netcat-openbsd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Save the script
&lt;/h2&gt;

&lt;p&gt;Save this as &lt;code&gt;~/mc-check.sh&lt;/code&gt;, put your webhook URL in, and make it runnable with &lt;code&gt;chmod +x ~/mc-check.sh&lt;/code&gt;:&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="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# Posts to Discord when the Minecraft server stops answering, and again when it's back.&lt;/span&gt;
&lt;span class="nv"&gt;HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;127.0.0.1
&lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;25565
&lt;span class="nv"&gt;WEBHOOK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://discord.com/api/webhooks/your-id/your-token"&lt;/span&gt;
&lt;span class="nv"&gt;STATE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$HOME/.mc-check-down"&lt;/span&gt;

send&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  curl -s -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; -d &lt;span class="s2"&gt;"{\"content\":\"$1\"}"&lt;/span&gt; &lt;span class="s2"&gt;"$WEBHOOK"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; nc -z -w 5 &lt;span class="s2"&gt;"$HOST"&lt;/span&gt; &lt;span class="s2"&gt;"$PORT"&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -f &lt;span class="s2"&gt;"$STATE"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt; rm -f &lt;span class="s2"&gt;"$STATE"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; send &lt;span class="s2"&gt;"Minecraft server is back up"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; ! -f &lt;span class="s2"&gt;"$STATE"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt; touch &lt;span class="s2"&gt;"$STATE"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; send &lt;span class="s2"&gt;"Minecraft server is down"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The state file is what stops it from posting every minute while the server stays down: you get one message when it goes down and one when it comes back.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Run it every minute
&lt;/h2&gt;

&lt;p&gt;Open &lt;code&gt;crontab -e&lt;/code&gt; and add:&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="nv"&gt;$HOME&lt;/span&gt;/mc-check.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Test it
&lt;/h2&gt;

&lt;p&gt;Stop your server, wait a minute, and the alert should land in Discord. Start it again and you'll get the all-clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this doesn't catch
&lt;/h2&gt;

&lt;p&gt;A port check only tells you the server accepts connections. It won't notice a server that's frozen but still holding the port, heavy lag, a full disk, or a crash loop that restarts faster than a minute. For those you need something that looks at the server process and its TPS.&lt;/p&gt;

&lt;h2&gt;
  
  
  The done-for-you version
&lt;/h2&gt;

&lt;p&gt;I build &lt;a href="https://mineopsdash.com/?ref=devto" rel="noopener noreferrer"&gt;MineOps&lt;/a&gt;, which does all of this without the script: it watches TPS, players, disk and crashes, posts to Discord or Slack, and on paid plans restarts a crashed server for you. The agent only connects outward, so there are no ports to open. It's free for 2 servers.&lt;/p&gt;

</description>
      <category>minecraft</category>
      <category>discord</category>
      <category>linux</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Send Quotes Faster and Follow Up So Fewer Jobs Slip Away</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Sun, 08 Nov 2026 04:28:49 +0000</pubDate>
      <link>https://dev.to/closequotely/how-to-send-quotes-faster-and-follow-up-so-fewer-jobs-slip-away-468h</link>
      <guid>https://dev.to/closequotely/how-to-send-quotes-faster-and-follow-up-so-fewer-jobs-slip-away-468h</guid>
      <description>&lt;p&gt;The short answer: quote in minutes from the truck, let the customer accept online, and let scheduled reminders do the chasing. Most lost jobs are lost to slow replies and forgotten follow-ups, not price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the quote where you are
&lt;/h2&gt;

&lt;p&gt;Speed comes from not starting from a blank page. Use your own templates and a price book built for your trade, then fill in the job. CloseQuotely includes templates and starter price books, and you can build a detailed, professional quote for any trade in minutes.&lt;/p&gt;

&lt;p&gt;A quote a customer can actually read and compare gets a faster yes. Make sure it shows sections, quantities, units, labor and materials, discounts, tax on the right lines, and a deposit. CloseQuotely covers those parts.&lt;/p&gt;

&lt;p&gt;It runs on the phone in your truck and the laptop at home, so you can draft on site and finish at the kitchen table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make accepting easy
&lt;/h2&gt;

&lt;p&gt;Every extra step between "yes" and a signature is a place to lose the job. Send a clean, branded quote the customer can review and accept with a typed signature. In CloseQuotely, your customer never needs an account. They review a clean, branded quote and accept with a typed signature.&lt;/p&gt;

&lt;p&gt;If a job has options, let the customer pick. Your customer picks options and accepts online, and the follow-up runs until they decide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow up without chasing
&lt;/h2&gt;

&lt;p&gt;Write the reminder once and schedule it. CloseQuotely's polite reminders go out on your schedule and stop automatically. Polite reminders go out on your schedule and stop automatically when the customer accepts, declines, or replies.&lt;/p&gt;

&lt;p&gt;You can also see when a customer opens your quote and how often, which helps you pick the right moment for a phone call. CloseQuotely shows when a customer opens your quote and how often.&lt;/p&gt;

&lt;p&gt;If you handle follow-up by hand, use the same shape without software: a short message the day after you send, a second a few days later, a final check-in, and stop as soon as they answer either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the yes into a job and an invoice
&lt;/h2&gt;

&lt;p&gt;Don't retype anything after the customer agrees. Every accepted quote becomes a job, and booking a job drafts the invoice from the quote, with the deposit already credited.&lt;/p&gt;

&lt;p&gt;When the crew is on site, keep the admin small. Each crew member gets a private phone link to see their jobs and mark them started and done, with no logins to set up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;The Free plan is $0 per month, with 10 quotes and 50 follow-up emails a month, and it needs no card. The Starter plan is $4 per month, with 100 quotes and 500 follow-up emails a month. The Pro plan is $15 per month, with 1,000 quotes and 2,000 follow-up emails a month.&lt;/p&gt;

&lt;p&gt;CloseQuotely says it will tell you before a price changes, and it is in early access, so it is changing quickly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where CloseQuotely fits
&lt;/h2&gt;

&lt;p&gt;CloseQuotely is quoting software for the trades. If you send a handful of quotes a week and forget to chase half of them, a scheduled follow-up is the part most worth fixing first, and you can start on the free plan with no card required. See it at &lt;a href="https://closequotely.com" rel="noopener noreferrer"&gt;closequotely.com&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Run and Monitor Minecraft Servers on Your Own Hardware</title>
      <dc:creator>Ridh Grg</dc:creator>
      <pubDate>Sun, 08 Nov 2026 03:45:58 +0000</pubDate>
      <link>https://dev.to/mineops/how-to-run-and-monitor-minecraft-servers-on-your-own-hardware-h7a</link>
      <guid>https://dev.to/mineops/how-to-run-and-monitor-minecraft-servers-on-your-own-hardware-h7a</guid>
      <description>&lt;p&gt;The short answer: put MineOps on the Linux or macOS machine you already own, and it creates and monitors your Minecraft servers from one dashboard. You don't need new hardware or a separate hosting contract to get live status, alerts, and backups in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MineOps actually does
&lt;/h2&gt;

&lt;p&gt;MineOps creates new servers on your own hardware, ready to join, with plugins and mods from Modrinth. It also gives you live status, Discord and Slack alerts, world backups, and new servers in a few clicks, on the Linux or Mac machines you already own. Everything you run shows up in a single dashboard, so you're not tabbing between consoles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started on hardware you already have
&lt;/h2&gt;

&lt;p&gt;MineOps works with Minecraft servers on Linux or macOS machines. If you keep Crafty Controller in Docker, MineOps finds the servers it runs, so existing setups don't need to be rebuilt from scratch.&lt;/p&gt;

&lt;p&gt;Paper, Purpur, and Pufferfish get every MineOps feature. If you run a different server type, check what applies to your setup before you plan around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How monitoring reaches the dashboard
&lt;/h2&gt;

&lt;p&gt;A small agent on each machine connects out to MineOps, so the agent needs no open ports. This matters for anyone behind a home router or a locked-down firewall: the monitoring side doesn't require you to expose a new service.&lt;/p&gt;

&lt;p&gt;One thing people get wrong here: players still need their own way to reach the Minecraft server. The agent's outbound connection is about monitoring, not about making the game reachable. Plan your player access separately, whether that's a public address, a tunnel, or a VPN.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the alerts cover
&lt;/h2&gt;

&lt;p&gt;MineOps alerts cover machines offline, crash loops, low memory or disk, TPS drops, and failed backups. Those are the failures that usually go unnoticed until players complain, so wiring them to Discord or Slack means you hear about trouble before your community does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backups and player insight
&lt;/h2&gt;

&lt;p&gt;MineOps runs scheduled world backups with checksums. A checksum tells you the backup file matches what was written, which is the difference between having a backup and believing you have one.&lt;/p&gt;

&lt;p&gt;MineOps shows who played, for how long, and your quietest hour for maintenance. That last one is practical: schedule restarts and updates when nobody is online instead of guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Control without giving up the keys
&lt;/h2&gt;

&lt;p&gt;Start, stop, moderation, and console stay off until you allow them, and every command lands in the audit log. If you run a server with other admins, that means you can hand out access without handing out a blank cheque.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits, plans, and what happens when you grow
&lt;/h2&gt;

&lt;p&gt;If you go over a plan limit on MineOps, nothing is deleted and nothing stops. That's worth knowing if you're sizing a plan for a community that spikes on weekends.&lt;/p&gt;

&lt;p&gt;The Free plan is $0 forever, with 2 Minecraft servers, 1 machine, 2 members, and 5 alert rules. Put simply, two Minecraft servers on one machine are free for good, which covers a lot of small communities and test setups.&lt;/p&gt;

&lt;p&gt;Above that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Plus plan is $4 per month, with 10 Minecraft servers, 2 machines, 3 members, and 25 alert rules.&lt;/li&gt;
&lt;li&gt;The Network plan is $7 per month, with 40 Minecraft servers, 5 machines, 10 members, and 100 alert rules.&lt;/li&gt;
&lt;li&gt;The Business plan is $25 per month, with 200 Minecraft servers, 20 machines, 50 members, and 500 alert rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On MineOps, a year costs the same as ten months, so annual billing is the cheaper way to commit. MineOps prices are in US dollars, before any sales tax.&lt;/p&gt;

&lt;p&gt;Everyone gets 14 days of Network, once, with no card needed. When the trial ends you keep everything on the free plan, and you can subscribe whenever you like. If you're unsure which tier fits, start on the trial, watch your alert volume and server count, then pick the plan that matches reality rather than the one that matches your hopes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this fits
&lt;/h2&gt;

&lt;p&gt;This setup suits people who already run Linux or macOS boxes and want monitoring and management without adding another layer of vendor lock-in. It's less useful if your servers live somewhere you can't run the agent, or if you need a host to manage the underlying hardware for you. In those cases, this isn't the tool for the job.&lt;/p&gt;

&lt;p&gt;If self-hosting monitoring for your Minecraft servers is the goal, you can read more at &lt;a href="https://mineopsdash.com" rel="noopener noreferrer"&gt;https://mineopsdash.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>devops</category>
      <category>linux</category>
      <category>monitoring</category>
    </item>
  </channel>
</rss>
