Checking the browser environment before access