edit: emulate ip authentication in php footer