{"id":16462720,"url":"https://github.com/alexstack/laravel-cms-plugin-external-image-link","last_synced_at":"2026-05-15T19:33:10.830Z","repository":{"id":56944859,"uuid":"212217610","full_name":"AlexStack/Laravel-CMS-Plugin-External-Image-Link","owner":"AlexStack","description":"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 \u0026 target=_blank to external links for better SEO and user experience.","archived":false,"fork":false,"pushed_at":"2019-10-04T02:15:07.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T08:25:42.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.LaravelCMS.tech/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexStack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license.md","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-01T23:22:23.000Z","updated_at":"2021-10-29T10:54:38.000Z","dependencies_parsed_at":"2022-08-21T02:40:25.855Z","dependency_job_id":null,"html_url":"https://github.com/AlexStack/Laravel-CMS-Plugin-External-Image-Link","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-External-Image-Link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-External-Image-Link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-External-Image-Link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexStack%2FLaravel-CMS-Plugin-External-Image-Link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexStack","download_url":"https://codeload.github.com/AlexStack/Laravel-CMS-Plugin-External-Image-Link/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240995365,"owners_count":19890723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T11:12:08.819Z","updated_at":"2025-11-20T19:09:48.257Z","avatar_url":"https://github.com/AlexStack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Save external images to your server and add rel=nofollow to the external links\n\n-   This is an Amila Laravel CMS Plugin\n-   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 \u0026 target=\\_blank to external links for better SEO and user experience.\n\n## Install it via the backend\n\n-   Go to the CMS settings page -\u003e Plugin -\u003e search for remote image\n-   Find alexstack/laravel-cms-plugin-external-image-link\n-   Click the Install button\n\n## What the plugin do for us?\n\n-   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.\n-   Automatically convert the remote image URLs to the local relative URLs. eg.\n\n```php\n\u003cimg src=\"https://github.githubassets.com/images/modules/marketplace/marketplace-illustration-01.svg\" class=\"...\" \u003e\n\nwill automatically convert to below for you:\n\n\u003cimg src=\"/laravel-cms/uploads/fb/9a3f5ebfa6aec1a597094ad6d3116edc09e2e2fb.svg\" class=\"...\" \u003e\n```\n\n-   Automatically add rel=\"nofollow\" \u0026 target=\"\\_blank\" to external links for better SEO and user experience. eg.\n\n```php\n\u003ca href=\"https://github.com/AlexStack/Laravel-CMS\" class=\"text-info\"\u003eLaravel CMS\u003c/a\u003e\n\nwill automatically convert to below for you:\n\n\u003ca href=\"https://github.com/AlexStack/Laravel-CMS\" class=\"text-info\" target=\"_blank\" rel=\"nofollow noopener external noindex\"\u003eLaravel CMS\u003c/a\u003e\n\n```\n\n## Install it via command line manually\n\n```php\ncomposer require alexstack/laravel-cms-plugin-external-image-link\n\nphp artisan migrate --path=./vendor/alexstack/laravel-cms-plugin-external-image-link/src/database/migrations\n\nphp artisan vendor:publish --force --tag=external-image-link-views\n\nphp artisan laravelcms --action=clear\n\n```\n\n## How to use it?\n\n-   By default save image to your server and add rel=\"nofollow\" to external links are enabled\n-   You don't need to do anything after install\n\n## How to change the settings?\n\n-   You can change the settings by edit plugin.page-tab-external-image-link\n\n```json\n{\n    \"plugin_name\": \"External Images \u0026 Links\",\n    \"blade_file\": \"remote-image\",\n    \"tab_name\": \"\",\n    \"php_class\": \"Amila\\\\LaravelCms\\\\Plugins\\\\ExternalImageLink\\\\Controllers\\\\ExternalImageLinkController\",\n    \"remote_image_to_local\": {\n        \"enable\": true,\n        \"exclude\": [\".laravelcms.tech\", \"localhost/\", \".test\", \".local\"],\n        \"local_image_size\": \"original\",\n        \"replace_fields\": [\n            \"main_content\",\n            \"sub_content\",\n            \"extra_content_1\",\n            \"extra_content_2\",\n            \"extra_content_3\"\n        ]\n    },\n    \"nofollow_external_links\": {\n        \"enable\": true,\n        \"exclude\": [\"localhost/\", \".test\", \".laravelcms.tech\"],\n        \"rel_text\": \"nofollow noopener external noindex\",\n        \"target\": \"_blank\",\n        \"replace_fields\": [\n            \"main_content\",\n            \"sub_content\",\n            \"extra_content_1\",\n            \"extra_content_2\",\n            \"extra_content_3\"\n        ]\n    }\n}\n```\n\n## How to send http header before grab the remote image?\n\n-   Examples are below:\n\n```json\n\"remote_image_to_local\" : {\n  \t\"enable\": true,\n    \"exclude\":[\".laravelcms.tech\",\"localhost/\",\".test\", \".local\"],\n    \"local_image_size\": \"original\",\n  \t\"replace_fields\": [\"main_content\",\"sub_content\",\"extra_content_1\",\"extra_content_2\",\"extra_content_3\"],\n  \t\"stream_options\": {\n     \t\".laravelcms.tech\" : {\n         \t\"http\" : {\n              \t\"method\" : \"GET\",\n              \t\"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/\"\n            }\n        },\n     \t\".laravel.test\" : {\n         \t\"http\" : {\n              \t\"method\" : \"GET\",\n              \t\"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/\"\n            }\n        }\n    }\n},\n```\n\n## Improve this plugin \u0026 documents\n\n-   You are very welcome to improve this plugin and how to use documents\n\n## License\n\n-   This Amila Laravel CMS plugin is an open-source software licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Flaravel-cms-plugin-external-image-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexstack%2Flaravel-cms-plugin-external-image-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexstack%2Flaravel-cms-plugin-external-image-link/lists"}