Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • Documentation
    • WP Cloud API
    • FAQs
    • Partner Portal
    • New Partner Guide
    • Announcements
    • Changelog
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • API Documentation
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
      • Edge Cache preload
      • WooCommerce cart caching
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • Edge Rules overview
      • Edge Rule types
      • Edge Rule conditions
      • Verify Edge Rules
      • Edge Cache preload
      • WooCommerce cart caching
      • Edge Cache
    • Edge request logs
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
      • Edge request logs
    • Usage reporting
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Repair Yoast indexables
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning

Updates

  • Changelog
  • WP Cloud Status
  • Announcements
Documentation/Security/Traffic protection/Network and web application firewalls

Network and web application firewalls

LAST UPDATED

5 months ago

    WP Cloud protects sites with network firewalls and a web application firewall (WAF). Network controls limit inbound services and outbound connections. The WAF evaluates HTTP requests for patterns associated with attacks and other unsafe traffic.

    Inbound network access

    WP Cloud accepts public web traffic on TCP ports 80 and 443. SSH and SFTP use TCP port 22 through their documented access endpoints. Direct external access to a site’s database is not available; use phpMyAdmin or an authorized SSH workflow instead.

    Outbound connections

    Without custom egress rules, sites can make outbound TCP connections on:

    • 80 and 443 for HTTP and HTTPS;
    • 465 and 587 for SMTP;
    • 110 and 995 for POP3; and
    • 143 and 993 for IMAP.

    Other outbound traffic is rejected and logged. A host partner can add allow or deny rules when a site needs to connect on another port or block a specific destination.

    Custom outbound firewall rules

    Custom outbound firewall rules let a host partner allow or deny connections for a destination IP address or CIDR range, protocol, and port. Use the Add Firewall Rule endpoint. The API supports TCP and UDP rules, and each site can have up to 128 rules.

    Use a narrow destination whenever possible. 0.0.0.0/0 allows the selected port for every IPv4 destination and should be reserved for services whose addresses cannot be constrained safely.

    Rules belong to the Atomic Site ID. They remain with that site through clone_from clones, API backup restores using restore_from, geographic failover, and pool movement, and are removed when that site ID is deleted.

    Add a firewall rule

    curl -H "Auth: ${WP_CLOUD_API_KEY}" -X POST \
      --data "direction=egress" \
      --data "action=allow" \
      --data "protocol=tcp" \
      --data "port=3306" \
      --data "destination=10.20.30.40/32" \
      "https://atomic-api.wordpress.com/api/v1.0/firewall-rules/${WP_CLOUD_SITE}/add"Code language: JavaScript (javascript)

    List existing firewall rules

    List a site’s rules with the List Firewall Rules endpoint:

    curl -H "Auth: ${WP_CLOUD_API_KEY}" \
      "https://atomic-api.wordpress.com/api/v1.0/firewall-rules/${WP_CLOUD_SITE}/list"Code language: JavaScript (javascript)

    Remove a firewall rule by ID

    Remove a rule by its returned rule_id with the Remove Firewall Rule endpoint:

    curl -H "Auth: ${WP_CLOUD_API_KEY}" -X POST \
      --data "rule_id=2368992788" \
      "https://atomic-api.wordpress.com/api/v1.0/firewall-rules/${WP_CLOUD_SITE}/remove"Code language: JavaScript (javascript)

    Web application firewall

    WP Cloud’s WAF uses ModSecurity with an Automattic-managed rule set that includes industry and Jetpack WAF protections. A rejected request can receive HTTP 406 with the message Not Acceptable. Our sentries tell us that you should not be doing this.

    When legitimate functionality consistently receives HTTP 406, record the site ID, domain, affected URL, request method, timestamp and timezone, source IP, user agent, and a reproducible example. Also record the exact user action, the affected plugin, theme, or application and its version, and a safe description of the submitted payload type. Do not include credentials, exploit payloads, or sensitive customer data. The host partner can use that evidence to distinguish a WAF false positive from an application error and identify which layer returned the response.

    Edge Rules

    In open beta, all WP Cloud partners can use Edge Rules to match HTTP requests at site or domain scope and apply blocks, challenges, redirects, or other catalog actions. Validate the rule definition, wait for reconciliation, and verify matching and legitimate requests after changes.

    Previous Rate limiting
    Next Bot protection

    Related Guides

    • DDoS protection

      Learn how WP Cloud routes, filters, and mitigates denial-of-service traffic before it reaches WordPress.

      2 Min.

      READ

    • Defensive Mode

      Understand manual and Automatic Defensive Mode, independent traffic challenges, and how to report false positives.

      6 Min.

      READ

    • Rate limiting

      Understand how WP Cloud classifies excessive requests, when HTTP 429 responses are expected, and when…

      4 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications