CDN Error Mockups

설명

Adds a block that mimics the Cloudflare downtime error screen. Use it to create error pages that look like the official Cloudflare error pages.

This plugin provides a Gutenberg block that displays a realistic Cloudflare error page mockup, perfect for:
– Creating custom 404 error pages
– Building error page templates
– Adding humorous error messages to your site
– Testing error page designs

Features

  • Customizable Error Codes: Change the error code (e.g., 404, 500, 502) via block settings
  • Customizable Messages: Edit the error message text to match your needs
  • IP Address Display: Shows visitor IP address when they click “Click to reveal” (uses WordPress REST API, no external services)
  • Authentic Design: Faithfully recreates the Cloudflare error page appearance
  • Easy to Use: Simple block interface in the Gutenberg editor

This plugin is based on the cloudflare-error-page project, adapted as a WordPress block for the Gutenberg editor.

Important Notice: This plugin is not affiliated with, endorsed by, or connected to Cloudflare, Inc. This plugin is an independent project created for educational and entertainment purposes.

Usage

  1. After installing and activating the plugin, go to any page or post editor in WordPress.
  2. Click the + button to add a new block.
  3. Search for “CDN Error Mockups” or “Cloudflare” and select the block.
  4. The block will appear with default settings. You can customize:
    • Error Code: Change the error code (e.g., 404, 500, 502, 503)
    • Error Message: Edit the error message text
  5. Save or publish your page to see the error mockup on the frontend.

Example Use Cases

  • Add to your site’s 404 page template
  • Create a maintenance mode page
  • Use in page templates for error handling
  • Add to custom page templates

Source Code

The plugin’s JavaScript and CSS are built from source. The human-readable source is in the src/ directory on GitHub.

Contributing

Contributions are welcome! Here are ways you can contribute:

  • Report Bugs: Open an issue on GitHub
  • Suggest Features: Share your ideas via GitHub issues
  • Submit Pull Requests: Send pull requests with improvements or bug fixes
  • Improve Documentation: Help improve the documentation

For more information, visit the GitHub repository.

Credits

This plugin is based on the idea and some code from cloudflare-error-page by donlon (MIT License). See THIRD_PARTY_LICENSES.md for details.

스크린샷

  • Block placed in the “404 page” template
  • Error code and message can be changed in the settings sidebar
  • The “404 page” shown on the frontend

블록

이 플러그인은 1개의 블록을 제공합니다.

  • CDN Error Mockup – Cloudflare Adds a block that mimics the Cloudflare downtime error screen.

설치

Method 1: Install from WordPress Plugin Directory

  1. Go to Plugins > Add New in your WordPress admin.
  2. Search for “CDN Error Mockups”.
  3. Click Install Now, then Activate.

Method 2: Manual Installation

  1. Download the plugin ZIP file from the WordPress Plugin Directory.
  2. Go to Plugins > Add Plugin > Upload Plugin in your WordPress admin.
  3. Choose the downloaded ZIP file and click Install Now.
  4. Activate the plugin from the Plugins screen.

FAQ

Is this plugin officially supported by Cloudflare?

No. This plugin is not affiliated with, endorsed by, or connected to Cloudflare, Inc. It is an independent project created for educational and entertainment purposes.

Can I customize the error code and message?

Yes! You can customize both the error code and error message through the block settings sidebar in the Gutenberg editor.

Does this plugin collect user data?

The plugin displays visitor IP addresses when they click “Click to reveal” using WordPress’s built-in REST API endpoint. No external services are used, and no data is sent outside your WordPress installation. The IP address is determined from server variables (Cloudflare headers, proxy headers, or standard remote address).

What WordPress version is required?

This plugin requires WordPress 6.9 or higher and PHP 8.0 or higher.

Can I use this on multiple pages?

Yes! You can add the block to any page, post, or template as many times as you need.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“CDN Error Mockups”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“CDN Error Mockups”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “CDN Error Mockups”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.1

  • Add contextual translations for “Error code” in inspector and block mockup

1.1.0

  • Current stable version

1.0.0

  • Initial release