On this page
What this issue is
Hotlinking (also called inline linking) is when an <img> tag points to a file on a domain you do not control, for example <img src="https://other-site.com/photos/team.jpg">. Your page works only while that file stays at that address.
It happens when someone pastes an image URL into an editor, copies HTML from another site, uses an old stock-photo link, or embeds a file from a previous host or staging site. Many sites also block hotlinking on purpose and return an error or a replacement image.
Why it costs you leads or sales
The impact is usually low but real. A missing product photo, logo or proof image makes a page look abandoned and lowers trust at the moment someone decides whether to fill in a form or buy. Missing images also drop out of image search and can leave empty slots in your layout.
The bigger problem is that it fails silently. Nothing changes on your side, so nobody notices until a visitor does. You also depend on another server's speed and rules, and you may be using a picture without the right to do so.
- Your pageContains an img tag pointing to another domain
- Other site's serverFile moved, deleted or hotlink blocked (404 or 403)
- Broken image shownEmpty box or alt text appears to visitors
- Trust and conversionPage looks unreliable, fewer enquiries
The image is fine on day one. The break happens on someone else's server.
Day 1
You paste an image URL from another site. It displays fine.
Month 8
The other site redesigns and renames its image folders.
Month 8, same day
Your image returns 404 and shows as a broken picture.
Month 11
A visitor or colleague finally spots the gap.
How to check if your site has it
You need a list of every image whose address is on a domain other than your own. Pick the method that fits your site size.
Check a single page in the browser
Open the page, press F12, go to the Network tab, filter by Img and reload. Sort by Domain. Any row whose domain is not yours (or a CDN you set up) is hotlinked.
Search the page source
View source and search for
<imgandsrcset. Look forsrcvalues starting withhttpand a different domain. Also check CSSurl(...)values.Crawl the whole site
Use a crawler such as Screaming Frog or Sitebulb. Crawl with external resources enabled, then filter the Images tab for URLs outside your domain.
Search your content databaseWordPress
On WordPress, a database search for
src="httpin post content (a plugin such as Better Search Replace can show matches) reveals images pasted from elsewhere.Test each external URL
Open each external image address directly. A 404, 403 or a replacement image means it is already broken or blocked.
[...document.images]
.filter(i => new URL(i.currentSrc || i.src, location.href).hostname !== location.hostname)
.forEach(i => console.log(i.currentSrc || i.src));How to fix it
The fix is the same everywhere: get a copy of the image you have the right to use, upload it to your own site, and replace the external address. If you do not have the rights, use a different image.
Confirm you may use the image
If it is your own image from an old host, fine. If it belongs to someone else, get permission or choose a licensed or original image.
Get the file
Download it from the original source, your old host or your backups. If it is already gone, find the source file or replace it.
Optimise and rename
Resize it to the size you need, compress it and give it a descriptive file name.
Upload to your site and swap the link
Use your platform's media library (see the tabs below) and replace the old image in the page.
Keep the alt text
Make sure the new image has a short, accurate alt attribute.
Upload to the Media Library
Go to Media > Add New and upload your copy.
Replace in the editor
Open the page, click the image block, choose Replace > Open Media Library and select the new file. For many posts, a plugin that imports external images into the Media Library can do it in bulk. Back up first.
Check page builders and widgets
Elementor, Divi and similar builders store images in their own fields. Check headers, footers, sliders and widgets too.
Upload to Files or the product
Go to Content > Files and upload, or add the image on the product itself under Media.
Fix descriptions and sections
In product descriptions, blog posts and pages, open the HTML view (<>) and replace external src values with your Shopify file URL. In the theme editor, reselect images in sections.
Check theme code
In Online Store > Themes > Edit code, search for
httpinimgtags inside sections and snippets.
Check Custom HTML tags
Open Tags and look for Custom HTML tags that inject images or banners from another domain.
Point to your own file
Upload the image to your site and replace the URL in the tag. Preview and publish.
Upload to Assets
Open the Assets panel and upload your copy.
Replace image elements
Select the image element, then Settings > Replace image. For images inside Embed elements or rich text, edit the HTML and swap the URL.
Upload to Media Storage
Go to Media Storage and upload the file.
Replace in funnels, sites and emails
Open each funnel or website step, select the image and choose the new file. Check custom code blocks and email templates for external image URLs too.
Upload to Media Manager
Upload the image to the site's Media Manager.
Replace on the page
Select the image in the editor and choose Change Image. Check any embed (HTML iframe) elements for external URLs.
Upload through the image block
Edit the page, click the image block and choose the pencil/edit icon to upload your file.
Check code blocks
Code blocks and Code Injection can hold raw img tags with external URLs. Replace them with your uploaded image URL or an image block.
Save the file in your project
Add the image to your assets folder or your own storage or CDN.
Update the markup
Change the src, srcset and CSS url() values to the new path, then deploy.
Hotlinked
- src points to another domain
- Breaks when the owner moves or blocks the file
- You cannot control speed or caching
- Usage rights may be unclear
Self-hosted
- src points to your domain or your own CDN
- Stays up as long as your site does
- You control size, format and caching
- You hold or have checked the licence
<!-- Before -->
<img src="https://other-site.com/photos/team.jpg" alt="Our team">
<!-- After -->
<img src="/images/team-office-2024.jpg" alt="Our team in the London office" width="1200" height="800">How to confirm it's fixed
- The console snippet above lists no unexpected external image URLs
- A fresh crawl shows no images on domains you do not control
- The Network tab shows every image returning 200
- Images also display in an incognito window and on mobile
- Headers, footers, sliders, emails and CSS backgrounds were checked too
How to prevent it happening again
- Always upload images to your own media library instead of pasting a URL
- Tell editors never to copy image addresses from other sites
- Run a crawl for external images after each redesign or migration
- Check old staging or previous-host URLs after moving a site
- Keep a record of where each image came from and its licence
How FunnelGuard handles this
FunnelGuard covers this issue only partly. When its robot visitor runs your journeys and loads the pages, it reports broken resources when they return a 404. So if a hotlinked image has already disappeared and the file returns a 404 on a page in a monitored journey, you can be alerted, with a screenshot and a likely cause.
What it does not do: it does not list every image that points to another domain, so a hotlinked image that still works is not flagged. It will not catch images blocked in ways other than a 404, and it only sees pages that are part of your journeys, not your whole site.
To cover the rest by hand, run the console snippet on key pages, crawl the site for external image URLs every few months and after every migration, and replace anything you do not control. A free read-only website audit is also available, and the Free plan includes 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Why are my images disappearing from my website?
The most common cause is hotlinking: the image is loaded from another domain and the owner deleted, renamed or blocked the file. Open the broken image address directly to see if it returns a 404 or 403. Then replace it with a copy hosted on your own site.
What is image hotlinking?
Hotlinking is displaying an image on your page by pointing to its file on someone else's server instead of hosting it yourself. It uses their bandwidth and works only while they keep the file at that address.
How do I find hotlinked images on my website?
Open the browser's Network tab, filter by Img and look for domains that are not yours. For a whole site, crawl it with a tool such as Screaming Frog with external resources enabled and filter images by domain.
Does hotlinking hurt SEO?
Not directly as a penalty, but broken images hurt user experience and drop out of image search. Hotlinked images also give the other site the benefit of hosting them and slow your pages if their server is slow.
Is it illegal to hotlink images?
It depends on the image's licence and local law, and some owners treat it as unauthorised use. Use images you own or are licensed to use, and host your own copy unless the licence says otherwise.
How do I replace hotlinked images in WordPress?
Upload your copy under Media > Add New, then open each page and use Replace on the image block to select it. Check page builder fields, widgets and headers too. Back up before any bulk replacement.
Can FunnelGuard detect hotlinked images?
Only partly. It reports broken resources that return a 404 on pages in your monitored journeys, but it does not list working images loaded from other domains. Use a crawl or the browser console for those.