Just because I don't care doesn't mean I don't understand.
663 stories
·
3 followers

Building a Honeypot Field That Works

1 Comment

Honeypots are fields that developers use to prevent spam submissions.

They still work in 2025.

So you don’t need reCAPTCHA or other annoying mechanisms.

But you got to set a couple of tricks in place so spambots can’t detect your honeypot field.

Use This

I’ve created a Honeypot component that does everything I mention below. So you can simply import and use them like this:

<script>
  import { Honeypot } from '@splendidlabz/svelte'
</script>

<Honeypot name="honeypot-name" />

Or, if you use Astro, you can do this:

---
import { Honeypot } from '@splendidlabz/svelte'
---

<Honeypot name="honeypot-name" />

But since you’re reading this, I’m sure you kinda want to know what’s the necessary steps.

Preventing Bots From Detecting Honeypots

Here are two things that you must not do:

  1. Do not use <input type=hidden>.
  2. Do not hide the honeypot with inline CSS.

Bots today are already smart enough to know that these are traps — and they will skip them.

Here’s what you need to do instead:

  1. Use a text field.
  2. Hide the field with CSS that is not inline.

A simple example that would work is this:

<input class="honeypot" type="text" name="honeypot" />

<style>
  .honeypot {
    display: none;
  }
</style>

For now, placing the <style> tag near the honeypot seems to work. But you might not want to do that in the future (more below).

Unnecessary Enhancements

You may have seen these other enhancements being used in various honeypot articles out there:

  • aria-hidden to prevent screen readers from using the field
  • autocomplete=off and tabindex="-1" to prevent the field from being selected
<input ... aria-hidden autocomplete="off" tabindex="-1" />

These aren’t necessary because display: none itself already does the things these properties are supposed to do.

Future-Proof Enhancements

Bots get smarter everyday, so I won’t discount the possibility that they can catch what we’ve created above. So, here are a few things we can do today to future-proof a honeypot:

  1. Use a legit-sounding name attribute values like website or mobile instead of obvious honeypot names like spam or honeypot.
  2. Use legit-sounding CSS class names like .form-helper instead of obvious ones like .honeypot.
  3. Put the CSS in another file so they’re further away and harder to link between the CSS and honeypot field.

The basic idea is to trick spam bot to enter into this “legit” field.

<input class="form-helper" ... name="occupation" />

<!-- Put this into your CSS file, not directly in the HTML -->
<style>
  .form-helper {
    display: none;
  }
</style>

There’s a very high chance that bots won’t be able to differentiate the honeypot field from other legit fields.

Even More Enhancements

The following enhancements need to happen on the <form> instead of a honeypot field.

The basic idea is to detect if the entry is potentially made by a human. There are many ways of doing that — and all of them require JavaScript:

  1. Detect a mousemove event somewhere.
  2. Detect a keyboard event somewhere.
  3. Ensure the the form doesn’t get filled up super duper quickly (‘cuz people don’t work that fast).

Now, the simplest way of using these (I always advocate for the simplest way I know), is to use the Form component I’ve created in Splendid Labz:

<script>
  import { Form, Honeypot } from '@splendidlabz/svelte'
</script>

<Form>
  <Honeypot name="honeypot" />
</Form>

If you use Astro, you need to enable JavaScript with a client directive:

---
import { Form, Honeypot } from '@splendidlabz/svelte'
---

<Form client:idle>
  <Honeypot name="honeypot" />
</Form>

If you use vanilla JavaScript or other frameworks, you can use the preventSpam utility that does the triple checks for you:

import { preventSpam } from '@splendidlabz/utils/dom'

let form = document.querySelector('form')
form = preventSpam(form, { honeypotField: 'honeypot' })

form.addEventListener('submit', event => {
  event.preventDefault()
  if (form.containsSpam) return
  else form.submit()
})

And, if you don’t wanna use any of the above, the idea is to use JavaScript to detect if the user performed any sort of interaction on the page:

