The site is currently in beta.
Security

HTTP Security Headers in Egypt: We Checked 227 .eg Websites and Only 6.6% Send All Six, Plus a 10-Step Rollout Checklist

Smart One Group Team··9 min read
HTTP Security Headers in Egypt: We Checked 227 .eg Websites and Only 6.6% Send All Six, Plus a 10-Step Rollout Checklist
Short answer: HTTP security headers are short instructions your web server sends with every page, telling the browser to stick to HTTPS, refuse to show the site inside a deceptive frame, stop guessing file types and restrict which scripts may load. In a check we ran on 27 November 2026 on the homepages of 227 Egyptian .eg websites with a valid certificate, only 99 (43.6%) sent an HSTS header, only 15 (6.6%) applied all six core headers, and 72 (31.7%) disclosed their server software version.

Companies, clinics and shops in Egypt invest in website design and ad campaigns, yet a few lines in the server configuration decide how the browser treats that website. Those lines are HTTP security headers, one of the cheapest and fastest layers of protection to apply. This guide explains what each header does, presents original data from a check of the most visited Egyptian websites, then offers a framework for ordering the rollout by the risk of breaking the site, and a 10-step list your hosting administrator can work through.

What are HTTP security headers?

HTTP security headers are text fields the server adds to the response for every page. Visitors never see them, but the browser reads and enforces them before rendering content. The OWASP HTTP Security Response Headers Cheat Sheet describes them as an easy-to-implement way to help prevent vulnerabilities such as cross-site scripting (XSS), clickjacking and information disclosure.

These headers do not fix a bug in your code, and their absence does not mean a site has been hacked; they reduce the chance that mistakes are exploited and limit the damage. That makes them part of the basic "technical measures" for any website that collects customer data through booking, purchase or contact forms.

What are the six core headers, and what value is recommended for each?

The table below summarises the six headers we checked, the reference value for each as recommended by OWASP, and how many Egyptian websites send it out of 227 homepages.

HeaderWhat it doesReference valueEgyptian sites sending it
Strict-Transport-Security (HSTS)Forces the browser to open the site over HTTPS onlymax-age=63072000; includeSubDomains; preload99 (43.6%)
Content-Security-Policy (CSP)Defines the sources scripts and resources may load fromA policy tailored to each site72 (31.7%)
X-Frame-Options or frame-ancestorsStops the site being framed to trick visitors into clickingDENY or frame-ancestors 'none'124 (54.6%)
X-Content-Type-OptionsStops the browser guessing file typesnosniff111 (48.9%)
Referrer-PolicyControls how much of the page address is sent to other sitesstrict-origin-when-cross-origin47 (20.7%)
Permissions-PolicyDisables features such as camera and geolocation the site does not needA list of disabled features37 (16.3%)

What did we find when checking HTTP security headers on 227 Egyptian websites?

On 27 November 2026, between 09:36 and 09:37 Cairo time, the Smart One Group team checked every .eg domain in the Tranco list of popular domains, 332 in total, the same list we used in our earlier scans. We sent one request to each homepage, following redirects with strict certificate validation, and analysed the final response headers of 227 pages. We excluded 105 domains: 79 where a verified TLS connection could not be completed from our vantage point, and 26 that returned errors such as 403 and 503 or timed out.

  • Only 15 sites (6.6%) sent all six headers, while 67 sites (29.5%) sent none of them.
  • 63 sites (27.8%) met what we call the "minimum baseline": HSTS, nosniff and framing protection, with no software version disclosed.
  • Of the 57 government .gov.eg sites analysed, 22 sent HSTS, 18 disclosed software versions and 12 met the minimum baseline.

HSTS: almost half of sites do not lock HTTPS in the browser

HSTS is a header that tells the browser to open the site only over HTTPS for a period set in seconds (max-age); it is defined in RFC 6797. It was sent by 99 sites (43.6%), but only 62 (27.3%) set a duration of at least 31536000 seconds (one year), 60 added includeSubDomains and 32 (14.1%) added the preload directive. We also saw one site sending max-age=0, a value that under RFC 6797 deletes the policy rather than enabling it. In an earlier study of the Chrome HTTP warning we noted that HSTS stops the browser from even trying HTTP.

CSP and framing: protecting visitors on booking and payment forms

72 sites (31.7%) sent an enforced CSP, and 3 more sent it only in Report-Only mode, which blocks nothing. CSP is the most important defence against compromised external scripts, which we covered in our guide to third-party script risks. Clickjacking protection was present on 124 sites (54.6%), mostly through X-Frame-Options, while OWASP recommends the CSP frame-ancestors directive because it obsoletes X-Frame-Options in supporting browsers.

Version disclosure: free information for attackers

72 sites (31.7%) disclosed the version of their server software or framework: 51 in the Server header (32 Microsoft-IIS, 13 nginx and 6 Apache), 19 in X-Powered-By with a version number, and 19 in ASP.NET version headers. OWASP recommends removing X-Powered-By entirely and removing the Server header or making it non-informative, because a version number makes it easier for attackers to look up known vulnerabilities. X-Powered-By appeared with any value on 56 sites (24.7%).

