Skip to content

Free tool · no sign-up

Free website security checker

Scan one page, an API or your whole site for missing protections. Get a grade, and a step-by-step fix for every gap.

What to scan

One page or 100 pages

Scan a single page in seconds, or let it follow your links and sitemap and check every page it finds.

Websites and APIs

Give it an API address and it checks what matters for an API: HTTPS, CORS, cookies and headers.

A fix you can copy

Every problem links to step-by-step instructions with the exact settings for nginx, Apache, Cloudflare, WordPress and more.

Safe to run on any site

It only reads what every visitor’s browser already gets. Nothing is attacked, nothing is stored.

What the scan checks

The first group is checked once for the whole site. The second is checked on every page, because one old page can undo the rest.

For the whole site

Secure connection (HTTPS)
Without HTTPS, anyone on the same Wi-Fi or network can read and change what your visitors send and see, including passwords and card details.
http:// redirects to https://
People still type the address without https. If the plain http version doesn’t redirect, they use the site unprotected.
Security certificate
An expired or wrong certificate makes browsers show a full-page warning, and old TLS versions have known weaknesses.
Other sites can’t read your data (CORS)
If your server trusts any website that asks, a malicious page can read your logged-in visitors’ data from it. We test by asking as a made-up site.
Email: SPF record
Lists the servers allowed to send email for your domain, so others can’t easily send emails pretending to be you.
Email: DMARC record
Tells Gmail, Outlook and others to reject or quarantine fake emails using your domain. Without it, phishing in your name gets delivered.
Who may issue certificates (CAA)
A DNS record naming the companies allowed to issue certificates for your domain, so nobody else can get one by mistake.
security.txt contact
A small file at /.well-known/security.txt that tells people who find a problem how to tell you, instead of posting it publicly.

On every page

Always use HTTPS (HSTS)
Tells browsers to never load your site over plain http, even if someone clicks an old http:// link or an attacker tries to downgrade the connection.
Content Security Policy
Lists where your pages may load scripts from. If an attacker manages to inject a script (cross-site scripting), the browser refuses to run it.
Can’t be framed (clickjacking)
Stops other sites showing your pages inside an invisible frame and tricking visitors into clicking buttons they can’t see.
X-Content-Type-Options
Stops browsers guessing a file’s type, so an uploaded “image” can’t be run as a script.
Referrer-Policy
Controls how much of your page address is passed to other sites when visitors click a link, so private addresses (reset links, search terms) don’t leak.
Permissions-Policy
Switches off the camera, microphone and location for your pages and anything embedded in them, unless you need them.
Cookie settings
Login and session cookies need Secure (HTTPS only), HttpOnly (scripts can’t steal them) and SameSite (other sites can’t use them) to protect your visitors’ accounts.
Software versions hidden
Headers like “Server: Apache/2.4.29” or “WordPress 5.8” tell attackers exactly which known holes to try. Hiding them costs nothing.
Up-to-date JavaScript libraries
Old versions of jQuery, Bootstrap and other libraries have published security holes that automated attacks look for.
No insecure content (mixed content)
A script, style or frame loaded over http:// on an https page can be swapped by an attacker, which undoes the page’s protection.
Forms send securely
A form that sends to an http:// address, or asks for a password on a page without HTTPS, gives the typed details away to anyone listening.

How to check your website’s security

  1. 1Type your website’s address (or an API address) in the box.
  2. 2Choose “This page only” for a quick check, or “The whole site” to check every page we can find.
  3. 3Start with the red items under “Needs fixing”. Each one has a fix and a link to the full instructions below.
  4. 4Make the changes, click Scan again, and watch the grade go up.

For site owners · free

Deep scan: look for what attackers look for

The scan above only reads what your pages show. The deep scan also asks for files that shouldn’t be public, checks folders and admin tools, and tests your server’s ports and TLS versions. Because that’s what an attacker’s first sweep does, it only runs on sites you’ve verified are yours.

