Category: SEO

How to Fix HTTP 406 Errors for AI Crawlers on HostGator and Wordfence

Reading Time: 2 minutes

If you run an automated site audit or check your web server logs and discover an HTTP 406 Not Acceptable status code blocking crawlers like CCBot, GPTBot, or ClaudeBot, your server security layer is rejecting automated requests before they can reach your content.

For WordPress sites hosted on HostGator shared hosting running Wordfence, this issue almost always stems from either server-level security modules (ModSecurity) or WordPress firewall rules.

Here is a step-by-step guide to understanding why this happens and how to resolve it.

What is an HTTP 406 Error?

An HTTP 406 Not Acceptable response means the web server receives a request containing headers (such as User-Agent or Accept) that fail to meet strict server security criteria.

When AI crawlers or audit tools visit your site, they often use simplified headers or non-standard user agents. Security filters interpret these unusual signatures as potentially malicious bot traffic and actively reject the connection with a 406 status.

Step 1: Check Wordfence Firewall & Live Traffic

Wordfence monitors incoming traffic for unknown user agents, missing browser headers, or high request rates.

  1. Review Live Traffic Logs:
    • Log into your WordPress Dashboard.
    • Navigate to Wordfence > Live Traffic.
    • Filter by Blocked or search for recent entries involving crawler user agents (e.g., CCBot).
    • If Wordfence is responsible, it will display the specific rule triggered (e.g., False Googlebot, Rate Limit Exceeded, or Header Inspection Failure).
  2. Adjust Firewall Settings:
    • Navigate to Wordfence > Firewall > Manage Firewall.
    • Review your Whitelisted URLs and Rules to ensure standard AI training and research crawlers are allowed.
    • Consider setting Wordfence to Learning Mode temporarily under Basic Firewall Options to let the firewall adapt to automated testing requests.

Step 2: Disable or Configure HostGator’s ModSecurity (Most Common Cause)

On HostGator shared hosting accounts, Apache ModSecurity runs in front of WordPress. ModSecurity frequently intercepts non-browser traffic and issues a 406 Not Acceptable error before the request ever reaches Wordfence.

  1. Access cPanel:
    • Log into your HostGator cPanel account.
  2. Locate ModSecurity:
    • Scroll to the Security section and click ModSecurity.
  3. Test by Disabling ModSecurity:
    • Turn ModSecurity Off for your specific domain.
    • Re-run your site audit or crawler check.
  4. Resolution:
    • If turning ModSecurity off fixes the 406 error, ModSecurity is the root cause.
    • Recommendation: If you prefer to keep ModSecurity enabled for security, contact HostGator Support via Live Chat and ask them to whitelist the specific ModSecurity rules triggering 406 responses on non-browser User-Agent headers.

Step 3: Inspect .htaccess Rules

Security plugins or past custom configurations may have inserted header inspection directives into your .htaccess file.

  1. Open your .htaccess file using cPanel File Manager or FTP.
  2. Look for rules containing RewriteCond %{HTTP_USER_AGENT} or Header set directives that block empty or non-standard user agents.
  3. If necessary, test with the clean default WordPress .htaccess configuration:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Summary Checklist

  • [ ] Check Wordfence Live Traffic for blocked crawler requests.
  • [ ] Temporarily disable ModSecurity in HostGator cPanel to isolate the issue.
  • [ ] Contact HostGator support to whitelist ModSecurity rule IDs if necessary.
  • [ ] Verify .htaccess does not contain custom user-agent blocks.

Resolving these firewall blocks ensures your site remains accessible to legitimate search engines, AI models, and automated auditing tools.

Background

I had to do this because the AI Visibility audit tool by Stephen Burns brought up a few 406 errors on my sites, which are on Hostgator and run Wordfence. I could not see any issues in Wordfence, so the block must be with the shared hosting platform.

 

How to Leave a Slack Workspace

Reading Time: 2 minutes

I needed to leave a couple of workspaces (Slack’s official term, although some people might call them a Channel,  Group, Community, etc) because the owners were getting a little too enthusiastic in getting people to be active.

How to Leave a Slack Workspace

I’m unsure why Slack has made it so unintuitive to leave a workspace. This is how to do it.

1. Open the Slack App

  • Click your profile picture at the bottom left.
  • Click “Profile”
Click your profile image.
Click your profile image.