export function preventSpam(
  form,
  { honeypotField = 'honeypot', honeypotDuration = 2000 } = {}
) {
  const startTime = Date.now()
  let hasInteraction = false

  // Check for user interaction
  function checkForInteraction() {
    hasInteraction = true
  }

  // Listen for a couple of events to check interaction
  const events = ['keydown', 'mousemove', 'touchstart', 'click']
  events.forEach(event => {
    form.addEventListener(event, checkForInteraction, { once: true })
  })

  // Check for spam via all the available methods
  form.containsSpam = function () {
    const fillTime = Date.now() - startTime
    const isTooFast = fillTime < honeypotDuration
    const honeypotInput = form.querySelector(`[name="${honeypotField}"]`)
    const hasHoneypotValue = honeypotInput?.value?.trim()
    const noInteraction = !hasInteraction

    // Clean up event listeners after use
    events.forEach(event =>
      form.removeEventListener(event, checkForInteraction)
    )

    return isTooFast || !!hasHoneypotValue || noInteraction
  }
}

Better Forms

I’m putting together a solution that will make HTML form elements much easier to use. It includes the standard elements you know, but with easy-to-use syntax and are highly accessible.

Stuff like:

  • Form
  • Honeypot
  • Text input
  • Textarea
  • Radios
  • Checkboxes
  • Switches
  • Button groups
  • etc.

Here’s a landing page if you’re interested in this. I’d be happy to share something with you as soon as I can.

Wrapping Up

There are a couple of tricks that make honeypots work today. The best way, likely, is to trick spam bots into thinking your honeypot is a real field. If you don’t want to trick bots, you can use other bot-detection mechanisms that we’ve defined above.

Hope you have learned a lot and manage to get something useful from this!


Building a Honeypot Field That Works originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

Read the whole story
jgbishop
3 hours ago
reply
Anecdotally, I am seeing an uptick in the amount of spam in my site's contact form, which uses honeypots to detect automated behavior. I'm sure the rising use of AI will lead to bots who look more and more like humans, so tricks like this won't last much longer.
Durham, NC
Share this story
Delete

Space Elevator

1 Comment

Fireworks

Mallard

Migration altitude

Welcome to the space elevator, the only elevator that goes to space.

As you climb, the temperature will continue to drop.

Cirrus clouds are wispy clouds made out of ice crystals.

Cirrocumulus are patchy clouds that can blanket the sky.

Cumulonimbus are tall, towering clouds that can produce lightning, tornadoes, and hail.

Pigeon

Mil V-12

Largest helicopter ever built

Hang Gliding

Typical altitude

NASA Helios HP01

Winged aircraft altitude record

Nimbostratus clouds are responsible for rainy days.

de Havilland Vampire

1948 altitude record

Bell X-1

First aircraft to break the sound barrier

Vostok 1

On the way to space

Learjet 45

Douglas DC-3

Blériot XI

First plane to cross the English Channel

Alpine Chough

Skydiver

Typical altitude

White Stork

Cessna 172

Party Balloons

Liolaemus Lizard

Highest-dwelling reptile

Mil Mi-8

Pterodactyl

Bald Eagle

Zeppelin

Wild Yak

Himalayan Jumping Spider

Highest-dwelling spider

Vega 5b

Amelia Earhart's plane

Bumblebee

Highest observed flight

Bell 47

First helicopter to fly over the Alps

Bar-Tailed Godwit

Flycatcher Sandwort

Himalayan flowering plant

Yellow-Rumped Leaf-Eared Mouse

Highest-dwelling mammal

Bearded Vulture

Paratrooper

Max altitude

Above this altitude is known as the "death zone", because there isn't enough oxygen for human life.

Whooper Swan

Mount Everest Peak

Box Kite

Highest flying kite

Andean Condor

Bar-headed Goose

Sopwith Camel

WWI fighter plane

P-80 Shooting Star

P-51 Mustang

WWII fighter plane

F-35

Passenger Jet

Typical cruising altitude

Common Crane

Osprey

Spitfire

An-225 Mriya

Heaviest plane ever built

Ruppell's Griffon Vulture

Highest flying bird

SA 315B Lama

Highest flying helicopter

Mountain Goat

Welcome to the stratosphere.

Unlike the troposphere, the temperature in the stratosphere increases the higher you go.

The stratosphere is home to the ozone layer, which protects us from harmful UV rays.

You are currently in the troposphere, the lowest layer of the atmosphere.

The troposphere contains 99% of the water vapor in the atmosphere.

Stratosphere

This elevator ride needs some music...

Jet streams are bands of strong winds in the atmosphere. They can reach speeds of up to 450 km/h.

Don't worry, the elevator is pretty strong... I think.

Mesosphere

The air in the mesosphere is very thin. It has less than 1% of the pressure as the air at sea level.

Congratulations! You have reached the mesosphere and are now halfway to space.