No private files left public
A public .env, .git folder, database dump or backup zip hands over passwords, keys and your whole code. Bots look for these within minutes of a site going live.
Databases and remote access closed to the internet
A database (MySQL, PostgreSQL, MongoDB, Redis) or remote desktop that answers anyone on the internet is one of the most common ways in: bots try default passwords on them all day.
Folders don’t list their files
If opening a folder like /uploads/ shows a list of every file in it, anyone can browse and download files you never linked to: invoices, CVs, backups.
Admin and database tools hidden
A public phpMyAdmin or Adminer page lets anyone try to log in to your database. Public CMS logins (WordPress, Joomla) are normal, but need limits on login attempts.
Old TLS versions switched off
TLS 1.0 and 1.1 are from 1999 and 2006 and have known weaknesses. Browsers stopped using them in 2020; a server that still accepts them can be pushed into a weaker connection.
Not flagged by Google Safe Browsing
If Google has flagged your site for malware or phishing, Chrome, Firefox and Safari show visitors a red warning page. Hacked sites are often flagged before their owners notice.

You also get every check from the free scan for your home page, all in one grade, and a PDF report by email. Verification lasts 90 days and is checked again before each scan. Up to 3 deep scans per site a day.

1Your site, and where to send the report

The guide

How to fix each problem

Find the item from your results. Each one says what to do, then gives the exact settings for the common setups: open the one you use and copy it. Not sure which you have? Most shared hosting is Apache (with cPanel); most servers you rent yourself run nginx. If your site is behind Cloudflare, its dashboard can do most of these without touching the server. Make one change at a time and check your site still works.

Secure connection (HTTPS)

Without HTTPS, anyone on the same Wi-Fi or network can read and change what your visitors send and see, including passwords and card details.

  1. Get a free certificate from Let’s Encrypt. Most hosts do it with one click: in cPanel it’s SSL/TLS Status → Run AutoSSL.
  2. On your own server, certbot gets the certificate and renews it every 60–90 days by itself.
  3. Then make the http:// address redirect to https:// (next item).
Ubuntu server with nginx
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
Ubuntu server with Apache
sudo apt install certbot python3-certbot-apache
sudo certbot --apache -d example.com -d www.example.com
Cloudflare
SSL/TLS → Overview → Full (strict)
(Put a certificate on your server too: “Flexible” leaves the link from Cloudflare to your server unprotected.)

http:// redirects to https://

People still type the address without https. If the plain http version doesn’t redirect, they use the site unprotected.

  1. Send every http:// request to the same address on https:// with a permanent (301) redirect.
  2. In WordPress, also set both addresses in Settings → General to https://.
nginx
server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://$host$request_uri;
}
Apache (.htaccess)
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Cloudflare
SSL/TLS → Edge Certificates → Always Use HTTPS: On

Security certificate

An expired or wrong certificate makes browsers show a full-page warning, and old TLS versions have known weaknesses.

  1. An expired certificate: renew it now (certbot renew, or ask your host) and check that automatic renewal is switched on.
  2. A certificate for the wrong name: get one that covers every address you use, with and without www.
  3. Old TLS versions: allow only TLS 1.2 and 1.3. Every browser from the last ten years supports them.
Check certbot renews by itself
sudo certbot renew --dry-run
systemctl list-timers | grep certbot
nginx: modern TLS only
ssl_protocols TLSv1.2 TLSv1.3;
Apache: modern TLS only
SSLProtocol -all +TLSv1.2 +TLSv1.3
Cloudflare
SSL/TLS → Edge Certificates → Minimum TLS Version: TLS 1.2

Always use HTTPS (HSTS)

Tells browsers to never load your site over plain http, even if someone clicks an old http:// link or an attacker tries to downgrade the connection.

  1. Only turn this on once HTTPS works on every page, and on every subdomain if you add includeSubDomains: browsers will refuse plain http for as long as max-age says.
  2. Start with a short max-age (300 seconds), check nothing breaks, then raise it to a year (31536000).
nginx (inside the server { } block, then reload nginx)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule>
Cloudflare
SSL/TLS → Edge Certificates → HTTP Strict Transport Security (HSTS) → Enable
  Max Age: 12 months, Include subdomains: only if all of them use HTTPS
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'Strict-Transport-Security', value: "max-age=31536000; includeSubDomains" },
  ] }];
}

Content Security Policy

Lists where your pages may load scripts from. If an attacker manages to inject a script (cross-site scripting), the browser refuses to run it.

  1. Start in “report only” mode: the browser reports what the policy would block (in the developer console) without breaking anything.
  2. Open your pages with the console open, and add each site your pages really load from (analytics, fonts, maps, chat widgets) to the policy.
  3. When nothing is reported any more, rename the header to Content-Security-Policy to switch it on.
  4. Avoid 'unsafe-inline' and 'unsafe-eval' in script-src where you can: they let injected scripts run, which is what the policy is there to stop.
