DEV Community

Ben Greenberg
Ben Greenberg

Posted on

Quick tip: check your security headers with curl

Quick tip for checking your security headers:

curl -I https://yoursite.com | grep -i 'x-frame\|content-security\|strict-transport\|x-content-type'
Enter fullscreen mode Exit fullscreen mode

If you get no output, you're missing all of them. HSTS is the most important one to add first — it forces HTTPS on all future visits.

Want a full breakdown? Run a free check at https://audit.hummusonrails.com/free

Top comments (2)

Collapse
 
jrwren profile image
Jay R. Wren

am tip: ask gemini to help with this. I just prompted with: audit.hummusonrails.com/free says jrwren.dev is missing meta description and security headers. write them for me.

Collapse
 
bengreenberg profile image
Ben Greenberg

that's a great use case! 💯