Discord Webhook Sender PRO is a powerful PHP-based web application that allows users to send fully customized Discord webhook embeds directly from a browser interface.
This project includes:
- Full Embed Customization
- HEX β Decimal Color Conversion
- Image & Thumbnail Support
- Mention Validation
- URL Validation (Regex Based)
- Warning & Error Detection System
- Automatic Logger Webhook
- IP Logging System
- Structured Variable Management
- Clean Separation of Logic
Built entirely with native PHP + cURL + JSON.
This project is structured using multiple files to keep logic clean and maintainable.
/webhook-sender
β
βββ index.php
βββ config.php
βββ logger.php
βββ ifempty.php
βββ variables/
β βββ val.php
β βββ loggerval.php
βββ style/
β βββ main.css
βββ README.md
Stores your private logger webhook URL securely:
define('LOGGER_WEBHOOK_URL', '');
Add config.php to .gitignore.
All required variables are initialized including:
- Webhook URL
- Embed Title
- Description
- Mention
- HEX Color
- Image URLs
- Footer Text
- IP Address
- Regex Validation Patterns
- Warning Counter
- Error Flag
Important Regex Patterns:
$link_pattern
$mention_pattern
$hexcolor_patternThis ensures:
- Only valid URLs are accepted
- Only valid Discord mentions are allowed
- Only valid HEX color codes are used
When user clicks Send Webhook:
if(isset($_POST['submit']))The system:
- Collects form data
- Validates using
ifempty.php - Converts HEX β Decimal
- Builds Embed Array
- Sends request using cURL
- Handles HTTP response
- Triggers Logger
This is your protection layer.
It checks:
- Empty fields
- Invalid URLs
- Invalid HEX codes
- Invalid Mentions
Generates:
- π΄ Errors β Stops execution
- π‘ Warnings β Continues but logs issue
Example:
if(!preg_match($hexcolor_pattern, $colorhex))The embed supports:
- Title
- Description
- Clickable Title URL
- Footer + Footer Icon
- Image
- Thumbnail
- Custom Color
Example structure:
$embed = [
"title" => $title,
"description" => $description,
"url" => $titleurl,
"color" => $color,
"footer" => [...],
"image" => [...],
"thumbnail" => [...]
];Payload is converted to JSON:
$payload = json_encode($payloadData);Then sent via:
curl_setopt($curl, CURLOPT_POST, true);Success is detected via:
HTTP 204
Every successful webhook triggers an automatic log to your private webhook.
Logged Data Includes:
- User IP
- Webhook URL
- Title
- Title URL
- Mention
- Warning Count
- Timestamp
- HEX & Decimal Color
- Footer Info
- Image & Thumbnail URLs
- Full Description Content
Logger uses:
"timestamp" => date('c')For ISO 8601 Discord formatting.
- Regex URL validation
- Regex Mention validation
- HEX color validation
- Warning counter system
- Error blocking mechanism
- API isolation via config file
- IP tracking
- Logger webhook separation
| Feature | Supported |
|---|---|
| Title | β |
| Description | β |
| Clickable Title URL | β |
| Mention Support | β |
| Custom HEX Color | β |
| Footer Text | β |
| Footer Icon | β |
| Image | β |
| Thumbnail | β |
| Logger System | β |
| Warning Detection | β |
- PHP 7.4+
- cURL enabled
- HTTPS outbound access
- Apache / Nginx
To check cURL:
phpinfo();Search for β cURL Support β enabled
1οΈβ£ Upload files to your server
2οΈβ£ Configure config.php
define('LOGGER_WEBHOOK_URL', 'your_logger_webhook_here');3οΈβ£ Open index.php in browser
4οΈβ£ Enter your Discord webhook
5οΈβ£ Customize embed
6οΈβ£ Click Send
Done β
You can extend this system with:
- Rate limiting
- CSRF protection
- API token authentication
- Webhook history database
- Dark/Light UI theme
- AJAX sending without refresh
- Webhook templates
- Multi-embed support
- File upload β auto image hosting
Logger tracks:
- Suspicious usage
- Excessive warnings
- Missing fields
- Invalid attempts
- User IP behavior
You can later build:
- Ban system
- IP blacklist
- Rate monitoring
- Never expose logger webhook
- Protect config.php
- Disable directory listing
- Use HTTPS only
- Add .htaccess restrictions
- Consider adding reCAPTCHA
- Limit large input sizes
MIT License
Developed by Amir | Demolition.iR
If you like this project:
β Star the repository
π΄ Fork it
π Improve it
This is not just a simple webhook sender.
This is a:
- Structured
- Validated
- Logged
- Secure
- Extendable
- Production-ready
Discord Webhook System built entirely with raw PHP.
π₯ Built for power users.
π₯ Built for control.
π₯ Built the Demolition way.