nginx (inside the server { } block, then reload nginx)
add_header Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://www.google-analytics.com; frame-ancestors 'self'; object-src 'none'; base-uri 'self'; form-action 'self'" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set Content-Security-Policy-Report-Only "default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://www.google-analytics.com; frame-ancestors 'self'; object-src 'none'; base-uri 'self'; form-action 'self'"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  Content-Security-Policy-Report-Only  =  default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://www.google-analytics.com; frame-ancestors 'self'; object-src 'none'; base-uri 'self'; form-action 'self'
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'Content-Security-Policy-Report-Only', value: "default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://www.google-analytics.com; frame-ancestors 'self'; object-src 'none'; base-uri 'self'; form-action 'self'" },
  ] }];
}
WordPress
Ask your host to add the header, or install a security-headers plugin (Plugins → Add New → search “security headers”) and switch it on there.

Can’t be framed (clickjacking)

Stops other sites showing your pages inside an invisible frame and tricking visitors into clicking buttons they can’t see.

  1. Allow your pages to be framed only by your own site. Set both headers: X-Frame-Options for older browsers, frame-ancestors (in the Content-Security-Policy) for current ones.
nginx (inside the server { } block, then reload nginx)
add_header X-Frame-Options "SAMEORIGIN" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set X-Frame-Options "SAMEORIGIN"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  X-Frame-Options  =  SAMEORIGIN
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'X-Frame-Options', value: "SAMEORIGIN" },
  ] }];
}
WordPress
Ask your host to add the header, or install a security-headers plugin (Plugins → Add New → search “security headers”) and switch it on there.
In your Content-Security-Policy
frame-ancestors 'self';

X-Content-Type-Options

Stops browsers guessing a file’s type, so an uploaded “image” can’t be run as a script.

  1. Add it once, where your site’s other settings are. If you use Cloudflare, a Transform Rule does it for every page without touching the server.
nginx (inside the server { } block, then reload nginx)
add_header X-Content-Type-Options "nosniff" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  X-Content-Type-Options  =  nosniff
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'X-Content-Type-Options', value: "nosniff" },
  ] }];
}
WordPress
Ask your host to add the header, or install a security-headers plugin (Plugins → Add New → search “security headers”) and switch it on there.

Referrer-Policy

Controls how much of your page address is passed to other sites when visitors click a link, so private addresses (reset links, search terms) don’t leak.

  1. Add it once, where your site’s other settings are. If you use Cloudflare, a Transform Rule does it for every page without touching the server.
  2. strict-origin-when-cross-origin sends only your domain to other sites, never the full address.
nginx (inside the server { } block, then reload nginx)
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  Referrer-Policy  =  strict-origin-when-cross-origin
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'Referrer-Policy', value: "strict-origin-when-cross-origin" },
  ] }];
}
WordPress
Ask your host to add the header, or install a security-headers plugin (Plugins → Add New → search “security headers”) and switch it on there.

Permissions-Policy

Switches off the camera, microphone and location for your pages and anything embedded in them, unless you need them.

  1. Add it once, where your site’s other settings are. If you use Cloudflare, a Transform Rule does it for every page without touching the server.
  2. Leave out any feature your site uses: for example, delete geolocation=() if you have a “find the nearest branch” map.
nginx (inside the server { } block, then reload nginx)
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  Permissions-Policy  =  camera=(), microphone=(), geolocation=(), payment=()
Next.js (next.config.js)
async headers() {
  return [{ source: '/(.*)', headers: [
    { key: 'Permissions-Policy', value: "camera=(), microphone=(), geolocation=(), payment=()" },
  ] }];
}
WordPress
Ask your host to add the header, or install a security-headers plugin (Plugins → Add New → search “security headers”) and switch it on there.

Cookie settings

Login and session cookies need Secure (HTTPS only), HttpOnly (scripts can’t steal them) and SameSite (other sites can’t use them) to protect your visitors’ accounts.

  1. Set the flags where the cookie is made: in the app or CMS settings, or in PHP for PHP sites.
  2. Secure: only sent over HTTPS. HttpOnly: page scripts can’t read it (so an injected script can’t steal a login). SameSite=Lax: not sent when another site makes the request.
  3. Cookies that scripts need to read on purpose (a cookie-banner choice, for example) can stay without HttpOnly.
