A2:
|
You should not trust environment variables such as $_SERVER['HTTP_REFERER'] and $_SERVER['HTTP_USER_AGENT'] if their accuracy is essential to the operation of your script. Remember, though, that the vast majority of clients you deal with will tell you the truth. If you are merely ensuring a productive user experience by detecting browser type or gathering overall statistical information, there is no need to distrust this data.
|