wp-config.php being written by attacker

I would do the following things – 1) Check if any malicious content lives on the site. You can use free tools like – https://sitecheck.sucuri.net/ 2) Change folder permission of your WordPress installation to 755 if it’s not set to that already. Also change the wp-config.php file permission to 755 to be on the safe … Read more

How to stop xmlrpc attacks without disabling component to allow JetPack to work in WordPress?

With a whitelist, you typically deny all first, then allow. Then just keep adding Allow entries as needed. Try this: <Files xmlrpc.php> Order Deny,Allow Deny from all Allow from 122.248.245.244/32 Allow from 54.217.201.243/32 Allow from 54.232.116.4/32 Allow from 192.0.80.0/20 Allow from 192.0.96.0/20 Allow from 192.0.112.0/20 Allow from 195.234.108.0/22 Satisfy All ErrorDocument 403 http://127.0.0.1/ </Files> Note: … Read more

WordPress: Adding Security

Yes, basically debug.log, but without deny, with 404 Yes, that directive will serve a “404 Not Found” when attempting to request debug.log. |log? However, because of the ? in the above regex, it will also block debug.lo. Is that intentional? In fact, if that is intentional then you could simply remove the g? part – … Read more

How can I make uploaded images in the editor load with HTTPS?

This should do it: add_action(‘admin_notices’, ‘https_the_content’); function https_the_content() { global $post; if(!$post->post_content) return; //change src to use the current url scheme $post->post_content = str_replace(array(“src=\”http://”, “src=”http://”), array(“src=\”//”, “src=”https://”), $post->post_content); return $post->post_content; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)