18 sites revealed their PHP version: 5 run branches that are already end of life (7.3, 7.4 and 8.1), and 7 run branch 8.2, whose security support ends on 31 December 2026 according to the supported versions table on the official PHP site. We set out an upgrade plan in our guide to PHP 8.2 end of life.

Legacy headers and unprotected cookies

71 sites (31.3%) still send X-XSS-Protection in enabled mode, although OWASP advises not setting it or setting it to 0 because it can create vulnerabilities in otherwise safe sites. Of the 144 homepages that set cookies (63.4%), we counted 338 cookies: 183 (54.1%) lacked the Secure attribute and 182 lacked SameSite. According to MDN documentation, Secure ensures the cookie is only sent over HTTPS.

Why do HTTP security headers matter for companies and clinics in Egypt?

Article 4 of the Personal Data Protection Law No. 151 of 2020, in item 6, requires the controller to take "all technical and regulatory procedures" and apply "the standard criteria necessary for the protection and security of Personal Data". The law does not name specific HTTP headers, but a site that collects patient names or customer phone numbers through a booking form will struggle to justify missing free settings that OWASP recommends. This is general analysis, not legal advice.

The Smart One Group framework: a rollout ladder by risk of breakage

This is a working framework we use with clients, not a standard issued by any official body. The idea is that some headers cannot break your site, while others can block pages or services if switched on all at once.

StepHeaders and settingsRisk of breakageHow to roll out
FirstHide versions, nosniff, Referrer-Policy, set X-XSS-Protection to 0Very lowDirectly on the server or hosting panel
SecondX-Frame-Options or frame-ancestors, Secure and SameSite cookie attributes, Permissions-PolicyLow, with testingAfter confirming the site is not legitimately embedded in frames
ThirdLong-duration HSTS, enforced CSPMedium to highIn stages: Report-Only first, then raise the duration gradually

For HSTS, hstspreload.org suggests ramping up in stages: 300 seconds, then 604800 (one week), then 2592000 (one month), checking pages after each stage. Inclusion in the preload list requires at least 31536000 seconds plus includeSubDomains and preload. Do not add includeSubDomains until every subdomain, such as webmail or an internal clinic system, works over HTTPS with a valid certificate.

A 10-step HTTP security headers rollout checklist

  1. Check the homepage, the login page and the booking or payment page, and record the current headers for each.
  2. Decide which layer adds the headers: the application, the web server, the reverse proxy or the CDN, and avoid sending the same header from two layers.
  3. Hide version numbers in Server and remove X-Powered-By and the ASP.NET headers.
  4. Add X-Content-Type-Options: nosniff and Referrer-Policy: strict-origin-when-cross-origin.
  5. Set X-XSS-Protection to 0 or remove it.
  6. Block framing with frame-ancestors or X-Frame-Options, exempting only pages that genuinely need embedding.
  7. Add Secure and SameSite to cookies, and HttpOnly to session cookies.
  8. Enable HSTS with a short duration, then raise it gradually to at least one year.
  9. Start CSP in Report-Only mode, review reports for two weeks, then enforce it.
  10. Add a header check to your review list after every server update or change of hosting provider.

If your site runs on Smart One Group hosting, or you want an existing server reviewed, our technical support team can check the headers and apply the ladder above without downtime. Contact us to scope the review.

Methodology and limitations

  • Sample: all .eg domains in the Tranco list, 332 in total, with no manual selection; 227 pages that responded successfully over HTTPS with a verified certificate were analysed.
  • Method: one GET request to the bare domain, then www, following redirects, analysing only the final response headers; HSTS sent on redirect hops was not counted.
  • Limitations: a single vantage point on an Egyptian ISP network, so responses may differ from another network or because of firewalls; homepages only; a header being present does not mean its value is ideal.
  • Observation vs inference: table figures are direct observations; reasons why headers are missing are inference we did not measure. No website is named in this article.

Frequently asked questions

Does missing HTTP security headers mean my site has been hacked?

No. Their absence is not a breach, but it leaves visitors less protected if a vulnerability or network attack exists. They are a hardening layer, not a substitute for updating software.

Is an SSL certificate enough to protect my site?

No. The certificate encrypts the connection, but HSTS is what stops the browser falling back to HTTP, and CSP, nosniff and frame-ancestors address risks unrelated to encryption.

Can HSTS break my site?

Yes, if it is enabled with a long duration and the certificate then expires or a subdomain lacks HTTPS, because visitors cannot click through the error. Start with a short duration and raise it gradually.

What is the difference between X-Frame-Options and frame-ancestors?

Both stop the site being shown inside a frame. frame-ancestors is part of CSP, is more flexible and obsoletes X-Frame-Options in modern browsers; you can send both to support older browsers.

Is hiding the server version enough instead of updating?

No. Hiding it only makes reconnaissance harder, and attackers have other ways to fingerprint software. Regular updates remain the core protection.

How can I check my own site's headers?

Open the browser's developer tools, go to the Network tab, select the homepage request, review the Response Headers section and compare it with the table in this article.

HTTP Security Headers, HSTS, Website Security, Web Hosting, .eg Domains

Related reading

Start your project with us

Book a free consultation and get back a clear plan and a firm cost.