Sounding Rocket

V-2 Rocket

Peak altitude

This is the coldest part of Earth's atmosphere.

Since weather balloons can't reach this height, rockets with sensors are used to learn more about the mesosphere.

Thermosphere

Welcome to the thermosphere, the final layer on our journey to space.

At 100 km high, the Kármán line is usually accepted as the start of outer space.

You are about to reach a place fewer than 1,000 humans have ever been.

Now leaving Earth.

Temperatures in the thermosphere can reach 2,500°C, but molecules are so far apart that you wouldn't even feel it.

Highest Aircraft Ejection

Concorde

This is the Armstrong limit - above this altitude your saliva and tears will boil if you don't have a pressure suit.

Nacreous clouds are rare clouds found in polar regions. They are made of small ice particles that scatter light in colorful ways.

USSR-1

1933 balloon altitude record

Hot Air Balloon

Airbus Zephyr

High-altitude platform station

Monarch Butterfly

As air pressure drops, so does the temperature needed to boil water. At this altitude, water boils at just 54°C.

As the air gets thinner, there are fewer molecules to scatter light. So the sky starts getting darker.

The SR-71 is one of the fastest planes ever made. It can fly at over 3 times the speed of sound.

Now would be a good time to pick out your space suit.

It's a bit chilly, pick a scarf to stay warm.

Perlan II

Highest altitude glider

Sud-Ouest Trident II

1958 rocket plane altitude record

F-104 Starfighter

Space Shuttle Re-entry

Maximum heat

The mushroom cloud from the largest ever nuclear test, the Tsar Bomba, reached this altitude.

Weather Balloon

NASA X-43

Experimental hypersonic aircraft

The ash cloud from the eruption that destroyed Pompeii reached this height.

If you've ever wondered where your lost balloons went, at this height a typical party balloon will pop.

Highest paper airplane flight

Launched from a balloon, this is the highest a paper airplane has flown.

Felix Freefall

Felix Baumgartner was the first person to break the sound barrier in freefall. He reached a top speed of 1,356 km/h.

Congratulations! You have made it 0.01% to the moon.

Space Shuttle

Reaches max aerodynamic pressure

The mushroom cloud from the Castle Bravo nuclear test reached this altitude.

Chelyabinsk Meteor

Airburst altitude

Space elevators are actually a possible idea being considered by scientists.

They could potentially offer a cheaper and safer way of getting to space.

The hard part is making a strong enough cable. And finding enough elevator music...

Sutter's Mill Meteor

Breakup altitude

Sprites are a rare form of lightning spotted over thunderstorms that only last a fraction of a second.

While normal lightning is around 4 km long, sprites can reach lengths of up to 50 km.

Since the speed of sound depends on the temperature, sound travels 15% slower up here.

The world's fastest elevator travels at 74 km/h. A space elevator with the same speed would take 80 minutes to reach space.

Blue jets are a rare form of lightning that arc upward in a brilliant blue flash.

U-2

Spy plane

Noctilucent clouds are the highest altitude clouds in the atmosphere. They are only visible at night and at higher latitudes.

Most meteors burn up in the mesosphere. It's estimated that over 48 tons of meteors hit the atmosphere every day.

SR-71 Blackbird

1976 altitude record

Caproni Ca.161

1938 altitude record

Project Excelsior

1960 skydive altitude record

With nothing but a duct-taped pressure suit, Joseph Kittinger jumped from an open gondola and set a record that would last more than 50 years.

Sukhoi Su-9

Explorer II

1935 balloon altitude record

Douglas Skyrocket

First aircraft to reach Mach 2

Saturn V

First stage separation

BU60-1

High altitude balloon record

As particles from the sun hit the atmosphere, they excite the atoms in the air.

These excited atoms start to glow, creating brilliant displays of light called auroras.

X-15

Highest flying rocket plane

Kármán line

Hummingbird

Chilean Flamingo

Alan Eustace's Skydive

Current record for highest skydive

Space Shuttle

Boosters eject

Falcon 9

First stage separation

Adblock test (Why?)

Read the whole story
jgbishop
3 hours ago
reply
Cute site.
Durham, NC
Share this story
Delete

A Surprising Amount of Satellite Traffic Is Unencrypted

2 Comments

Here’s the summary:

