=== Simple DDoS Monitor ===
Contributors: tlloancy
Stable Tag: 1.0.1
Requires at least: 4.0
Tested up to: 6.8
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight WordPress plugin to monitor websites for database errors or server outages with real-time status updates.

== Description ==

**Simple DDoS Monitor** is your go-to solution for keeping an eye on your websites. This lightweight plugin checks for database errors or server downtimes, providing visual status indicators and email alerts when issues arise. Designed for simplicity and efficiency, it’s perfect for WordPress administrators who need reliable monitoring without complexity.

- **Automatic Monitoring**: Checks your sites every minute.
- **Visual Feedback**: Green checkmarks for healthy sites, red for issues.
- **Email Alerts**: Get notified when a site’s status changes (requires active admin page interaction).
- **Lightweight Design**: Minimal server impact for maximum efficiency.

== Installation ==

1. **Download** the plugin from WordPress.org.
2. **Upload** the `simple-ddos-monitor` folder to the `/wp-content/plugins/` directory.
3. **Activate** the plugin through the **Plugins** menu in WordPress.
4. **Configure** by navigating to **Settings > DDoS Monitor** in your WordPress dashboard.

== Usage ==

1. Go to **Settings > DDoS Monitor** in your WordPress admin dashboard.
2. Enter the URLs of the websites you want to monitor, separated by commas.
3. Save your settings and let the plugin do the rest.

== Features ==

- Automatic site checks every minute.
- Visual status indicators (green for OK, red for issues).
- Email alerts when a site’s status changes from OK to another state, sent only when viewing the plugin’s admin page.
- Uses `wp_remote_get` for reliable HTTP requests.
- Automatic protocol handling (no need to specify `http://` or `https://`).

== Notes ==

- The plugin relies on `wp_remote_get` for site checks. Ensure your server allows outgoing HTTP requests.
- URLs do not require `http://` or `https://` prefixes; the plugin adds them automatically.
- Email alerts are sent only when you’re actively viewing the plugin’s admin page, as the monitoring task does not run in the background without user interaction.

== Frequently Asked Questions ==

= How do I add websites to monitor? =

Navigate to **Settings > DDoS Monitor** in your WordPress dashboard and enter the URLs, separated by commas.

= Does the plugin run in the background? =

No, monitoring occurs only when you’re viewing the plugin’s admin page, as it does not execute background tasks without user interaction.

= What happens if my server blocks outgoing HTTP requests? =

The plugin uses `wp_remote_get` to check sites. If your server blocks outgoing HTTP requests, monitoring will not work. Contact your hosting provider to enable this.

= Do I need to include `http://` or `https://` in the URLs? =

No, the plugin automatically adds the appropriate protocol.

== Changelog ==

= 1.0.1 =
* Fixed issues for WordPress.org plugin review compliance.

= 1.0 =
* Initial release of Simple DDoS Monitor.

== Screenshots ==

1. **Monitoring Dashboard**: View the status of all monitored websites at a glance.
2. **Status Indicators**: Green checkmarks for healthy sites, red for issues.
3. **Configuration Page**: Easily add or edit URLs to monitor.
4. Example of an email alert sent when a monitored website experiences downtime or errors.

---

**Tags:** website monitoring, server status, database errors, email alerts, site health
