if(isset($CURUSER)) {code you want to block - remember to break in and out of php otherwise you will drop the site }