Skip to content

Contact

Mexico City, Mexico
Available for remote and on-site projects.

Professional networks

LinkedIn · GitHub · Email
Applied engineering, measurable results.

How to pass a website security audit with an A+ rating

· Updated · 3 min read · Samuel Torres

Short answer

Passing a website security audit usually means configuring HTTP security headers (HSTS, CSP, X-Frame-Options and others), enforcing TLS 1.2/1.3 with modern ciphers, hiding server information and fixing every finding with evidence. That's how Esentia Energy reached an A+ rating on the retest and formal approval to go live.

When the site can't launch until security signs off

In medium and large companies, the Information Security team reviews the site before it goes live. A site can be perfect for marketing and still be stuck for weeks over technical findings that nobody on the project knows how to close.

What they almost always check

Every security team has its own checklist, but almost all of them look at the same things: HTTP headers, the TLS version and what the server reveals about itself. These are the findings that come up most often in an audit, what each one means and how to fix it.

Typical findingWhat it meansHow to fix it
Missing HSTSThe browser could connect without encryptionStrict-Transport-Security header
Missing CSPThere's no control over which scripts can runContent-Security-Policy header tuned to the site
Missing X-Frame-OptionsThe site can be embedded in another one (clickjacking)X-Frame-Options or frame-ancestors in CSP
Old TLSWeak protocols or ciphers are acceptedTLS 1.2/1.3 only, with ECDHE ciphers
Server version visibleIt makes an attacker's job easierHide the server and PHP signatures

The hard part: CSP without breaking the site

A strict CSP can block Google Analytics, the chat widget, videos or even the page builder. The key is to start in report-only mode, see what would be blocked, adjust, and only then enforce it. Doing it the other way around breaks the site in production.

How to hand it over so it gets approved

Security doesn't approve promises, it approves evidence. Deliver a report per finding: what it was, what changed, how to verify it and a screenshot of the test. At Esentia Energy, on top of the hardening, I documented server updates with a signed technical report.

Related: Esentia Energy case · WordPress security service

FAQ

Does an A+ rating mean the site can't be hacked?

No. It means the transport configuration and headers are solid. Security also depends on the code, the plugins, the passwords and maintenance.

How long does it take to fix the findings?

It depends on how many findings there are and on server access. With server access, most headers and TLS settings are fixed quickly; what takes the longest is tuning CSP without breaking features.

Does it work on shared hosting?

Partly. Some headers can be set from .htaccess, but controlling TLS and the server usually requires a VPS or a proxy such as Cloudflare.

Samuel Torres Pichardo

Samuel Torres Pichardo · Software and Cloud Engineer · Mexico City
I run more than 23 sites in production.
About me · LinkedIn

Want something like this for your business?

Get a quote on WhatsApp in 2 min

Menu

Español

[email protected]