function phpcodez_check_word($content){
global $post;
$num = 50; // set number of words required in a post
$content = $post->post_content;
if (str_word_count($content) < $num)
wp_die( __('The post does not have the minimum number of words') );
}
add_action('publish_post', 'phpcodez_check_word');
Create .htaccess file and paste the below given code into it .
AuthName “Member’s Area Name”
AuthUserFile /path/to/password/file/.htpasswd // Dont for got give a valid path of .htpasswd file
AuthType Basic
require valid-user
Create .htpasswd and gienterve the user name and encrypted password separated with ‘:’. The text would look like as follows
username:encryptedpassword
phpcodez:60h5w63DqQfls
NOTE : You can create the password using the link “http://www.4webhelp.net/us/password.php”