Contributors: hiroshisato, pixelium
Donate link: https://github.com/sponsors/sato-jp
Tags: block, cloudflare, joke, 404
Requires at least: 6.9
Tested up to: 6.9
Stable tag: 1.0.4
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Adds a block that mimics the Cloudflare downtime error screen.
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
- 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.
- Go to Plugins > Add New in your WordPress admin.
- Search for "CDN Error Mockups".
- Click Install Now, then Activate.
- Download the plugin ZIP file from the WordPress Plugin Directory.
- Go to Plugins > Add Plugin > Upload Plugin in your WordPress admin.
- Choose the downloaded ZIP file and click Install Now.
- Activate the plugin from the Plugins screen.
- After installing and activating the plugin, go to any page or post editor in WordPress.
- Click the + button to add a new block.
- Search for "CDN Error Mockups" or "Cloudflare" and select the block.
- 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
- Save or publish your page to see the error mockup on the frontend.
- 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
The plugin’s JavaScript and CSS are built from source. The human-readable source is in the src/ directory on GitHub.
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.
Yes! You can customize both the error code and error message through the block settings sidebar in the Gutenberg editor.
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).
This plugin requires WordPress 6.9 or higher and PHP 8.0 or higher.
Yes! You can add the block to any page, post, or template as many times as you need.
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.
This is a major release. Please review the changelog for details.
- Current stable version
- Initial release
This plugin uses Deno for building and development. Make sure you have Deno installed before proceeding.
- Deno (latest version recommended)
- Node.js and npm (for WordPress development environment)
- WordPress development environment (local or remote)
-
Clone the repository:
git clone https://github.com/sato-jp/cdn-error-mockups.git cd cdn-error-mockups -
Build the plugin:
deno task build
To build the plugin assets (JavaScript and CSS):
deno task buildThis will compile the source files from src/ to build/.
To start development mode with watch functionality:
deno task startThis will watch for changes and automatically rebuild the assets.
If you're using .wp-env.json for local development:
deno task envOr for Playground runtime:
deno task env:playgroundNote: If you encounter permission errors (EACCES or EPERM) when running wp-env commands in Cursor's integrated terminal, this is due to Cursor's sandbox environment restricting access to files outside the project directory (wp-env stores cache in ~/.wp-env/). In this case, run the commands in a regular terminal outside of Cursor instead.
The plugin will be automatically loaded. Make changes, rebuild with deno task build, and refresh your browser.
To create a new release tag and push it to the remote repository:
git tag v1.0.3
git push origin v1.0.3Replace v1.0.3 with your desired version number.
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.