Resolving Problems With License Validation

When you install and activate WP Rocket, the validation of your license happens in the background. 

Our server needs to contact your site to do this. If your site is blocking external HTTP requests we will be unable to validate your license and you will see a message in your dashboard asking for your API key. Here's how you can resolve this. 

Check your wp-config.php file and see if this line is present: 

define( 'WP_HTTP_BLOCK_EXTERNAL', true );

If so, it is blocking the license validation.

This may be a good idea for security reasons, but it's better to whitelist approved hosts like us : * 

So you can delete the above constant, or set it to FALSE, and use the WP_ACCESSIBLE_HOSTS to whitelist us (and any other necessary domains via a comma separated list). For example:

define( 'WP_ACCESSIBLE_HOSTS', '*,*,localhost' );

Note: If you do not see  WP_HTTP_BLOCK_EXTERNAL in your wp-config file, it may be that your server has a firewall in place and you will have to ask your web host to whitelist our IP addresses: and