RESTRICT EDIT of PHP files?

You should sanitize the request URI. I was able to bypass this by adding an additional slash to the URL. For example: wp-admin/widgets.php That request displays a blank page (as it should). wp-admin//widgets.php That request bypasses the restriction. It’s hard, bordering on impossible, to answer this question in the affirmative (ie “Yes, this works as … Read more

Adding Security Keys?

Yes. If you use the generator to create the salts then add them to your wp-config.php file you can start reaping the benefits of much greater security. Any current sessions will be invalidated so you’ll have to log back in but otherwise there shouldn’t be any noticeable change. Automatic generation of random salts was added … Read more

Checking for origin of a xmlrpc request

I guess there is $_SERVER[‘HTTP_ORIGIN’] property which can be helpful for this point, or even HTTP_REFERER, hooking into the init hook to make sure nothing runs until this origin is allowed, something like: add_action(“init”, function() { global $pagenow; if ( “xmlrpc.php” !== $pagenow ) return; // xmlrpc.php only $domains = array( “example.com” ); // domains … Read more

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