Overview
Hotlinking occurs when a website displays images or files by linking directly to content hosted on another server, instead of hosting the files locally.
Many hosting providers block hotlinking to prevent unauthorized use of their resources. When blocked, images may not load or may display a placeholder.
What Is a Hotlink Placeholder?
A hotlink placeholder appears when access to an externally hosted file is denied.
Instead of the expected image, you may see:
- A broken image icon
- A default placeholder image
- A message such as “Hotlinking not allowed”
Why This Happens
Hotlink issues can occur in several scenarios:
1. Hotlink Protection Is Enabled
- The original hosting server blocks requests from external domains
- Images cannot be loaded from outside the authorized domain
2. Website Was Moved or Migrated
- Images are still linked to the old server or domain
- The new site is attempting to load content from a location that is no longer accessible
3. Proxy or CDN Is Enabled (e.g., Cloudflare)
- Requests may appear to come from a different source
- The origin server may block these requests
4. Unauthorized External Links
- Images are embedded using URLs that are not permitted by the source server
- Access is denied due to security rules
Common Symptoms
- Images not loading on the website
- Broken image icons or placeholders
- Some images load while others do not
- Images work on one domain but not another
How to Fix It
To resolve hotlink-related issues:
- Ensure all images are hosted on your current server
- Update image URLs to point to your domain
- If needed, allow access by:
- Whitelisting your domain or IP on the origin server
- Updating server rules to permit external requests
- Disable hotlink protection temporarily for testing or permanently if required
This can typically be done under the WordPress Toolkit or hosting control panel settings
- If using a proxy/CDN, confirm it is not blocking access
Key Takeaway
Hotlinking occurs when your website loads images from another server. If that server blocks access, images will not display. The most reliable solution is to host images locally or configure access permissions correctly.
Comments
0 comments
Please sign in to leave a comment.