PHP (php.ini, or ask your host)
session.cookie_secure = 1
session.cookie_httponly = 1
session.cookie_samesite = "Lax"
Node.js / Express
res.cookie('session', value, { secure: true, httpOnly: true, sameSite: 'lax' });
nginx in front of an app (nginx 1.19.3 or newer)
proxy_cookie_flags ~ secure httponly samesite=lax;
WordPress (wp-config.php, above “That’s all”)
@ini_set('session.cookie_secure', 1);
@ini_set('session.cookie_httponly', 1);
@ini_set('session.cookie_samesite', 'Lax');

Software versions hidden

Headers like “Server: Apache/2.4.29” or “WordPress 5.8” tell attackers exactly which known holes to try. Hiding them costs nothing.

  1. Turn off the version numbers in your server’s headers and your CMS’s generator tag. It doesn’t fix holes, but it stops telling attackers which ones to try.
  2. Then keep the software itself updated: hiding an old version is not the same as fixing it.
nginx (http { } block)
server_tokens off;
Apache (main config)
ServerTokens Prod
ServerSignature Off
PHP (php.ini): removes X-Powered-By: PHP/…
expose_php = Off
WordPress (your theme’s functions.php)
remove_action('wp_head', 'wp_generator');
Express
app.disable('x-powered-by');
Next.js (next.config.js)
poweredByHeader: false,

Up-to-date JavaScript libraries

Old versions of jQuery, Bootstrap and other libraries have published security holes that automated attacks look for.

  1. WordPress: update WordPress, your theme and every plugin (Dashboard → Updates). An old jQuery usually comes from an old theme or plugin; replace it if it’s no longer updated.
  2. A site you built: update the library to its current version, then test the pages that use it.
  3. Loaded from a CDN: change the version number in the <script> address.
npm projects
npm outdated
npm audit
npm install jquery@latest
From a CDN (current jQuery, with a checksum so a changed file is refused)
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
  integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
  crossorigin="anonymous"></script>

No insecure content (mixed content)

A script, style or frame loaded over http:// on an https page can be swapped by an attacker, which undoes the page’s protection.

  1. Change every http:// address of a script, stylesheet, image or frame on your pages to https://.
  2. WordPress: run a search and replace in the database from http://yourdomain to https://yourdomain (a search-and-replace plugin does it safely; back up first).
  3. As a safety net, the upgrade-insecure-requests setting makes browsers load anything you missed over https.
nginx (inside the server { } block, then reload nginx)
add_header Content-Security-Policy "upgrade-insecure-requests" always;
Apache (.htaccess or the site config; needs mod_headers)
<IfModule mod_headers.c>
  Header always set Content-Security-Policy "upgrade-insecure-requests"
</IfModule>
Cloudflare
Rules → Transform Rules → Modify Response Header → Create rule
  When: All incoming requests
  Then: Set static  Content-Security-Policy  =  upgrade-insecure-requests

Forms send securely

A form that sends to an http:// address, or asks for a password on a page without HTTPS, gives the typed details away to anyone listening.

  1. Serve every page over HTTPS (see the first items), and make each form’s action an https:// address, or a path like /contact that stays on your secure site.
HTML
<form action="/contact" method="post">  <!-- not action="http://…" -->

Other sites can’t read your data (CORS)

If your server trusts any website that asks, a malicious page can read your logged-in visitors’ data from it. We test by asking as a made-up site.

  1. Don’t copy the visitor’s Origin header back into Access-Control-Allow-Origin. List the exact sites that need access instead.
  2. Never combine Access-Control-Allow-Credentials: true with “*” or with a copied origin.
  3. If no other site needs to read your data, remove the CORS headers altogether.
Express (cors package)
app.use(cors({ origin: ['https://app.example.com'], credentials: true }));
nginx: allow one exact site
set $cors "";
if ($http_origin = "https://app.example.com") { set $cors $http_origin; }
add_header Access-Control-Allow-Origin $cors always;
add_header Vary Origin always;
PHP
$allowed = ['https://app.example.com'];
if (in_array($_SERVER['HTTP_ORIGIN'] ?? '', $allowed, true)) {
  header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);
  header('Vary: Origin');
}

