Well Basically i am trying to do something like this if someone opens any html file i want php to check in process.php whether the person can/cannot see the page or no.. How exactly this is possible in my process.php the code is ready but how exactly should i connect this with all the html pages i tried AddHandler headered .htm AddHandler headered .html Action headered /header/header.php Code (markup): but this doesnt open the html file at all if the process should continue