2. Edit Profile

The Profile dialog box opens on the right.

  • Click the three dots.
Profile dialog opens on the right.
The Profile dialog box opens on the right.

3. Change Account Settings

Yes, you might be wondering where this is going.

  • After you click the three dots, your browser will open to the workspace’s URL, e.g. your-workspace.slack.com at your Account Settings tab.
  • Scroll down to Deactivate Account.
  • This is the scary part. No, you are not closing your Slack account. You are simply leaving this workspace.
  • Click “Deactivate your account.” You will be asked to confirm your Slack password and you will leave this workspace (after a few “Are you sure,” “Are you really, really sure” questions.)
Deactivate your account.
Almost the last step to leave the workspace.

You will hit another snag at this point. When you were sent a link to click to join a Slack workspace, you clicked it and you got in. What you won’t know until you try to leave that workspace is that you need a password for that workspace! The wording is misleading, as it mentions “your Slack password”, but your have probably not created one for that workspace.

Create Slack password.
Create Slack password.

You click the link to be sent an email to “reset” your nonexistent password. See how hard Slack makes it to leave?

No, I never had a password.
No, I never had a password.

Whatever. Just follow these instructions. Enter your new password.

Yes, deactivate it!
Yes, just deactivate it!

OMG, they don’t want you to leave!

Yes, I mean it.
Yes, I mean it. Please don’t ask again!
Free at last!
Free at last! Free at last! Free at last!

4. Clean Up the App

The desktop app will still show the exited workspace icon with an exclamation mark. To remove it, do the following:

  • Press Ctrl+Shift+S
  • Right-click the icon
  • Choose Remove
Removing the last fingerprint.
Removing the last fingerprint of the workspace.

That’s all.

SEO and CEOs – Never the Twain Shall Meet

Reading Time: 2 minutes

This is a placeholder post for a future possibility that I hope does not occur. If it does, this is the “I told you so.” record. Hence identifiable details are missing. One of my hobby horses is that the C-suite of companies does not place much importance on SEO. Either they acknowledge it but don’t want to know anymore, or they reject the idea completely. This story is the latter kind.

It’s about a small, VC-funded company that has just raised a third round. It was founded more than six years ago. It has a brilliant, niche technical product and its customers are B2B professionals. To obscure the company’s identity further, let’s say the product is a left-handed electric drill and the company name is Acme. It has almost no competitors. There is also a software suite to manage such a drill – two products, at best. I think I’m more excited about the product than its CEO.

Site Crawl

The WordPress website is hosted at WPEngine and built with WPBakery. A two-product website should have about 20-25 core pages at best and any number of blog posts. A site crawl should take less than an hour. The crawl took 53 hours, running at around 5 URLs per second! Google crawls much faster.

Site crawl
Site crawl

The image shows 81,671 HTML pages out of a total of over 800,000 URLs, which include supporting code files (JS, CSS) and images. For just two products?

Lighthouse scores for the home page.
Lighthouse scores for the home page.

The page load time is poor, but it’s not the biggest challenge for the company.

SEO Challenges

There are a few red flags:

  • The company name ranks #1, as it should. (This is not a red flag.) The name is shared with at least two, perhaps more, products in other industries. Many companies have chosen their brand names like that, but it’s too late to change it. As an aside, a previous employer’s name was changed to an everyday verb! It did not survive the name change.
  • 99% of third-party mentions of the company are about its VC funding efforts.
  • If you search Google for this niche technology, this company does not show.
  • The website is nowhere to be found for its likely unbranded keywords.
  • Unsurprisingly, according to Ahrefs, the highest number of daily organic visits in the past 12 months was 13. OK, I don’t have access to their analytics data, but external estimates are usually in the ball park.
  • I cannot find any independent product reviews. A lone “review” was written by their own consultant two years ago after some seed units were installed in a few dozen locations.
  • Several relevant forums and social platforms have no mention of this company or its products.
  • Experienced SEOs can easily work out the likely reasons for the huge URL count. I’m not spelling it out here, as this isn’t an audit.
  • I have known the CEO for many years, but he has ignored two emails asking to discuss their SEO.  Being on two continents and time zones, email is the best channel for now. As another aside, at least 10 other CEOs I have known personally showed no interest in discussing SEO.

Why are CEOs like this?

Mastodon