
Draco Insomnis
v0.1.37OPNV SYSTEMS · 2026年11月24日 上架
Ab insomni custodita dracone. Stops fake sign-ups without captchas, feeds bots a fake success and keeps evidence for abuse reports.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 89
- 最近更新
- 2026年11月24日
贡献者
截图
Author: Soledad Sánchez Mohamed.
Bots that create fake accounts usually post straight to the registration endpoint, ask for roles that do not exist, fill every field they see and come from rented servers. Draco Insomnis scores every public sign-up on those signs before the account exists.
- No captcha. People never solve puzzles. A hidden trap field and a signed page stamp do the work.
- Bots are fooled, not warned. A bot is told “registration complete” after a short, capped wait. No account is created.
- Doubtful is not guilty. One weak sign alone (a VPN, an odd username) never rejects a person.
- Evidence for abuse reports. Every suspicious attempt is kept for 90 days and can be downloaded per address as a CSV file to send to the network provider.
- Automatic blocks. Three bot attempts in a day block the address for a week. Administrators’ recent addresses are never blocked.
- Defence only. Nothing is ever sent back to the attacker’s machine.
- Not security by obscurity. Field names and the stamp key are unique to each site, so reading this code does not tell a bot what to send.
Protects the registration forms of WordPress, WooCommerce and the RealHomes theme.
Site mail (SMTP)
Sends the mail of the site through a real mailbox instead of PHP mail(), so login codes, forms and orders actually arrive.
- Test before it counts. Nothing changes until a test message succeeds; changing any setting switches it off until you test again.
- Encrypted password. Stored with AES-256-GCM using a key from the site’s own security keys.
- Ready-made settings for Hostinger, IONOS, OVHcloud, Arsys, GoDaddy, Zoho, Microsoft 365, Google, Brevo, Mailgun, SendGrid, Postmark, Mailjet, Amazon SES and more.
- Deliverability checks. Warns when the sender is not on the site’s domain or when the domain’s DMARC policy will reject PHP mail().
- Sender that passes DMARC. The mailbox becomes the visible sender; the original address goes to Reply-To.
- Log of the last 50 messages (never their content) and extra addresses for WordPress recovery and password-change alerts.
Forms and sign-ups
Holds every contact message, blog comment and new account until the sender confirms from their e-mail. Bots do not confirm, so their spam never reaches you.
- Works with Contact Form 7, WPForms, Elementor Pro, Divi and RealHomes forms, WordPress and WooCommerce registration, and blog comments.
- Nothing is lost. The message is kept exactly as the form built it, attachments included, and delivered when confirmed. Unconfirmed ones are erased after 48 hours.
- Mail scanners cannot confirm. Opening the link changes nothing; the person has to press a button.
- New accounts stay closed until confirmed: no login, no password reset, no welcome mail. Unconfirmed accounts are deleted after 48 hours, unless they have content or orders, which a person reviews instead. Accounts created while paying in the shop are never held.
- Block from any row, by e-mail or IP, for 7 to 90 days. A blocked sender sees the same answer, so they cannot tell.
- Never sends what the visitor typed to the address they wrote, so it cannot be used to send spam to strangers, and it limits how many confirmations an address or IP can trigger.
Needs working site mail: it only switches on when SMTP is set up.
Two-step login
After the right password, WordPress asks for a 6-digit code sent by e-mail. A stolen password alone is no longer enough.
- For administrators by default, or for everyone who can edit, or for every user.
- The code is only sent after the right password, expires in 10 minutes and allows 5 tries. Repeated failures block the address for 15 minutes.
- Trust this device for 7 days (optional). Changing the password or e-mail of an account revokes its trusted devices.
- No lock-outs from missing mail. It only switches on with SMTP working and switches itself off if that connection is forgotten.
- Recovery e-mail, like the PUK of a phone. Everyone who needs a code keeps a second mailbox. The code screen can send the code there instead; “Lost your password?” accepts it too; after a password reset the next code goes only there. Changing it needs a code from the new address and one from the current one, and every change is told to the other mailbox. Administrators set it up before using the dashboard.
- Emergency exit for the owner:
define('DRACO_MFA_OFF', true);in wp-config.php. Only someone with access to the server can use it, unlike a “skip” button a thief could press.
Firewall
Stops requests with the shape of an attack, and the scanners that look for weak spots.
- Precise signatures, not word lists. Database injection, reading server files, running code and scripts in links are matched by their shape, so ordinary messages with words like “select”, “update” or “delete” go through.
- Scanners and probes. Tools such as sqlmap, WPScan or Nikto, and requests for .env, .git, wp-config backups, phpinfo or known web shells.
- Starts in log-only mode, so you can see what it would stop before it stops anything.
- Automatic blocks: five attacks in 10 minutes put the address on the block list for 7 days. Blocked addresses can still read the site, but not log in, post forms or use XML-RPC.
- Hides the list of user names from anonymous visitors (?author=1 and the users REST endpoint).
- Limits failed logins and always refuses XML-RPC system.multicall (hundreds of passwords in one call) and pingbacks.
- Never inspects people who can edit the site and never blocks an address an administrator used recently. Emergency exit:
define('DRACO_WAF_OFF', true);in wp-config.php.
Anti-copy
Makes it harder to copy the whole site in one go, without getting in the way of visitors or search engines.
- Content API closed to anonymous visitors. /wp-json/wp/v2/ lists every post, page and image as JSON; reads there need a login, except the routes you keep open. Pages stay public, and other APIs (forms, shop, embeds) are untouched.
- Pace limit. More pages per minute than a person reads, from one address or from one network, get “429 Too many requests” until the minute ends.
- Search engines are verified, not trusted. Google, Bing, Apple and Yandex pass after a reverse and forward DNS check, kept for a day; a program that only borrows their name does not.
- Log first. Both parts have a log-only mode that shows what would be stopped.
Languages
English, Spanish (Spain and all Latin American variants), Catalan, German, French, Italian, Portuguese (Portugal and Brazil), Dutch, Polish, Russian, Turkish, Japanese, Simplified Chinese, Korean, Arabic, Hindi, Indonesian, Vietnamese, Bengali, Urdu, Persian, Filipino, Thai, Ukrainian, Swahili, Malay and Tamil. Corrections from native speakers are very welcome, especially for the Asian, African and Middle Eastern languages.
Who makes it
Draco Insomnis is made by Notorius Vision, the team behind OPNV Systems and OPNV SOLΞ. It is the open-source security core of OPNV.
The code is free software (GPLv2 or later). The names Draco Insomnis, Notorius Vision, OPNV, OPNV Systems and OPNV SOLΞ, and the dragon logo, are not part of that licence: if you publish a modified version, please give it another name and logo.
External services
Draco works on the site itself. It contacts an outside service only for the features below, all of them off by default or started by an administrator, and always through the WordPress HTTP API.
Country list (GitHub)
What and why: the country filter needs a list of which country each IP address belongs to. Draco downloads it from this plugin’s GitHub releases (https://github.com/fermatacordis-create/draco-insomnis/releases) together with its SHA-256 checksum, and looks addresses up in that local copy.
When: only while the country filter is switched on, when the list is missing or older than 35 days.
Data sent: nothing but an ordinary download request (the server’s IP address and WordPress’s usual user agent, which includes the site’s address). No visitor data is sent.
Service: GitHub, Inc. Terms of service: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service · Privacy statement: https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement
Data licence: “IP to Country Lite” by DB-IP (https://db-ip.com), Creative Commons Attribution 4.0 (https://creativecommons.org/licenses/by/4.0/).
Breached passwords (Have I Been Pwned)
What and why: to refuse passwords that appear in known data breaches.
When: only if “Refuse passwords that appear in known data breaches” is switched on, when a password is chosen (profile, password reset, WooCommerce sign-up) and when someone logs in.
Data sent: the first 5 characters of the SHA-1 hash of that password (k-anonymity). The password itself and its full hash are never sent.
Service: Pwned Passwords, by Have I Been Pwned (https://haveibeenpwned.com/Passwords, API at https://api.pwnedpasswords.com). Terms of use: https://haveibeenpwned.com/TermsOfUse · Acceptable use: https://haveibeenpwned.com/API/v3#AcceptableUse · Privacy policy: https://haveibeenpwned.com/Privacy
Malicious links (URLhaus, by abuse.ch)
What and why: to check the links in comments and contact forms against URLhaus, the list of malware distribution sites.
When: only if the administrator adds their own abuse.ch key to wp-config.php, confirms that the site is non-profit or has a Spamhaus subscription, and switches it on. The list is then downloaded twice a day. Not available when Draco is bundled in another product.
Data sent: the administrator’s key, to download the list. Nothing visitors write is sent: links are looked up in the local copy.
Free use only for non-profit websites; for commercial use, a Spamhaus subscription (https://www.spamhaus.com/data-access/abusech-api/).
Service: abuse.ch, with Spamhaus Technology Limited. Terms of use: https://abuse.ch/terms-of-use/ · Privacy policy: https://abuse.ch/privacy-policy/
Site mail (SMTP)
What and why: so the site’s e-mail is delivered through a real mailbox.
When: only if the administrator sets up Site mail and it passes a test.
Data sent: the e-mails the site sends (recipients, subject and content) and the SMTP user name and password the administrator saved go to the one mail server the administrator chooses, usually their hosting or mail provider, over SMTP with TLS.
The settings screen offers a list of common providers (for example Amazon SES, Google Workspace, Microsoft 365, Brevo or the administrator’s hosting company). Choosing one only fills in the server name and port in the form: the list is part of the plugin, nothing is downloaded, Draco calls no provider API and connects to no server in the list unless the administrator saves it as their own mail server.
Service: the mail provider the administrator has an account with, under the terms and privacy policy the administrator accepted with that provider. Draco has no agreement with any of them.




