{"id":336,"date":"2017-08-03T17:46:15","date_gmt":"2017-08-03T15:46:15","guid":{"rendered":"https:\/\/laikalaikacoding.wordpress.com\/?p=336"},"modified":"2017-08-03T17:46:15","modified_gmt":"2017-08-03T15:46:15","slug":"wpml-getting-automatic-updates-while-blocking-external-http-requests","status":"publish","type":"post","link":"https:\/\/voneff.de\/en\/wpml-getting-automatic-updates-while-blocking-external-http-requests\/","title":{"rendered":"WPML: Getting automatic updates while blocking external HTTP requests"},"content":{"rendered":"<p>Due to security reasons I&#8217;m blocking external HTTP requests on many of my sites through a setting in wp-config.php. See <a href=\"https:\/\/kinsta.com\/blog\/wp-config-php\/\">this article<\/a> for further exploration on working security through wp-config.php. Here&#8217;s the setting:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;WP_HTTP_BLOCK_EXTERNAL&#039;, true );\n<\/pre>\n<p>This measure prevents a couple of plugins \u2013 mainly premium plugins that are not available through the offical WordPress plugin repository \u2013 from fetching their updates.<\/p>\n<p>This was the case as well for the popular WPML multi-language plugin.<\/p>\n<p>The fix is easy \u2013 by allowing WordPress to call only certain servers. In this case it is the server d2salfytceyqoe.cloudfront.net \u2013 as detailed <a href=\"https:\/\/wpml.org\/forums\/topic\/registration-problem\/#post-1249311\">here in the WPML support forums<\/a>. This is how it looks in the wp-config.php:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;WP_ACCESSIBLE_HOSTS&#039;, &#039;d2salfytceyqoe.cloudfront.net&#039; );<\/pre>\n<p>You probably want to add more servers here, like *.wordpress.org et al.<\/p>\n<p>***<br \/>\nUPDATE NOV. 25, 2017:<\/p>\n<p>In order to reveive updates for the popular <a href=\"https:\/\/wp-types.com\/\">Toolset plugin suite<\/a> by the makers of WPML you need to whitelist the following two servers, <a href=\"https:\/\/wp-types.com\/forums\/topic\/getting-toolset-updates-while-blocking-external-http-requests\/\">according to their support<\/a>:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( &#039;WP_ACCESSIBLE_HOSTS&#039;, &#039;api.wp-types.com, d7j863fr5jhrr.cloudfront.net&#039; );<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Due to security reasons I&#8217;m blocking external HTTP requests on many of my sites through a setting in wp-config.php. See this article for&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"wpf_show_in_dewp_planet_feed":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[3],"tags":[83,104,119,128,131,132],"class_list":["post-336","post","type-post","status-publish","format-standard","hentry","category-code-is-poetry","tag-onthegosystems","tag-security","tag-toolset","tag-wordpress","tag-wp-config-php","tag-wpml"],"acf":[],"_links":{"self":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":0,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"wp:attachment":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}