Skip to content
Nazmul Nikhil
Menu

HTTPS Page Links to HTTP JavaScript (Ahrefs): Browsers Block These Scripts

Ahrefs flags secure pages that load scripts over HTTP. Browsers block them, so features break. Here's how to switch every script to HTTPS.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HTTPS Page Links to HTTP JavaScript (Ahrefs): Browsers Block These Scripts
Photo: John Salvino on Unsplash

In short

Ahrefs flags "HTTPS page links to HTTP JavaScript" when a secure page loads a script over http://. Browsers treat scripts as active mixed content and block them, so whatever the script does simply doesn't happen. Change the script URL to HTTPS, or host the file yourself. If the provider has no HTTPS version, replace the script.

This is the most serious form of mixed content, because browsers don't just warn about it. They block it.

How to fix it

  1. Find the script tag in the page source (search for src="http://).

  2. Try the same URL with https://. Nearly all current providers support it.

  3. Update the tag where it's added: theme header, plugin setting, tag manager, or custom code.

  4. Check the Console on the page; the mixed content error should be gone.

WordPress: old analytics or widget code pasted into theme settings or header plugins is the usual source.

Shopify: check theme.liquid and app snippets.

Webflow and Wix: check custom code in site and page settings.

Custom builds: load scripts with relative paths or full https:// URLs, never http://. Also check Google Tag Manager for custom HTML tags with HTTP scripts.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditHttps page http javascriptMixed content script blockedHttp script on https page
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com