Service 05
MT5 server security and DDoS protection for brokers
MT5 server security means keeping the trade server out of public reach, putting DDoS-protected access points in front of it, giving every manager only the rights they need, and being able to restore service fast when something goes wrong. We harden your MetaTrader 4 and MetaTrader 5 infrastructure, lock down access and help you withstand attacks without disrupting trading.
- Server and OS hardening
- Access control & IP whitelisting
- Manager permission reviews
- DDoS mitigation, backups and incident response
MetaTrader server security includes OS hardening, least-privilege administrator and manager accounts, IP whitelisting, network segmentation, tested backups, DDoS protection and monitoring for suspicious activity.
Short answer
What does MT5 server security actually involve?
Trading servers are high-value targets. They hold client balances, positions, trade history and the credentials of every manager who can change them. They also have to stay online during market hours, which makes them attractive to anyone running a denial-of-service attack or trying to extort a broker.
In practice, MT5 server security rests on five layers:
- Network exposure. Clients should connect to access points, never directly to the trade server. MetaQuotes’ own broker documentation states that “trade servers can be hidden behind multiple access points”.
- DDoS protection. The access points that face the internet sit behind filtering capacity large enough to absorb volumetric attacks.
- Access control. Administrator and manager connections are limited by IP, strong credentials and least-privilege permissions.
- Host hardening. The operating systems under the platform are patched, stripped of unused services, segmented and logged.
- Recovery. Backups are encrypted, stored off-host and actually tested, and an incident response plan exists before it is needed.
None of this is exotic, but each layer is easy to get wrong, and the weakest one decides how stable your server is on a bad day. That is also why security and server stability are one topic, not two: most outages we are asked to investigate start with exposure, permissions or untested recovery rather than with the platform itself.
Architecture
How MetaTrader 5’s architecture helps you
MT5 was built with a distributed design, and using it properly is the first security control.
Distributed roles
MetaQuotes describes MT5 as a “distributed architecture, where different functions are performed on different servers”. Trade, history and access roles can run on separate machines.
Hidden trade server
Client terminals connect to access servers. The trade server can be kept on a private network, reachable only from your own access points and admin hosts.
Multiple access points
Access servers can be placed in several regions. If one is attacked or fails, clients reconnect through another, and the trade server is never exposed.
Encrypted databases
According to MetaQuotes, “all the system databases are securely encrypted and provided with the backup and recovery options”. Your job is to configure and test them.
Role-based managers
Managers are created with specific rights, for example administrators, dealers and risk managers, so nobody needs a full-access account for daily work.
Unlimited security groups
MetaQuotes’ comparison lists unlimited security groups in MT5 versus 32 in MT4, which makes fine-grained permission design practical.
DDoS protection
MetaTrader DDoS protection: access points and Cloudflare Spectrum
A distributed denial-of-service (DDoS) attack floods a service with traffic until legitimate clients can no longer connect. For a broker, even a short outage during volatile markets means clients unable to close positions, a flood of complaints and potential disputes. MetaTrader DDoS protection is therefore less about one product and more about where traffic is allowed to land.
Access points absorb the exposure
In MT5, clients only ever see access servers. Because the trade server is hidden behind them, an attacker can at most target the access layer. With several access points in different data centres, an attack on one location degrades service rather than ending it, and the core trade server keeps processing orders for everyone who can still reach it. We cover data-centre placement in more detail in our guide on choosing a data centre for MT5.
The MetaQuotes and Cloudflare partnership
In June 2020 MetaQuotes announced a partnership with Cloudflare to provide DDoS protection for MetaTrader 5 access servers using Cloudflare Spectrum, a service that filters non-HTTP TCP traffic of the kind the trading terminal uses. For brokers this means a protection route that is designed to work with the platform’s own connection protocol rather than a generic web firewall. Availability and terms are set by MetaQuotes and Cloudflare, so check the current conditions with MetaQuotes directly.
What we add on top
- Placing access points so that no single provider or region is a single point of failure.
- Ensuring the trade and history servers accept connections only from your access points and admin networks.
- Making sure administrative ports are never published to the internet, so they cannot be attacked even if the client-facing layer is.
- Monitoring connection counts and latency per access point, so an attack is visible in minutes, not from client tickets.
- A written runbook for what to do when an access point goes down: who to call, how to reroute and how to communicate with clients.
For a deeper technical walk-through, read our DDoS protection for MetaTrader guide.
Hardening checklist
MT5 server hardening checklist
The controls we check on every engagement, grouped by layer. Use it as a self-assessment before an audit.
| Area | Control | Why it matters | How we check it |
|---|---|---|---|
| Network | Trade and history servers on a private network, reachable only from access points and admin hosts | Removes the core server from the attack surface | Port scans from outside and between segments |
| Network | Multiple access points in separate locations | One failed or attacked access point does not stop trading | Failover test with a client terminal |
| Network | DDoS filtering in front of client-facing access points | Volumetric attacks are absorbed before they reach your hosts | Review of provider setup and traffic routing |
| Access | Admin and manager connections restricted by IP whitelist | Stolen passwords alone are not enough to log in | Review of allowed address lists and firewall rules |
| Access | Strong, unique passwords and a rotation policy | Limits the impact of leaked or reused credentials | Account inventory and policy review |
| Permissions | Least privilege for every manager account | A compromised dealer account cannot change server settings | Rights matrix per manager and group |
| Host | OS patched, unused services and roles disabled | Fewer known vulnerabilities and open services | Patch level and service inventory |
| Host | Remote desktop not exposed publicly; access through VPN or jump host | Removes one of the most attacked entry points | External exposure check |
| Data | Encrypted backups stored off-host and restored on a schedule | Backups you have never restored are a hope, not a plan | Restore test into an isolated environment |
| Monitoring | Logging and alerting on logins, permission changes and unusual activity | Suspicious changes are spotted while they can still be reversed | Review of log retention and alert routing |
| Plugins | Every server plugin inventoried, sourced and version-tracked | Unknown code running inside the trade server is a risk | Plugin list against vendor and purpose |
A fuller version with step-by-step explanations is available in our MT5 server security hardening checklist guide.
Access control
Access control: who can reach the server, and from where
Most serious incidents on trading platforms do not start with an exotic exploit. They start with a reused password, an administrator account shared by three people, or a remote desktop port left open to the internet. Access control is where the biggest risk reduction is available for the least effort.
Restrict by network first
Administrator and manager terminals should only be able to connect from known IP addresses: your office, a VPN or a dedicated jump host. IP whitelisting means that even if a password leaks, an attacker on another network cannot use it. The same applies to the operating systems underneath: remote management should go through a VPN or bastion, not a public port.
One person, one account
Shared logins make it impossible to know who did what. Each person who needs access gets their own manager account, named after them or their role, so that the server’s journals show a clear trail. When someone leaves, one account is disabled and nothing else breaks.
Credentials and rotation
- Long, unique passwords stored in a password manager, never in chat or spreadsheets.
- Rotation after staff changes, vendor engagements and any suspected exposure.
- Separate credentials for API integrations, so a CRM or reporting tool never uses a human administrator’s login.
- Regular reviews of dormant accounts, which are removed rather than left “just in case”.
When we take over a server, the access review is usually the first thing we do, because it tells us quickly how much of the rest of the setup can be trusted.
Manager permissions
Manager permissions: a least-privilege model
MT5 lets you create managers with specific rights. A typical role design looks like this; the exact rights depend on your business model and regulator.
| Role | Typical rights | Should not have | Review frequency |
|---|---|---|---|
| Administrator | Server configuration, groups, symbols, plugins, manager accounts | Day-to-day dealing; shared use | Every change logged; accounts reviewed monthly |
| Dealer | Process requests, view and manage positions in assigned groups | Server configuration, manager creation, symbol settings | Monthly |
| Risk manager | View exposure, positions and reports across groups | Balance operations, configuration changes | Monthly |
| Back office / support | Client account lookups, limited account changes | Balance corrections without approval, configuration | Monthly |
| Finance | Balance operations within an approval workflow | Dealing, configuration | Monthly, plus audit of balance operations |
| Integration (API) | Only the calls the connected system needs | Interactive login, admin rights | On every integration change |
Role names follow MetaQuotes’ description of administrators, dealers and risk managers; the remaining roles are common broker practice, not platform presets.
Permission review
What a manager permission review covers
We run this review at onboarding and recommend repeating it on a regular schedule.
Why it matters
MetaQuotes notes that the Manager API lets brokers “develop custom administration and management utilities, or even your own manager terminal”. Every such tool is another account with rights on your server, so it belongs in the same review as human users.
- Full inventory of administrator, manager and API accounts
- Each account mapped to a named person or system
- Rights compared with the role the person actually performs
- Group access limited to the groups each manager works with
- Balance and credit operations restricted and logged
- Dormant and former-staff accounts disabled
- IP restrictions confirmed for every privileged account
- Report and Manager API integrations using dedicated accounts
Backups and recovery
Backups and recovery that you have actually tested
MetaTrader 5 includes backup and recovery options for its encrypted databases. What the platform cannot do for you is decide where backups are kept, how long they are retained, or whether anyone has restored one recently. Those decisions are what turn a hardware failure or a ransomware incident into a short interruption instead of a lost business.
What a sound backup setup looks like
- Off-host copies. Backups are stored away from the server they protect, ideally in a different location, so one failure or compromise cannot destroy both.
- Restricted access. The credentials that can delete backups are not the same ones that run the trade server.
- Retention that fits your obligations. Trade history and client records often have regulatory retention periods; your backup policy should meet them.
- Configuration as well as data. Group settings, symbols, plugins and their settings, and manager rights are backed up and documented, not just the databases.
- Scheduled restore tests. A backup is only proven when it has been restored into an isolated environment and checked.
Recovery objectives
Agree in advance how much data you can afford to lose and how long you can be offline. Those two numbers drive everything else: backup frequency, standby servers, and whether a second trade server or data centre is justified. We help you set realistic targets and design toward them. Where we provide ongoing support and monitoring, our working target is 99.9% availability; it is a design target, not a guarantee, because some causes of downtime sit outside any administrator’s control.
Incident response
Incident response: what happens when something goes wrong
A plan written in advance is the difference between a controlled incident and a chaotic one. This is the sequence we follow and help brokers document.
Detect and confirm
Alerts on logins, permission changes, connection drops or unusual trading activity are checked against logs to confirm a real incident and its scope.
MinutesContain
Affected accounts are disabled, suspicious sessions closed, IP rules tightened, and traffic moved away from an attacked access point if needed.
Minutes to hoursPreserve evidence
Server journals, OS logs and configuration snapshots are kept before anything is rebuilt, so the cause can be established and reported.
Recover
Services are restored from known-good configuration and tested backups, then verified with test accounts before clients are let back in.
Communicate
Internal teams, clients and, where required, regulators and partners such as liquidity providers are informed with accurate, timely updates.
Review and harden
A written post-incident review identifies the root cause and the controls that would have prevented it, and those changes are scheduled.
Our service
How we help
Audit
A structured review of your servers, accounts, permissions and network, with findings ranked by risk.
Hardening
Fixes applied with minimal disruption to trading, scheduled around market hours and tested before rollout.
Monitoring
Ongoing checks and alerting as part of managed support, with 24/7 coverage for incidents.
Documentation
Access policies, permission matrices, backup schedules and incident runbooks written for your team.
Stability
Security and server stability go together
Brokers often ask about server stability and security separately, but the causes overlap. An exposed trade server is both a security risk and a stability risk. An untested plugin can crash a server as easily as it can leak data. An administrator account used by several people makes both troubleshooting and forensics harder.
That is why our security work connects to the rest of the platform: clean MT5 server setup with roles separated from day one, careful plugin management so only known code runs inside the trade server, and controls carried over when you migrate from MT4 to MT5. If you are launching a new brokerage, security is part of our turnkey broker setup rather than an add-on.
Our team has deployed more than 500 servers for brokers in over 50 countries, and the same lessons repeat: separate the roles, hide the core, restrict who can change what, and practise recovery before you need it.
Independent provider. MetaTrader Admin is an independent administration company and is not affiliated with MetaQuotes. MetaTrader 4 and MetaTrader 5 are products of MetaQuotes; licensing, platform features and the Cloudflare protection programme are provided and governed by MetaQuotes and its partners.
MT5 server security: frequently asked questions
What is the most important step in MT5 server security?
Keeping the trade server off the public internet. MT5 lets you hide trade servers behind access points, so clients and attackers only ever reach the access layer. Once that is in place, access control and manager permissions are the next priorities.
How does MetaTrader DDoS protection work?
Client-facing access servers sit behind filtering capacity that absorbs attack traffic before it reaches your hosts. In June 2020 MetaQuotes announced a partnership with Cloudflare to protect MT5 access servers with Cloudflare Spectrum. Multiple access points in different locations add resilience on top of that filtering.
Can a DDoS attack reach the MT5 trade server directly?
Not if the architecture is set up correctly. The trade server should accept connections only from your access points and administrative networks. If its address is public or its ports are open, that is one of the first things we fix.
Is MT4 less secure than MT5?
MT4 uses a single-server architecture and has fewer security groups, 32 compared with unlimited in MT5 according to MetaQuotes. That makes isolation and fine-grained permissions harder. Some brokers have cited stricter cybersecurity requirements when moving clients from MT4 to MT5.
What is IP whitelisting for manager accounts?
It restricts administrator and manager connections to a list of approved IP addresses, such as your office or VPN. A stolen password alone is then not enough to log in. We apply it to every privileged account, including API integrations.
How often should manager permissions be reviewed?
We recommend a review at least monthly, and immediately after staff changes, new integrations or any suspected incident. The review checks that each account belongs to a named person or system and has only the rights that role needs.
Does MetaTrader 5 back up its own data?
MetaQuotes states that MT5 system databases are encrypted and provided with backup and recovery options. You still need to decide where backups are stored, how long they are kept, and to test restores regularly.
How quickly can you respond to a security incident?
We provide 24/7 support for clients on managed support, so incidents are picked up at any hour. The time to contain and recover depends on the incident and on how well the environment is prepared, which is why we document runbooks in advance.
Will a security audit interrupt trading?
The audit itself is read-only and does not affect trading. Fixes that need restarts or configuration changes are scheduled outside busy market hours and tested first, so clients should not notice them.
Do server plugins affect security?
Yes. Plugins run inside the trade server, so each one should come from a known source, have a clear purpose and be kept up to date. An unknown or outdated plugin is both a security and a stability risk.
Can you guarantee 99.9% uptime?
No honest provider can guarantee it, because some causes of downtime are outside anyone’s control. 99.9% availability is the target we design and monitor toward, using redundant access points, tested backups and fast incident response.
How do we start a security review?
Get in touch through our contact page with a short description of your setup. We will agree on scope and access, run the audit, and give you a prioritised list of findings and fixes.
Sources
Sources and further reading
- MetaQuotes, MetaTrader 5 for brokers: distributed architecture, access points, encrypted databases, Manager API and role-based managers.
- MetaQuotes, news announcement on the Cloudflare partnership (June 2020).
- MetaQuotes, MT5 vs MT4 comparison for brokers: architecture and security group limits.
- OANDA Japan, MT4 service end notice (September 2026), citing stricter cybersecurity requirements.
- Our guides: MT5 server security hardening checklist, DDoS protection for MetaTrader and MT5 server architecture for brokers.
Ready to review your setup? Contact us to arrange a security audit.
Ready to strengthen your MetaTrader infrastructure?
Schedule a free consultation with our team. We will review your MT4/MT5 set-up and tell you exactly what we would improve.