A defensive publication puts a description of your invention into the public record so nobody can patent it later. What it does and does not give you, the US grace period against European absolute novelty, and when to file a provisional instead.
A defensive publication is a public, dated description of an invention made so that the description becomes prior art against later patent applications by anyone, including you. It is not a patent and gives no exclusive right.
In the United States, an inventor's own disclosure made one year or less before the effective filing date is not prior art against that inventor (35 U.S.C. 102(b)(1)(A); MPEP 2153). Under the European Patent Convention, anything made available to the public before the filing date is prior art (Art. 54 EPC), and the exceptions are narrow (Art. 55 EPC: evident abuse and certain officially recognised exhibitions, within six months). A defensive publication therefore ends your own chance of a European patent on what it describes, and starts the US one-year clock.
If you may ever want a patent, file a provisional first (see before you publish and how to file a US provisional). A provisional fixes a filing date; a defensive publication does the opposite and gives the idea away. Publish defensively only when you want the idea free for everyone to use, or cannot afford protection and want to stop others from patenting it.
Describe the invention fully enough that a skilled person could make and use it (the same standard as 35 U.S.C. 112(a)); a thin description blocks little. Then use the open register, which asks for your consent before anything becomes public. Once a description has been public and copied, withdrawing the page does not remove it from the prior art, so withdrawal is for correcting the register, not for undoing a disclosure.
The register has not published its first consented record yet. When it does, this page will link it; until then see the register for what a record looks like.
Draft a disclosure, freeSee a real run