PCI DSS compliance is non-negotiable for any website that handles card payments. This guide breaks down the 12 requirements into actionable technical controls your team can implement today.
Anay Pandya
1,806 words
Anay Pandya
Founder of ZeriFlow · 10 years fullstack engineering · About the author
Key Takeaways
PCI DSS compliance is the baseline standard every e-commerce website must meet before processing a single card transaction. The Payment Card Industry Data Security Standard (PCI DSS) — now at version 4.0 — defines 12 requirements across six goals, and failing any one of them can result in fines, chargebacks, or outright card network suspension.
<div class="zf-stat-callout" style="background:#0d1117;border:1px solid rgba(16,185,129,0.25);border-left:3px solid #10b981;border-radius:4px;padding:16px 20px;margin:24px 0"> <p style="margin:0 0 4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.15em;color:#10b981;font-family:monospace">ZeriFlow Data — 12,400+ sites analyzed</p> <p style="margin:0;font-size:13px;color:#e2e8f0;line-height:1.6;font-family:monospace">In ZeriFlow's corpus of 12,400+ scanned sites, 72% score below 70/100 on security. Only 7% achieve a score above 85 — a threshold that corresponds to passing all OWASP-aligned header and configuration checks.</p> </div>
Keep reading
Is your site actually secure?
Run a free check — 60 seconds
This guide translates those 12 requirements into concrete, website-level actions: the TLS configuration, check your security headers, access controls, and logging practices that auditors check.
Check your compliance posture: Free ZeriFlow security scan →
A common misconception: "We use Stripe/Braintree/Adyen — PCI doesn't apply to us." Wrong. While outsourcing payment processing reduces your scope, it does not eliminate it. Your website is still in scope if it:
The 2024 Verizon Payment Security Report found that only 43% of organizations maintained full PCI DSS compliance at interim assessment. The gap is almost always on the web layer: misconfigured TLS, missing headers, uncontrolled third-party scripts.
PCI DSS 4.0 introduced Requirement 6.4.3 and 11.6.1 specifically targeting client-side script integrity and change detection — a direct response to Magecart-style skimming attacks that compromised British Airways, Ticketmaster, and thousands of smaller merchants.
PCI DSS organizes its 12 requirements into six control objectives. Here is what each one means at the website level.
Goal 1 — Build and Maintain a Secure Network
Goal 2 — Protect Account Data
Goal 3 — Maintain a Vulnerability Management Program
Goal 4 — Implement Strong Access Control Measures
Goal 5 — Regularly Monitor and Test Networks
Goal 6 — Maintain an Information Security Policy
Requirement 4 is the most technically specific and the most commonly misconfigured. Your website must:
Strict-Transport-Security: max-age=31536000; includeSubDomains) prevents protocol downgrade.ZeriFlow scans your TLS configuration end-to-end: protocol versions, cipher suite ordering, certificate validity, HSTS presence, and HTTP-to-HTTPS redirect behavior — surfacing PCI-relevant findings in seconds.
PCI DSS 6.3.3 and the v4.0 client-side script requirements point directly to HTTP security headers as a technical control. The headers most relevant to compliance:
Content-Security-Policy (CSP) — Arguably the single most important header for e-commerce. A strict CSP restricts which scripts can execute on your checkout page, directly mitigating Magecart and formjacking attacks. PCI DSS 4.0 Requirement 6.4.3 requires an inventory and integrity mechanism for all scripts — CSP with 'sha256-...' or nonce- values satisfies this.
X-Frame-Options / frame-ancestors — Prevents clickjacking attacks that could overlay a fake payment form on top of your legitimate checkout.
[X-Content-Type-Options](https://zeriflow.com/blog/x-content-type-options-nosniff): nosniff — Prevents MIME-type sniffing that could cause browsers to execute uploaded files as scripts.
Referrer-Policy — Reduces the risk of leaking cardholder-adjacent data (session tokens, order IDs) to third-party analytics via the Referer header.
Permissions-Policy — Restricts access to browser APIs (camera, microphone, geolocation) that have no business being active on a payment page.
PCI DSS 4.0 became the sole active version on March 31, 2024. The two web-facing requirements with the longest implementation runway (marked "future-dated" in v4.0) became mandatory on March 31, 2025:
Requirement 6.4.3 — Script inventory and integrity on payment pages. You must maintain a documented inventory of all scripts on pages that capture payment data. Each script must have a business justification, and there must be a method to confirm integrity (CSP hashes, Subresource Integrity, or a runtime script monitoring solution).
Requirement 11.6.1 — Unauthorized change detection. A mechanism must be in place to detect unauthorized modifications to HTTP headers and script contents on payment pages. This typically means a script monitoring service that alerts when new scripts are injected or existing ones are modified.
If your site is still running third-party tag managers with unbounded permissions on checkout pages, you are out of compliance with v4.0 today.
Audit findings cluster around a predictable set of web-layer failures:
yourstore.com (without HTTPS) can be intercepted before the redirect.unsafe-inline or * as script sources provides no protection against script injection.Secure and HttpOnly flags can be accessed over HTTP or via JavaScript — both violate the principle of protecting data in transit.A: Yes, but your scope is significantly reduced. If you use a fully hosted payment page (redirect to Stripe Checkout, for example), you may qualify for SAQ A, the simplest self-assessment questionnaire — roughly 22 requirements focused on your website's general security posture. If you embed a JavaScript widget (Stripe Elements), you typically fall under SAQ A-EP, which includes Requirement 6.4.3 and the script integrity controls. Always confirm your SAQ level with a Qualified Security Assessor (QSA).
A: PCI DSS applies to merchants and service providers that store, process, or transmit cardholder data. PA-DSS (now replaced by the Software Security Standard, PCI SSF) applies to payment application vendors — the companies building payment software. If you buy a shopping cart platform, you want to confirm it is PCI SSF validated. If you operate a store using that platform, PCI DSS applies to you.
A: Requirement 11.3.2 mandates ASV (Approved Scanning Vendor) external vulnerability scans at least quarterly and after any significant infrastructure change. Requirement 11.4.1 mandates an internal and external penetration test at least annually. These are minimums — high-risk environments should scan more frequently.
A: Not directly — PCI DSS does not enumerate a specific list of required headers. However, missing headers can be cited as evidence of failing Requirement 6.3.3 (protection against known vulnerabilities) or 6.4.3 (script integrity). A QSA conducting a penetration test will flag absent security headers as findings that need remediation before passing.
A: Card networks (Visa, Mastercard) can fine acquiring banks $5,000–$100,000 per month for non-compliant merchants, and those fines are typically passed downstream to the merchant. After a breach, non-compliant merchants bear full liability for fraud losses and forensic investigation costs. The reputational damage — and the loss of card acceptance privileges — is often more damaging than the fines themselves.
PCI DSS compliance on the web layer comes down to a handful of verifiable technical controls: enforced HTTPS with valid TLS 1.2+, a restrictive Content-Security-Policy on checkout pages, documented script inventory, HSTS, secure cookie attributes, and tamper-detection for payment page scripts. These are not abstract policy requirements — they are configuration choices you can audit today.
The fastest way to identify gaps before your QSA does is to run an automated scan against your live environment.
<!-- zf-internal-links -->
Add security scanning to your CI/CD pipeline.
Catch vulnerabilities before they reach production.
Related resources
Website Vulnerability Scanner
Run a broader website security audit across headers, TLS, DNS, cookies, SEO, and disclosure checks.
Security Headers Checker
Check CSP, HSTS, X-Frame-Options, and other response headers.
SSL Checker
Review TLS certificate, HTTPS, and transport security signals.
DMARC Checker
Validate email authentication records for domain spoofing protection.
CSP Checker
Review Content-Security-Policy coverage and common gaps.
June 24, 2026
Best Security Tools for AI Startups
Monitor your security score
Schedule recurring scans and catch regressions after deployments.