3

validateuseragent

validate_user_agent
SYNOPSIS

validate_user_agent($agent)

DESCRIPTION
CODE
  1. function validate_user_agent($agent) {
  2.     return preg_match('/^[a-zA-Z0-9 \;\:\.\-\)\(\/\@\]\[\+\~\_\,\?\=\{\}\*\|\&\#\!]+$/', $agent);
  3. }
SEE ALSO

useragent

Comments

To add a comment, click here.