Filter $_SERVER input

Added filter for the $_SERVER input, to improve security.