Email: SPF record

Lists the servers allowed to send email for your domain, so others can’t easily send emails pretending to be you.

  1. Add one TXT record on your domain (Name: @) listing who sends your email. Use the line from your email provider.
  2. Only one SPF record per domain: if you use two providers, put both includes in the same record.
  3. End it with ~all or -all. Never +all, which lets anyone send as you.
Google Workspace
Type: TXT   Name: @
v=spf1 include:_spf.google.com ~all
Microsoft 365
Type: TXT   Name: @
v=spf1 include:spf.protection.outlook.com -all
Your host’s mail (cPanel)
Email → Email Deliverability → Repair (it writes the record for you)

Email: DMARC record

Tells Gmail, Outlook and others to reject or quarantine fake emails using your domain. Without it, phishing in your name gets delivered.

  1. Set up SPF first (and DKIM, which your email provider switches on).
  2. Add a TXT record named _dmarc. Start with p=none to receive reports without blocking anything.
  3. After two to four weeks of clean reports, change it to p=quarantine, then p=reject.
Start (monitor only)
Type: TXT   Name: _dmarc
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Goal (fake emails rejected)
Type: TXT   Name: _dmarc
v=DMARC1; p=reject; rua=mailto:dmarc@example.com

Who may issue certificates (CAA)

A DNS record naming the companies allowed to issue certificates for your domain, so nobody else can get one by mistake.

  1. Add a CAA record for each certificate company you use. Let’s Encrypt is the usual one. If you use Cloudflare, it adds the ones it needs automatically.
DNS
Type: CAA   Name: @
0 issue "letsencrypt.org"
0 iodef "mailto:security@example.com"

security.txt contact

A small file at /.well-known/security.txt that tells people who find a problem how to tell you, instead of posting it publicly.

  1. Create a text file at /.well-known/security.txt with a way to contact you and a date to review it by (no more than a year away).
/.well-known/security.txt
Contact: mailto:security@example.com
Expires: 2027-12-31T23:59:59Z
Preferred-Languages: en

No private files left public

A public .env, .git folder, database dump or backup zip hands over passwords, keys and your whole code. Bots look for these within minutes of a site going live.

  1. Delete the file or folder from the website’s public folder (public_html, www or htdocs). Backups and database dumps belong outside it, or off the server.
  2. If it held passwords or keys (.env, wp-config, a database dump, .git), assume they’ve been copied: change the database password, API keys, email passwords and admin logins it mentions.
  3. Stop it happening again: block hidden files and backup files in the server settings (below), and deploy with git pull or a build step instead of uploading the whole project folder.
nginx (inside server { })
# Hidden files and folders (.env, .git), except /.well-known
location ~ /\.(?!well-known) { deny all; }
# Backups, dumps and logs
location ~* \.(sql|sql\.gz|bak|old|save|swp|zip|tar|tar\.gz|7z|rar|log)$ { deny all; }
Apache (.htaccess)
# Hidden files and folders (.env, .git), except /.well-known
RedirectMatch 404 /\.(?!well-known)
# Backups, dumps and logs
<FilesMatch "\.(sql|bak|old|save|swp|zip|tar|gz|7z|rar|log)$">
  Require all denied
</FilesMatch>
WordPress
Delete wp-config.php.bak / .old / .save copies and debug.log from the server.
In wp-config.php keep WP_DEBUG_LOG off on the live site:
  define( 'WP_DEBUG', false );
  define( 'WP_DEBUG_LOG', false );

Databases and remote access closed to the internet

A database (MySQL, PostgreSQL, MongoDB, Redis) or remote desktop that answers anyone on the internet is one of the most common ways in: bots try default passwords on them all day.

  1. Close every port the public doesn’t need. A website needs 80 and 443; SSH (22) for you. Databases, Redis, Docker and remote desktop should never answer the internet.
  2. Make databases listen only on the server itself (127.0.0.1). If another machine needs them, allow only that machine’s address, or use an SSH tunnel or VPN.
  3. On shared hosting, ask your host to firewall the database port (in cPanel, Remote MySQL should list no hosts unless you need one).
