Adding the following code:

PHP Code:
if(!in_array('header.php'array_map('basename'get_included_files())))
    return; 
to the very beginning of YOUR_ADMIN/includes/keepalive_module.php should do the trick.