We pointed a commercial-off-the-shelf satellite dish at the sky and carried out the most comprehensive public study to date of geostationary satellite communication. A shockingly large amount of sensitive traffic is being broadcast unencrypted, including critical infrastructure, internal corporate and government communications, private citizens’ voice calls and SMS, and consumer Internet traffic from in-flight wifi and mobile networks. This data can be passively observed by anyone with a few hundred dollars of consumer-grade hardware. There are thousands of geostationary satellite transponders globally, and data from a single transponder may be visible from an area as large as 40% of the surface of the earth.

Full paper. News article.

Read the whole story
jgbishop
2 days ago
reply
Ha, this is neat.
Durham, NC
Share this story
Delete

Bizarro by Wayno & Piraro for Sun, 12 Oct 2025

1 Comment

Bizarro by Wayno & Piraro on Sun, 12 Oct 2025

Source

Read the whole story
jgbishop
7 days ago
reply
If the disintegrator app is written correctly, he'll be the first one to go.
Durham, NC
Share this story
Delete

Titaner's Innovative Take on the Fractal Vise

1 Comment

In the past, it was common for a Western company to release some hot new object, then Chinese manufacturers would rush in with knock-offs. Thankfully we're seeing a shift away from this, where Chinese manufacturers are starting to add their own innovations to improve existing products. As one example Titaner, a Chinese manufacturer of titanium tools, is taking a more Apple-like approach: Let others be the first, then take your time to design a better version of that object.

In this case, the object that's having a moment is the fractal vise. This all started in 2021, when artist Steve J. Lindsay designed his based on a jaw he'd seen on a milling machine from the early 1900s.

Lindsay's design went viral, and later that year product designer Chris Borge made 3D-print files of a similar design available.

Earlier this year, British tool manufacturer MetMo successfully Kickstarted their own fractal vise design, to the tune of $1.8 million.

Enter Titaner. Rather than merely knock off the designs above, the company instead decided to design the ultimate version of a fractal vise.

First off it's on a ball joint, greatly improving the ergonomics.

Secondly, it has a feature critical for working on delicate objects: The ability to set the clamping pressure. The user dials it in via a torque mechanism, and when the vise hits the desired pressure, it audibly clicks, like a torque wrench.

Thirdly the jaws have a width capacity of nearly 4 inches.

Lastly the jaws are reversible, allowing you to hold objects from the inside out.

The tool, being made entirely out of precision-CNC-milled titanium, is well expensive, starting at $1,100. The company's only making 1,000 units and selling them on Kickstarter. At press time the campaign had been successfully funded, with 85 units spoken for and 27 days left to pledge.




Read the whole story
jgbishop
18 days ago
reply
Wow, what a cool tool!
Durham, NC
Share this story
Delete

Eight Sleep’s first water-chilled pillow cover costs a cool $1,049

1 Comment
A person laying in a bed with an Eight Sleep temperature control system.
You’ll never need to flip your pillow to find the cool side with Eight Sleep’s new covers. | Image: Eight Sleep

What is a good night’s sleep worth to you? Does a grand seem like a small price to pay to avoid a night spent constantly flipping your pillow in search of the cool side? Eight Sleep has announced a new Pod Pillow Cover that ensures where you’re resting your head is always at your ideal temperature. Skip that mortgage payment or iPhone upgrade and throw some money at a good night’s sleep.

Designed to slip over your existing pillows without changing their shape or firmness, the Pod Pillow Cover features discreet tubes, or what the company calls “silent hydro channels,” that are used to circulate temperature-controlled water beneath your head. Up to two sleepers can dial in an exact temperature anywhere between 55 and 110 degrees Fahrenheit and the cover will maintain it all night long — no pillow flips needed.

A person installs an Eight Sleep Pod Pillow Cover over a pillow.

The Pod Pillow Cover is launching today in the US and other markets, including the EU and Canada, for $1,049 and discounted to $1,649 for a pair. There’s no pretending that’s not an expensive alternative to traditional cooling pillows that rely on cooling gels or foams, but that’s not all you need to pay. The Pod Pillow Cover is made to complement Eight Sleep’s existing cooling systems, which currently start at $2,449, plus a $199 annual subscription. They feature a larger mattress cover that can regulate the temperature of your entire bed and include the company’s bedside hub that circulates the water for precise control.

A bedroom with a bed featuring Eight Sleep’s cooling system.

Read the whole story
jgbishop
18 days ago
reply
I've often wondered whether this was a thing. Now I know, and boy is that pricey!
Durham, NC
Share this story
Delete
Next Page of Stories