Ubuntu firewall (ufw)
sudo ufw default deny incoming
sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enable
sudo ufw status
MySQL / MariaDB (my.cnf)
[mysqld]
bind-address = 127.0.0.1
PostgreSQL (postgresql.conf)
listen_addresses = 'localhost'
Redis (redis.conf)
bind 127.0.0.1 ::1
protected-mode yes
requirepass a-long-random-password
Docker (publish to localhost only)
# docker-compose.yml: Docker skips ufw, so bind ports to 127.0.0.1
ports:
  - "127.0.0.1:5432:5432"

Folders don’t list their files

If opening a folder like /uploads/ shows a list of every file in it, anyone can browse and download files you never linked to: invoices, CVs, backups.

  1. Switch off automatic folder listings for the whole site.
  2. Check the folders it listed for files that shouldn’t be public at all, and move those out.
nginx
autoindex off;
Apache (.htaccess)
Options -Indexes
cPanel
Advanced → Indexes → choose the folder → No Indexing → Save
Quick fix for one folder
Put an empty index.html file in the folder.

Admin and database tools hidden

A public phpMyAdmin or Adminer page lets anyone try to log in to your database. Public CMS logins (WordPress, Joomla) are normal, but need limits on login attempts.

  1. Remove phpMyAdmin or Adminer from the website if you don’t use them; use your host’s database manager in cPanel instead.
  2. If you need one, allow only your own IP address, or put a second password in front of it.
  3. For WordPress: limit login attempts, turn on two-factor login for admins, and switch off XML-RPC unless an app uses it.
nginx: only your IP
location /phpmyadmin {
  allow 203.0.113.10;   # your IP
  deny all;
}
Apache: only your IP (.htaccess in that folder)
Require ip 203.0.113.10
WordPress: block xmlrpc.php (nginx)
location = /xmlrpc.php { deny all; }
WordPress: block xmlrpc.php (.htaccess)
<Files xmlrpc.php>
  Require all denied
</Files>

Old TLS versions switched off

TLS 1.0 and 1.1 are from 1999 and 2006 and have known weaknesses. Browsers stopped using them in 2020; a server that still accepts them can be pushed into a weaker connection.

  1. Allow only TLS 1.2 and 1.3. Every browser from the last ten years supports them, so no visitor notices.
nginx
ssl_protocols TLSv1.2 TLSv1.3;
Apache
SSLProtocol -all +TLSv1.2 +TLSv1.3
Cloudflare
SSL/TLS → Edge Certificates → Minimum TLS Version → TLS 1.2
cPanel / WHM
WHM → Service Configuration → Apache Configuration → Global Configuration
  SSL/TLS Protocols: TLSv1.2 TLSv1.3

Not flagged by Google Safe Browsing

If Google has flagged your site for malware or phishing, Chrome, Firefox and Safari show visitors a red warning page. Hacked sites are often flagged before their owners notice.

  1. Open Google Search Console → Security issues to see which pages were flagged and why.
  2. Clean the site: restore a backup from before the hack, or remove the injected files and code (look for recently changed files, unknown admin users and plugins).
  3. Change every password (hosting, FTP, database, admin users), update all software, then click “Request review” in Search Console. Reviews take one to a few days.
Find recently changed files (SSH)
find /var/www -type f -mtime -14 -name "*.php" | head -50
WordPress: list admin users (WP-CLI)
wp user list --role=administrator
wp core verify-checksums
wp plugin verify-checksums --all

Going further

Can penetration testing be automated?

Partly. The free checker is passive: it reads what your site shows everyone. The deep scan goes one step further, but still only reads. A penetration test is active: it tries to break in, the way an attacker would. Much of that can be run by tools, on a schedule:

OWASP ZAP
Crawls the site like a visitor, then (in its active mode) sends test attacks to every form and parameter: cross-site scripting, SQL injection, path traversal and more.
Nuclei
Thousands of community-written tests for known holes in specific software (a WordPress plugin, a router admin page, a leaked config file), updated daily.
testssl.sh
Tests every TLS version and cipher your server accepts, and known TLS attacks like Heartbleed and ROBOT.
nmap
Finds open network ports: a database or admin panel reachable from the internet is one of the most common ways in.

What tools can’t do: they don’t understand your business. A customer who can see someone else’s orders by changing a number in the address, a discount code that works twice, or a price that can be changed in the browser all look normal to a scanner. Finding those takes a person.

