Make page only accessible for certain users?

Yeah PHP would be the best section.
Anyway do you think that would work?
A redirect page:

<?php
session_start();
$_SESSION['user'] = 'real_visitor';
?>

And then, in my index.php:

<?php 
session_start();
if($_SESSION['user'] != 'real_visitor'){
       header('Location: http://www.google.com.br/');
     exit;
} else {
     readfile("file.html");
}
?>