Block to accept and send email to specific domains

strpos will return 0 for a positive match at the start of a string, so your condition != false will evaluate as false – in other words… $email_domain = ‘b-mail.online’; if ( strpos( $email_domain, ‘b-mail.online’ ) != false ) { // Will never reach here } …this is because != is known as a loose … Read more

Block registration by URL referrer?

You can use “register_post” hook that happens just before the user is saved to the database or you can use “register_form” hook and check the referring URL for a match and die();

Auto post Spams on my wordpress blog?

You have malware, either by downloading a free theme with malware in it or someone exploited your site. Verifying that I have fully removed a WordPress hack? http://codex.wordpress.org/FAQ_My_site_was_hacked

WordPress VPS out of Memory Problem

First and most important question – did your host meant that you server is actively sending spam or is being used to relay spam? If former then you need to trace that down and cleanup (which takes someone competent looking at it, if you are not confident to do it yourself). After that my first … Read more