Guides11 min read

How to safely replace copyrighted images on your site

Learn how to replace copyrighted images safely: remove risky files, find licensed replacements, clear CDN and search copies, and document the fix to defend a claim.

By Suraj, founder of PixGuard · Published · Updated

To safely replace a copyrighted image, remove it from the live page, swap in an alternative you have clear rights to use (your own photo, a public-domain work, or properly licensed stock with a saved receipt), then purge cached copies on your CDN and ask search engines to recrawl or drop the old image URL. Finally, preserve a record of the original file and the removal date, and check which other images need attention across your site. Deleting the file alone is not enough, because copies often linger in places you cannot see from the front end.

Why deleting the file is only step one

When you find a risky image, the instinct is to hit delete and move on. That handles the visible page, but the internet keeps copies. The same image can still be reachable through your content delivery network, search engine image results, and public archives long after the original URL is gone.

This matters because enforcement firms and rights holders do not only look at your live site. Getty Images uses PicScout, a perceptual-hash crawler that fingerprints images and matches them wherever they appear. Firms like Higbee & Associates and PicRights build demand letters from evidence they capture at a moment in time, and that evidence can include archived or cached versions. So a clean live page with a dirty cache still leaves you exposed.

If you have not yet identified which images are risky, start with a scan before you start deleting. Our guide on how to audit a website for copyrighted images walks through building the full list so you replace everything in one pass instead of playing whack-a-mole.

Step 1: Remove the risky image from the live site

Begin with the obvious. Remove the image reference from every place it appears: the page or post body, the featured-image slot, theme headers and banners, sliders, and any hard-coded template calls.

On WordPress, deleting an attachment from the media library does not always remove it from pages that still reference the file by URL. Search your content for the filename, not just the media entry. Old posts, landing pages, and email templates often reuse the same asset, and theme demo content and duplicate uploads with slightly different filenames are easy to miss. Renaming a file does not help either: as our post on how copyrighted images give themselves away explains, agencies recognize images by what they look like, not by their filenames.

Do not permanently destroy the file yet. You will want a copy for your records, which we cover in Step 5.

Step 2: Choose a replacement you have the rights to use

A replacement is only useful if it does not create the same problem. Here are the categories that hold up, ranked by how defensible they are.

Replacement sourceWhy it holds upWhat to verify
Your own photography or graphicsYou are the rights holderNothing, as long as no one else's work appears in the frame
Public-domain worksNo active copyrightConfirm the work is truly public domain in the US, not just old-looking
Properly licensed stockYou hold a valid licenseThe license covers your use (web, commercial, print), and you saved the receipt
Free-tier libraries (Unsplash, Pexels, Pixabay)Permissive default licensesEach image's specific terms, since some require attribution or restrict certain uses

Free libraries like Unsplash, Pexels, and Pixabay are generally permissive, but "generally" is doing real work in that sentence. Individual contributors sometimes upload images they did not have the right to share, and license terms can vary per image. Read the license shown on the specific photo, and keep a note of where you downloaded it and when.

If you are considering an AI-generated image as a replacement, know that in the US a purely AI-generated image with no human creative authorship cannot be registered for copyright, and using one does not protect you if it reproduces a protected work. Check any AI candidate the same way you would check stock; our guide on detecting AI-generated images explains the signals to look for.

For anyone on WordPress replacing images at scale, PixGuard's WordPress page explains the free PixGuard Scanner plugin, which connects to your PixGuard account with an API key so you can re-check pages as you swap files; each new image it checks uses one image credit.

Checking images one by one takes time

PixGuard flags images with copyright risk signals, so you know which ones to investigate first. Paste a page URL to check its 3 largest images, free and without signup.

Step 3: Clear CDN copies and old search results

This is the step most people skip, and it is the one that leaves a live claim open after you think you are done.

Removing an image from the live page does not remove copies on your CDN, in search engine image results, or on the Wayback Machine. Each of these needs its own action.

Your CDN and page cache

If you use Cloudflare, Fastly, a WordPress cache plugin, or a host-level cache, purge the specific image URL or run a full cache purge. Until you do, the CDN can keep serving the old file from edge nodes even though your origin server no longer has it. Confirm the purge by loading the old image URL directly in a private browser window. It should return a 404 or "not found," not the image.

Google and Bing search results

Google retired its public cached pages in 2024, but its search results and Google Images can keep showing the old image until the page and the image URL are recrawled. In Google Search Console, use URL Inspection to request a recrawl of the updated page, and the Removals tool to temporarily hide the old image URL from results. Bing offers a similar content-removal tool in Bing Webmaster Tools. These requests speed up what would otherwise happen slowly on the next crawl.

The Wayback Machine and public archives

Web archives are the hardest to address because they are designed to be permanent. You can submit an exclusion request to the Internet Archive, but there is no guarantee of removal. This is exactly why documentation (Step 5) matters: if an archived copy surfaces later, you want to show the image was removed promptly once discovered.

Verify with a re-crawl

After purging, request the old URL again from a few networks. A cached copy that still loads means the purge did not propagate. Do not assume; check.

