PHPackages                             alexstack/laravel-cms-plugin-external-image-link - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. alexstack/laravel-cms-plugin-external-image-link

ActiveAmila-laravel-cms-plugin[File &amp; Storage](/categories/file-storage)

alexstack/laravel-cms-plugin-external-image-link
================================================

Save all remote images in the page content editors to your server, replace the image URL from remote URL to your local URL. Add rel=nofollow &amp; target=\_blank to external links for better SEO and user experience.

0.2.0(6y ago)211MITPHPPHP &gt;=7.0.0

Since Oct 3Pushed 6y agoCompare

[ Source](https://github.com/AlexStack/Laravel-CMS-Plugin-External-Image-Link)[ Packagist](https://packagist.org/packages/alexstack/laravel-cms-plugin-external-image-link)[ Docs](https://github.com/AlexStack/Laravel-CMS-Plugin-External-Image-Link)[ RSS](/packages/alexstack-laravel-cms-plugin-external-image-link/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Save external images to your server and add rel=nofollow to the external links
==============================================================================

[](#save-external-images-to-your-server-and-add-relnofollow-to-the-external-links)

- This is an Amila Laravel CMS Plugin
- Save all remote images in the page contents editor to your server, replace the image URL from remote URL to your local URL. Add rel=nofollow &amp; target=\_blank to external links for better SEO and user experience.

Install it via the backend
--------------------------

[](#install-it-via-the-backend)

- Go to the CMS settings page -&gt; Plugin -&gt; search for remote image
- Find alexstack/laravel-cms-plugin-external-image-link
- Click the Install button

What the plugin do for us?
--------------------------

[](#what-the-plugin-do-for-us)

- Save the remote images in the content editors to your server (eg. Main Content, Sub Content, Extra Content ...). You will be able to find them on the File Manager page afterward.
- Automatically convert the remote image URLs to the local relative URLs. eg.

```

will automatically convert to below for you:

```

- Automatically add rel="nofollow" &amp; target="\_blank" to external links for better SEO and user experience. eg.

```
Laravel CMS

will automatically convert to below for you:

Laravel CMS
```

Install it via command line manually
------------------------------------

[](#install-it-via-command-line-manually)

```
composer require alexstack/laravel-cms-plugin-external-image-link

php artisan migrate --path=./vendor/alexstack/laravel-cms-plugin-external-image-link/src/database/migrations

php artisan vendor:publish --force --tag=external-image-link-views

php artisan laravelcms --action=clear
```

How to use it?
--------------

[](#how-to-use-it)

- By default save image to your server and add rel="nofollow" to external links are enabled
- You don't need to do anything after install

How to change the settings?
---------------------------

[](#how-to-change-the-settings)

- You can change the settings by edit plugin.page-tab-external-image-link

```
{
    "plugin_name": "External Images & Links",
    "blade_file": "remote-image",
    "tab_name": "",
    "php_class": "Amila\\LaravelCms\\Plugins\\ExternalImageLink\\Controllers\\ExternalImageLinkController",
    "remote_image_to_local": {
        "enable": true,
        "exclude": [".laravelcms.tech", "localhost/", ".test", ".local"],
        "local_image_size": "original",
        "replace_fields": [
            "main_content",
            "sub_content",
            "extra_content_1",
            "extra_content_2",
            "extra_content_3"
        ]
    },
    "nofollow_external_links": {
        "enable": true,
        "exclude": ["localhost/", ".test", ".laravelcms.tech"],
        "rel_text": "nofollow noopener external noindex",
        "target": "_blank",
        "replace_fields": [
            "main_content",
            "sub_content",
            "extra_content_1",
            "extra_content_2",
            "extra_content_3"
        ]
    }
}
```

How to send http header before grab the remote image?
-----------------------------------------------------

[](#how-to-send-http-header-before-grab-the-remote-image)

- Examples are below:

```
"remote_image_to_local" : {
  	"enable": true,
    "exclude":[".laravelcms.tech","localhost/",".test", ".local"],
    "local_image_size": "original",
  	"replace_fields": ["main_content","sub_content","extra_content_1","extra_content_2","extra_content_3"],
  	"stream_options": {
     	".laravelcms.tech" : {
         	"http" : {
              	"method" : "GET",
              	"header" : "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0\r\nReferer:https://www.amazon.com/"
            }
        },
     	".laravel.test" : {
         	"http" : {
              	"method" : "GET",
              	"header" : "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36\r\nReferer:https://www.laravelcms.tech/"
            }
        }
    }
},
```

Improve this plugin &amp; documents
-----------------------------------

[](#improve-this-plugin--documents)

- You are very welcome to improve this plugin and how to use documents

License
-------

[](#license)

- This Amila Laravel CMS plugin is an open-source software licensed under the MIT license.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2461d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33879126?v=4)[Alex Zeng](/maintainers/AlexStack)[@AlexStack](https://github.com/AlexStack)

---

Top Contributors

[![AlexStack](https://avatars.githubusercontent.com/u/33879126?v=4)](https://github.com/AlexStack "AlexStack (15 commits)")

---

Tags

laravelnoindexnofollowamila laravel cmsamila laravel cms pluginremote imagelocal image

### Embed Badge

![Health badge](/badges/alexstack-laravel-cms-plugin-external-image-link/health.svg)

```
[![Health](https://phpackages.com/badges/alexstack-laravel-cms-plugin-external-image-link/health.svg)](https://phpackages.com/packages/alexstack-laravel-cms-plugin-external-image-link)
```

###  Alternatives

[yoelpc4/laravel-cloudinary

Laravel Cloudinary filesystem cloud driver.

3344.6k](/packages/yoelpc4-laravel-cloudinary)[menthe/aliyun-ueditor

UEditor for laravel5 and Aliyun OSS.Store all images and files in Aliyun OSS. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

182.4k](/packages/menthe-aliyun-ueditor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