Only with permission. Active tests send real attack traffic. Run them only on systems you own, or with the owner’s written permission saying what’s tested and when; anything else is illegal in most countries (in Malawi under the Electronic Transactions and Cyber Security Act, in the UK the Computer Misuse Act, in the US the CFAA). Test a copy of the site where you can, since active scans fill in forms and can create junk orders or emails.

Want your site tested properly? Talk to us: with your written OK, we run the automated tests from a separate machine (so your site’s own server is never involved) and check the parts tools miss by hand.

Exactly what the scan sends to a website

Nothing hidden, so you can run it on any site, and so a site owner who sees us in their logs knows what it was.

  • The page you typed, once, as a normal browser would ask for it.
  • The same page at its http:// address, to see whether it redirects to https.
  • The same page again with a made-up “Origin: https://evil.example” header, for the CORS check.
  • The file /.well-known/security.txt.
  • DNS lookups for SPF, DMARC, MX and CAA records (these go to DNS servers, not to your site).
  • For a whole-site scan: robots.txt, the sitemap, and up to 100 of your pages, 3 at a time. We obey robots.txt, skip login, cart and admin links, and stop if the site asks us to slow down.

Every request identifies itself as WebsitesAndSystemsSecurityChecker/1.0 with a link to this page. It can only reach public websites: addresses inside private networks are refused.

Questions

Is the website security checker free?
Yes, with no sign-up. To stop the tool being misused, each person can run 10 single-page scans every 10 minutes and 3 whole-site scans an hour, and each website can be scanned a limited number of times an hour. Results are kept for 24 hours, and opening them again is free.
Is it legal to scan someone else’s website?
The free scan, yes: it only reads what the site sends every visitor, like a browser does. It never tries to log in, guess passwords, send attack code or look for hidden files. The deep scan does look for hidden files and open ports, so it only runs on sites whose owner has verified them, the way Google Search Console checks ownership.
Will it slow down or harm my site?
No. A single-page scan makes about 4 ordinary requests. A whole-site scan loads at most 100 pages, 3 at a time, obeys robots.txt, never follows logout, cart or admin links, and stops if your server answers “too many requests”.
My site got a good grade. Is it secure?
It means the basic protections are switched on, which stops a lot of common attacks. It can’t see an out-of-date plugin that doesn’t show its version, a weak admin password, or a bug in how your site handles orders or logins. For that you need a penetration test.
Why did it get a lower grade than another scanner?
Each scanner weighs things differently. We count missing HTTPS, a bad certificate, unsafe cookies, known-vulnerable libraries and email spoofing most, because those are what small business sites actually get caught by. Headers that need careful setup, like Content-Security-Policy, count less.
Can it check my API?
Yes. Give it an API address (one that answers with JSON, for example) and choose “This page only”. It checks HTTPS, the certificate, CORS, cookies, version leaks and the headers that matter for an API, and skips the ones that only matter for web pages. To test logins, tokens and access to records too, use the API security checker.
The scan says my site blocked it. What now?
Some firewalls and bot protection (Cloudflare’s “under attack” mode, for example) turn away automated visitors, so we see the block page instead of your site. That’s not a problem in itself. Run the scan again later, or allow our checker in your firewall settings: it identifies itself as “WebsitesAndSystemsSecurityChecker”.
Do you keep the results?
Free scan results are kept in memory for 24 hours so a shared link opens instantly, then they’re forgotten. We don’t keep a list of the sites people scan. Deep scan results are saved, because they’re emailed to the owner and can be opened again; only the browser that verified the site and the owner’s email can see them.
What does the deep scan check, and why do I need to verify my site?
It asks for about 60 files that are often left public by mistake (.env, .git, backups, database dumps), looks for folder listings and public database tools, tries old TLS versions, and checks whether databases or remote access answer the internet. That’s what an attacker’s first sweep does, so we only do it for a site’s owner: you add a DNS record or upload a file to prove the site is yours.
Will the deep scan break anything or set off alarms?
It only reads: about 100 requests, a few at a time, plus one connection attempt to each of 13 ports. Nothing is submitted, uploaded or logged in to. A firewall may log it as a scan, so it runs from GitHub’s servers rather than ours, and identifies itself as “deep scan authorised by the site owner”.

More free tools for your website

Rather someone else did it? Our care plans keep your site updated, backed up and secure, or see all our free tools.

WhatsApp us