A lightweight, secure PHP tool to send Webmentions manually from a flat-file blog like HTMLy β no plugins, no WordPress, no nonsense.
- Accepts a post URL as input via the
sourceparameter - Requires a secret code (
auth) for protection - Loads the source page via cURL (not
file_get_contents) - Extracts all
<a href="...">links from the HTML - For each link:
- Detects Webmention endpoints via HTTP
Linkheader or<link rel="webmention"> - Sends a Webmention via HTTP POST if an endpoint is found
- Detects Webmention endpoints via HTTP
- Adds a 2-second delay to slow down brute-force attempts
- Logs every access (successful or failed) with IP and timestamp to
webmention-log.txt - Displays all results in a simple HTML page (success, failure, or "no endpoint found")
- Upload
send-webmentions.phpto your blog root (same place asindex.php) - Call it in your browser like so: https://yourblog.tld/send-webmentions.php?source=https://yourblog.tld/post/your-article&auth=your-secret-code
- Result: A clean HTML output showing what was sent, what failed, and what had no endpoint
Use launcher.html for convenience.
Itβs a local HTML form with fields for article URL and auth code β hit the button, done.
- Password-protected via
authGET parameter - Access attempts (valid and failed) are logged to
webmention-log.txt - Includes
sleep(2)delay to slow down brute-force attacks - No sessions, no database β just plain PHP
send-webmentions.phpβ the actual sender scriptlauncher.htmlβ (optional) visual launcher to simplify usagewebmention-log.txtβ log file created automatically on first use
MIT β Do whatever you want. Credit is nice, but not required.