Fixing the MetaTrader WebRequest Error When Adding License Validation
LicenseFort Team · August 12, 2026 · 2 min read
If you've just protected an EA and it's throwing a WebRequest-related error the first time it runs, this is almost certainly why: MetaTrader blocks outbound HTTP requests by default, for every EA, regardless of who wrote it or how it's licensed.
This isn't a bug in the EA — it's MetaTrader's own default security posture, and it applies to any Expert Advisor that calls out to a URL, license validation included.
The fix
In MetaTrader:
Tools → Options → Expert Advisors → "Allow WebRequest for listed URL"
Add the validation URL to the allowed list, tick the box, and restart the EA. That's the entire fix — it's a one-time setting per install, not something that needs repeating on every chart or every restart of the terminal.
Why this catches people off guard
It's easy to miss because nothing about writing or compiling the EA warns you it's coming — the error only shows up at runtime, on the machine actually running MetaTrader, which is often your customer's machine, not yours. If you don't mention it up front, a customer's first experience with your protected EA can be an error message that reads like the software is broken.
The practical fix: mention it once, in whatever instructions ship with the EA. Something as short as "first run may ask you to allow the validation URL under Tools → Options → Expert Advisors — this is a one-time MetaTrader setting, not an error with the EA" heads off almost every support message about it before it happens.
If you built the protection yourself
If you inserted your own validation call rather than using a wizard that does it for you, double check you're calling WebRequest() (not a raw socket or a third-party HTTP library) — WebRequest() is the only outbound call MetaTrader's allow-list mechanism actually covers. Anything else will fail in a way this setting can't fix.
Ready to protect your own software?
Free plan included — 1 product, 1 license key, no credit card.
Get started freeMore from the blog
Prop Firms Are Finally Getting Regulated.
The CFTC is asking whether prop firm challenge fees count as commodity-pool interests, and a firm called FundingTicks already collapsed in January after retroactively rewriting its rules. If you sell EAs, risk tools, or trade copiers to challenge traders, the coming cleanup changes what your licensing setup needs to do.
MetaTrader Gave Its AI Assistant Hands. Here's What That Means For Your License Check.
MetaQuotes just shipped native MCP support so the MT5 AI Assistant can enumerate your indicators and manipulate your charts on its own. Cool for traders. Slightly terrifying if your entire licensing strategy is 'the crack sites haven't found this EA yet.'
MetaQuotes Audited MT5. When's the Last Time You Audited Your License Check?
MetaQuotes quietly announced a full code audit of MT5 for stability and reliability. Most EA sellers, meanwhile, haven't looked at their own license validation logic since the day they shipped it. Here's the checklist that should change that.
