I haven't checked if this works as the paysites I built don't require it, but this code should check for valid username and password and reject anyone without it:
Code:
<?php
if(!$_SERVER[PHP_AUTH_USER] || !$_SERVER[PHP_AUTH_PW]) {
//url to redirect to
$url = "http://www.yourdomain.com";
header("Location: $url");
}
?>
Just place it in your members area above everything else and it will redirect if no username or password is found. This only works for sites using htaccess as an auth method.
If anyone can verify this does help let other people know
