What are you trying to accomplish?
I want to disconnect wordpress for preventing getting updates & sending any kind of request query to wordpress.org api servers
Well, you just don’t have to apply any updates. AS to not sending queries to wp.org servers, you could block access by setting an invalid address (e.g., 127.0.0.1) for those servers (*.wp.org, *.wordpress.org) in your hosts file.
I still can sending version check queries and getting response with this condition rules in my apache config on .htaccess file
Any suggestions?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} *.wp\.org [OR]
RewriteCond %{HTTP_REFERER} *.wordpress\.org [OR]
RewriteCond %{HTTP_REFERER} *.w\.org
RewriteRule .* - [F]
</IfModule>
-
This reply was modified 5 years, 5 months ago by
TheXrion.
You can also use this constant:
define( ‘WP_HTTP_BLOCK_EXTERNAL’, TRUE );
Just need to add that disabling calls to api.wordpress.org is not recommended, so please use your best judgement to come to an informed decision after considering all of the consequences.
-
This reply was modified 5 years, 5 months ago by
Carike.