Title: WP Replace Unlicensed and Broken Images
Author: CK MacLeod
Published: <strong>19 juli 2016</strong>
Last modified: 13 maart 2017

---

Plugins zoeken

![](https://ps.w.org/wp-replace-unlicensed-and-broken-images/assets/banner-772x250.
png?rev=1457311)

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://ps.w.org/wp-replace-unlicensed-and-broken-images/assets/icon-256x256.
png?rev=1457311)

# WP Replace Unlicensed and Broken Images

 Door [CK MacLeod](https://profiles.wordpress.org/ck-macleod/)

[Download](https://downloads.wordpress.org/plugin/wp-replace-unlicensed-and-broken-images.zip)

 * [Details](https://nl.wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/)

## Beschrijving

WP Replace Unlicensed and Broken Images (WP-RUBI) replaces images selected by date,
post, category, author, file location, and/or image type with a user-adjustable 
default image on a site’s public-facing Front End – in other words, on display –
and will also, unlike common Javascript/jQuery solutions for broken images and links,
prevent load errors and search engine “crawl” errors that can harm Search Engine
Ranking. A primary use will be for sites where – due to policy change or concerns
relating to usage rights and copyright infringement – administrators need to expunge
images that have been used without permission or under lapsed or lapsing usage licenses,
while avoiding a time-consuming, complex, hard-to-reverse, potentially costly and
inefficient database purge. Another use will be for sites whose image archives have
been corrupted or lost.

WP-RUBI will do nothing until the site administrator has determined which images
or types of images to remove and replace. All post images and image links that are
matched in posts selected either individually or globally – for instance, all posts
from before a certain publication date – will be replaced by links to a simple, 
customizable “image removed” image when the page is displayed: The change is made
just-in-time as the post is loaded, altering the page “source” as rendered, but 
_not_ affecting the database. If at some future time the site operator wishes to
restore lost images, or “whitelist” a post, author, category, time frame, or image
type, then the original links and formatting information will still be easily accessible.

**WP-RUBI is a powerful plug-in, potentially allowing for far-reaching alterations
in your site’s appearance, but it makes no permanent changes to your posts database
or image library or any other files: Changes can be immediately rolled back by resetting
to defaults via Main Settings, or by de-activating (or uninstalling). Still, as 
generally with WordPress Plug-Ins, the further your installation diverges from a“
basic” WordPress site – by employing unique frameworks, complex themes or plug-ins,
or specialized customizations – and the higher your traffic, the more care and caution
you should employ when installing, activating, and configuring WP-RUBI.**

Also note that WP-RUBI is designed with typical WordPress sites in mind. Though 
it can also be set to remove and replace copy-protected and externally served images(
as long as display relies on `<img src=` tags), it may not function optimally, if
at all, or may require careful adjustment, when used with sites or themes relying
on unusual image delivery and display methods, or that significantly diverge from
other standard practices: “gallery”-style themes that may extract image links from
post content and convert them into CSS backgrounds, for example. More commonly, 
caching and copy protection plug-ins, CDNs lacking purge options, and so on, may
need to be flushed and reset, or in some instances disabled, for WP-RUBI to achieve
the intended results.

### Background

In recent years, with the maturation of the internet and especially of the “blogosphere,”
sites where photos and other images have been copied and displayed without concern
for the rights of artists and services have come under enhanced scrutiny, sometimes
resulting in costly lawsuits and threats of lawsuits. In addition, some site operators,
especially as they have gotten more successful, have simply undergone a change in
thinking about common internet practices viewed by some artists as theft.

Many or perhaps most bloggers still operate without concern for image licensing,
and some have discovered – sometimes at significant cost – that, as one victim of
a “copyright-trolling” lawyer put it, “Current Fair Use image copyright laws say
that you’re financially liable for posting copyrighted images.”* You may be liable
for unlicensed use of images even if:

 * You did it by accident
 * You immediately take down the picture after receiving a DMCA takedown notice
 * The picture is resized
 * The picture is licensed to your web developer
 * You link back to the photo source and cite the photographer’s name
 * Your site isn’t commercial and you make no money from your blog
 * You have a disclaimer on the site
 * The pic is embedded instead of saved on your server
 * You found it on the Internet (that’s not an excuse!)

The core of this plug-in was originally implemented on a large site in one such 
predicament: The operators, after having been challenged by a copyright lawyer demanding
thousands of dollars in payment for the use of a single unpaid-for image, and facing
a steep legal bill even in pursuit of an eventually successful defense, decided 
to stop displaying any images whose usage rights were not fully cleared.

The operators were left with thousands of unlicensed images associated with archived
posts – along with many images that were used fairly (because original to the site
or author, or in the public domain). Finding and replacing images as well as image
links presented numerous complications: Simply deleting image archives rather than
editing the posts would produce numerous load errors, which would harm the site’s
search engine ranking, produce unprofessional “broken images” display, and make 
restoration of good posts difficult where not impossible. Using a Javascript solution
that obscured broken images and links might improve display, but would leave errors
in place, and have no effect on unwanted images that were not deleted.

### Using WP Replace Unlicensed and Broken Images

WP Replace Unwanted and Broken Images enables an Administrator to bring his or her
site into effective compliance quickly, and then to recover “good” images if desired,
while preserving archives. The plug-in adds numerous additional choices and other
improvements to the earlier “WP Replace Old Images,” making it easier for an Administrator
to refine the “purge,” and for the site’s editors and authors to restore old posts
and archives to full health.

Improvements include:

 * Posts can be excluded or included via Edit Post
 * Posts can be excluded or included via All Posts Quick and Bulk Editing
 * Featured images (or thumbnails) also can be removed/replaced
 * Easy Inclusions or exclusion from image removal/replacement for authors and categories,
   and for “after” as well as “before” dates
 * Replacement images provided with “cache-busting” queries (so changes to Front
   End can take effect immediately)
 * User can upload own replacement image from Settings page, or choose “blank” and“
   erasure” replacement modes
 * Installation routine preserves old settings on upgrade
 * Detailed usage notes/tips/documentation
 * Translation-ready

_ALSO NOTE DISCLAIMER: Developer makes no promises or guarantees that use of this
plug-in will secure a site against all claims of copyright infringement based on
past practices. No one can do that!_

*Description and list of Fair Use liability issues from [“The $8,000 Mistake That All Bloggers Should Beware”](http://www.contentfac.com/copyright-infringement-penalties-are-scary/)

### Additional Info

#### Still to Come

 1. “Recuperation” workflow – list and select cured/uncured posts/authors/categories
 2. Additional image selection patterns and inclusion/exclusion options
 3. Optional database purge
 4. Development of Digital Artists Alliance site and network

Check the [WP-RUBI home pages](http://ckmacleod.com/wordpress-plugins/wordpress-replace-unlicensed-and-broken-images/)
for additional background, usage tips, and minor updates, or to [contact the developer](http://ckmacleod.com/wordpress-plugins/wordpress-replace-unlicensed-and-broken-images/get-replace-images-support/).

#### Thanks!

To all of the developers and everyday code-hackers, far too numerous to name, upon
whose work I have depended. And Thanks to [thatgrrl](https://profiles.wordpress.org/thatgrrl)
for catching a bad link to the plug-in’s home page!

## Schermafbeeldingen

[⌊Settings Page⌉⌊Settings Page⌉[

Settings Page

[⌊Before⌉⌊Before⌉[

Before

[⌊After⌉⌊After⌉[

After

[⌊After - Selective⌉⌊After - Selective⌉[

After – Selective

[⌊New Columns in All Posts and Quick Edit⌉⌊New Columns in All Posts and Quick Edit⌉[

New Columns in All Posts and Quick Edit

## Installatie

Use the normal WordPress add new plugin routine, or:

 1. Download the plugin.
 2. Upload the plugin to your site’s wp-content/plugins directory.
 3. Activate the plugin in the WordPress Admin Panel.

After Activation:

 1. If upgrading from WP Replace Old Images, make sure settings have transferred properly,
    then delete
 2. Adjust settings to include or exclude images and image-links for replacement and
    removal
 3. Include or exclude Posts and Pages individually via Edit Post or All Posts Quick/
    Bulk Edit
 4. Verify results, deleting or purging site, browser, and CDN caches if necessary

## FAQ

_So, like how much of a problem is copyright-trolling really?_

Setting aside the “moral” issue – on respecting the rights and interests of creative
artists – given the zillions of blogs out there, including popular ones operated
for a profit and still using whatever images they can find without even crediting
the sources – you might not think it’s a big deal. I didn’t think so myself – until
I found myself working at a site where the editors/administrators had received a
demand letter from an aggressive lawyer threatening to sue, demanding a settlement
payment, and putting the future of the site itself in peril just for the costs of
defending themselves legally. Seemed like a big deal to me as a developer when I
discovered that the editor-in-chief, who didn’t really know what he was doing, had
deleted whole image folders without even making a backup first…

_OK, but how do we get good images for our site then?_

Colleagues and I have had great experiences with [ImageInject](https://wordpress.org/plugins/wp-inject/),
a plugin by Thomas Hoefter and WPscoop that makes searching, using, and crediting
images from Flickr and Pixabay easy – and fun. You can also do pretty well searching
[Wikimedia Commons](https://commons.wikimedia.org/wiki/Main_Page). US government-
produced images – like NASA images – are generally by definition in the public domain.
You’re probably safe with old advertising and fine art, with publicity images generally,
and often with screen captures used for critical purposes – i.e., to criticize [
television station] for its coverage, but not to steal their images or graphics –
but at that point you’re starting to get at gray areas and danger zones, as there
are potential exceptions to every rule. The biggest danger seems to be using – stealing–
images from aggressive, rights-protecting news photo vendors and also from individual
creative artists. On the the other hand, there are a lot of photographers and artists
out there who will grant a license to their work in exchange for a credit. Sometimes
you can find them at places like [DeviantArt](http://creative-commons.deviantart.com/).
Then there’s always the option of creating your own illustrations…

…or, if you really, really want just the right professional-quality image you can
even, gulp!, pay for it.

_What’re “load errors” and “crawl errors,” and why should I care and not just go
with a “lightweight” Javascript solution?_

If you’ve found a Javascript solution that works for you as far as replacing broken
images goes, maybe that’ll be fine! However, Javascript broken image solutions typically
_do not_ eliminate the errors they “fix.” In fact, they entirely depend on them 
to function. Leaving image errors in place will produce slow loads on affected pages,
which may be bothersome to users going through your archives, and both the slower
loads and the existence of the errors (both broken images and bad links) will (or
are said to) harm your site’s Search Engine Rankings – more on load errors at [“Comparative Page Loads with and without Image Errors”](http://ckmacleod.com/2016/07/14/comparative-page-loads-without-image-errors/).

_I think I set everything right, but, when I look at the results, the old images
are still there! Why?_

As noted elsewhere – for instance, under Usage Notes and in the description of this
plug-in – you may need to clear (delete, purge, flush, etc.) site and other image
caches, including Content Delivery Network caches. In some instances – for instance
with JetPack’s Photon Module, which does not include a clearing option – de-activating
it for a a couple of weeks seemed to solve the problem on re-activation, but this
experience should not be taken as a guarantee: You may need to try [some other CDN](http://www.wpexplorer.com/free-cdn-services-for-wordpress/),
or go without one for a while, if you want to use WP-RUBI.

You can also try restoring Photon or other problematic add-on back after you’ve “
cleared” your site, but check the results first to be sure that old images are not
still displaying.

_OK, but what if I want to have one kind of replacement image for one type of post,
and one for another, or randomly select from a gallery of images… and what if I 
want to divide up different time segments intead of just using one timespan, and..
and…_

[Let me know](http://ckmacleod.com/wordpress-plugins/wordpress-replace-unlicensed-and-broken-images/get-replace-images-support/),
and I’ll think about adding the capacities and options to a future version of the
plug-in… or I guess we can discuss a custom job if it’s urgent! (Though that thing
about selecting from a gallery you could already get if you linked to a “rotater”
PHP file…)

_Why do my old thumbnail images show up in different proportions from new ones in
All Posts?_

That would be because the new size for “Featured Preview” thumbnails is generated
when a post is uploaded. If you’d like to generate the new size retroactively, because
you’re kind of a stickler for that kind of thing, you might want to try the [Regenerate Thumbnails Plugin](https://wordpress.org/plugins/regenerate-thumbnails/).

## Beoordelingen

![](https://secure.gravatar.com/avatar/60a1345dadf2a1fb4f13c245dc02f454c944afa5aeec3b12e0f0276380cf6ef6?
s=60&d=retro&r=g)

### 󠀁[A great plugin that needs to be developed further.](https://wordpress.org/support/topic/a-great-plugin-that-needs-to-be-developed-further/)󠁿

 [Jens](https://profiles.wordpress.org/jensbecher/) 14 februari 2020

I've been looking for exactly this. This plugin helps me a lot and can save a lot
of money. Hopefully finally less warnings. In the beginning I had some difficulties,
but the developer helped me wonderfully. It's great that there are people who realize
such a project with passion. I would have many ideas for this tool, it would have
to be developed further. It is just great.

![](https://secure.gravatar.com/avatar/b6c12c3e10de96dfbc2665e189ab83bed1d0e0e0ca3e51f7e4c834510d24d2a4?
s=60&d=retro&r=g)

### 󠀁[great feature set for removing copyright / unlicensed images in wordpress](https://wordpress.org/support/topic/great-feature-set-for-removing-copyright-unlicensed-images-in-wordpress/)󠁿

 [Earnie Rhyker](https://profiles.wordpress.org/rhyker2u/) 10 januari 2017

turned out to be not what I'm looking for (replace broken 404 images); however great
swift response https://wordpress.org/support/topic/how-to-replace-404-broken-images/
and there are definitely features in this plugin that I will keep in mind for future
projects. Keep up the great work!

![](https://secure.gravatar.com/avatar/87e94d88543234fe15a768c7593cfe4cb10b65a2c976dde15bfeedbf394d9ea9?
s=60&d=retro&r=g)

### 󠀁[Works great x2](https://wordpress.org/support/topic/works-great-x2/)󠁿

 [trumwill76](https://profiles.wordpress.org/trumwill76/) 3 september 2016

I work on two sites, each with different but substantial problems of missing images.
This plugin handled both successfully. The developer was very responsive to questions
I had and took my feedback into account!

![](https://secure.gravatar.com/avatar/76278f860ab0165a4c27a9c0842d64e970834945bb2bdc737763b12fa00bb3ef?
s=60&d=retro&r=g)

### 󠀁[destroyed an entire website](https://wordpress.org/support/topic/destroyed-an-entire-website/)󠁿

 [apessoa](https://profiles.wordpress.org/apessoa/) 3 september 2016 3 reacties

this "thing" should really be removed from WP Plugin Directory. Installed it for
a customer website, under the expectation to selectively choose some images and 
replace them and, upon activation, it just replaced all the images with that obnoxyous
image it has. Over 500 posts and pages, all destroyed. Really, someone please remove
this plugin befor it does more harm. This is the first time I give a rating below
3 stars, but this one really deserves it. What a mess.

 [ Lees alle 4 beoordelingen ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/)

## Bijdragers & ontwikkelaars

“WP Replace Unlicensed and Broken Images” is open source software. De volgende personen
hebben bijgedragen aan deze plugin.

Bijdragers

 *   [ CK MacLeod ](https://profiles.wordpress.org/ck-macleod/)

[Vertaal “WP Replace Unlicensed and Broken Images” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/wp-replace-unlicensed-and-broken-images)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/wp-replace-unlicensed-and-broken-images/),
haal de [SVN repository](https://plugins.svn.wordpress.org/wp-replace-unlicensed-and-broken-images/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/wp-replace-unlicensed-and-broken-images/)
via [RSS](https://plugins.trac.wordpress.org/log/wp-replace-unlicensed-and-broken-images/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.5

Removed source of possible “function write” errors for users with pre-5.5 PHP; PHP
usage; readme revisions/corections
 Thanks to [thatgrrl](https://profiles.wordpress.org/thatgrrl)!

#### 1.0.4

Made warnings/advice for use in non-standard installations more emphatic; other 
minor revisions/housekeeping.

#### 1.0.3

Upgraded upgrade routine. Additional minor edits.

#### 1.0.2

Tested for 4.6. Fixed some typos and other minor problems that will not affect users
until and unless there are translations.

#### 1.0.1

Missing closing div in “badge”-link – fixed.

#### 1.0

_First version of the plugin_

## Meta

 *  Versie **1.0.5**
 *  Laatst geüpdatet **10 jaar geleden**
 *  Actieve installaties **20+**
 *  WordPress versie ** 4.3 of nieuwer **
 *  Getest t/m **4.7.38**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/)
 * Tags
 * [copyright](https://nl.wordpress.org/plugins/tags/copyright/)[DMCA](https://nl.wordpress.org/plugins/tags/dmca/)
   [images](https://nl.wordpress.org/plugins/tags/images/)[takedown](https://nl.wordpress.org/plugins/tags/takedown/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/wp-replace-unlicensed-and-broken-images/advanced/)

## Waarderingen

 3.8 van 5 sterren.

 *  [  2 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/?filter=5)
 *  [  1 4 ster beoordeling     ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/?filter=4)
 *  [  0 3 sterren beoordelingen     ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/?filter=2)
 *  [  1 1 ster beoordeling     ](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/?filter=1)

[Je beoordeling](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/reviews/)

## Bijdragers

 *   [ CK MacLeod ](https://profiles.wordpress.org/ck-macleod/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/wp-replace-unlicensed-and-broken-images/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](http://ckmacleod.com/wordpress-plugins/#donate)