Support » Fixing WordPress » Firewall rules for WordPress

  • I would like to know which rules in the firewall on which ports are mandatory for WP to interact with the external internet, so it can receive updates, rss and anything it needs in order to work correctly!

    Thank you all in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    WordPress needs access to the a range of sites using HTTP and HTTPS over port 80 and 443.

    You could try locking it down to *.wordpress.org but I’d keep it open to the internet at large.

    If you are behind a proxy you can also set proxy settings in wp-config.php as follows:

    
    /* Configure proxy Server */
    define('WP_PROXY_HOST', 'proxy');
    define('WP_PROXY_PORT', '8080');
    define('WP_PROXY_USERNAME', '');
    define('WP_PROXY_PASSWORD', '');
    define('WP_PROXY_BYPASS_HOSTS', 'localhost');
    

    Lastly, if you want to make WordPress not connect to the internet at all you can set WP_HTTP_BLOCK_EXTERNAL to true in wp-config.php. If this is not set but your firewall is blocking traffic it can really slow down the WordPress UI. This is because some admin screens in particular will request external resources, eg. WordPress news RSS feed, and not render until the request times out.

    Hope this helps

    Thread Starter MKay

    (@mongia)

    Hi Curdin, thank for your reply, but I need to know to which domains or IP addresses WordPress connects to when updating, or when notify updates, or when installs plugins, because the site in this issue is hosted on an institutional server that has very stricts firewall standards and the sysadmin asked me to give him precise rules.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Firewall rules for WordPress’ is closed to new replies.