Step 4: Check the replacement itself

Swapping one risky image for another is a common and expensive mistake. Before you consider a page fixed, run the replacement through a copyright-risk check the same way you would check any image.

A PixGuard account scan checks EXIF, IPTC and XMP copyright fields, watermark text and logos from major stock agencies, matches against a database of reference image fingerprints, and an AI-generation estimate, then gives each image a 0 to 100 risk score with the reasons behind it. It flags images for review and estimates risk. It does not confirm infringement, and it is not legal advice. What it does well is flag the obvious signals before an image goes live: a "free" image that still carries a Shutterstock watermark, or a stock file whose metadata names an agency or photographer.

A free account includes 30 image scans, valid for 30 days, with no credit card, and you can upload single JPG, PNG, WebP or GIF files up to 10 MB. That is enough to vet a batch of replacements before they go live. If the replacements are already on a page, you can also check that page free without signup: PixGuard looks at its 3 largest images for watermark patterns and other visual risk signals.

Step 5: Preserve evidence and document the fix

Do not shred the original file the moment you remove it. Preserve evidence of the original file and the removal date rather than destroying it, in case a claim arises.

Keep a simple remediation record. For each image you replaced, note:

  • The original filename and where it appeared on your site
  • The date and time you discovered it and the date you removed it
  • The replacement you used and its license or source (with the saved receipt or license page)
  • Confirmation that the CDN was purged and recrawl or removal requests were sent

Why keep the original? If a demand letter arrives later, this record lets you show good-faith remediation and pin down the exact window the image was live. That helps you and any attorney assess exposure. In the US, statutory damages under 17 U.S.C. 504(c) range from $750 to $30,000 per work, and up to $150,000 for willful infringement, for works registered in time (17 U.S.C. 412), so the difference between "we removed it the day we found it" and "we cannot say when it came down" is meaningful. If a claim does proceed, a documented, prompt fix is easier to defend, whether the claim arrives as a demand letter, a DMCA takedown, a Copyright Claims Board case or a federal lawsuit.

Store this record somewhere outside the site itself, such as a spreadsheet or a folder in your cloud storage, so it survives any future site rebuild.

Step 6: Re-scan the rest of the site, not just the fixed page

A single-page fix does not tell you the rest of your site is clean. The same stock file or AI image often appears across multiple pages, in old blog posts, in a secondary theme, and in staging content that got pushed to production.

Re-scanning after replacement shows whether images with risk signals remain across pages, themes, and old posts. Treat it as the closing step of remediation, not an optional extra. Scan the live site, and if you keep a staging environment, scan that too so an old image does not reappear on your next deploy. A PixGuard website scan follows links across up to 50 pages, and images it has already analyzed are shown from cache at no cost, so a re-scan mainly spends credits on new images.

Set a reminder to re-scan periodically. Team members add images over time, plugins inject demo content, and a site that looked fine in January can pick up risk by June.

Frequently Asked Questions

Does deleting an image from my site remove it from Google search results?

Not right away. Google retired its public cached pages in 2024, but Google Images, Bing, your CDN, and web archives can keep showing or serving the old image until each is updated or cleared. Request a recrawl or a temporary removal in Search Console, use the removal tool in Bing Webmaster Tools, purge your CDN, and verify the old URL no longer loads.

Are Unsplash, Pexels, and Pixabay images good replacements?

They are permissive by default, which makes them good candidates, but you should still verify each image's specific license terms. Contributors occasionally upload work they did not have rights to, and some images carry attribution or usage conditions. Save a note of the source and date for each image you use.

Should I delete the original file completely?

Not immediately. Preserve a copy of the original and record the removal date before destroying anything. If a claim arises later, that record helps establish when the image was live and shows you acted promptly once you found it.

Can PixGuard tell me if an image is definitely infringing?

No. PixGuard flags images for review and estimates copyright risk based on signals such as watermarks, copyright metadata, fingerprint matches, and an AI-generation estimate (plus source lookup on Pro and Business). It returns a 0 to 100 risk score to help you prioritize. It does not confirm infringement and is not legal advice. Treat a high-risk flag as a reason to replace the image or consult an attorney.

How do I check the rest of my site after replacing images?

Re-scan every page, including old posts, secondary themes, and staging, after you finish replacing. A single-page fix does not account for the same image appearing elsewhere. A re-scan shows whether images with risk signals remain; it cannot prove that all your images are licensed, so keep your license records alongside the results.

Fix it once, and confirm it stuck

Replacing a copyrighted image safely is a chain: remove it, replace it with something you have clear rights to use, clear every CDN copy and ask search engines to recrawl, document what you did, and re-scan to see what is left. Skip a link and you can still get a letter for an image you thought was gone.

Ready to check your replacements and see what else needs attention? Create a free account for 30 image scans, valid for 30 days, no credit card required.

See which images on your site need a closer look

Paste a page URL and PixGuard checks its 3 largest images for copyright risk signals, free and without signup. A free account adds 30 image scans (valid 30 days); each site scan crawls up to 50 pages and checks up to 10 new images on the free plan.