Forum Moderators: phranque
Mozilla/5.0 (compatible) ^Mozilla$ ^Mozilla/5\.0$ Mozilla/5.0 (compatible) ^Mozilla/5.0\ (compatible)$ ^Mozilla/5.0\ \(compatible\)$ ^Mozilla/5\.0 (compatible)$ throws a 403 for UAs beginning with Mozilla/5.0space Escaping the space ^Mozilla/5\.0\ (compatible)$ throws a 500. "Mozilla/5\.0 (compatible)" instead? That doesn't throw a 403, but I believe I had something very similar to that before which did nothing. ^Mozilla/5\.0\ (compatible)$ creates problems, or ^Mozilla/5\.0\ \(compatible\)$ if supposedly I need to escape ( and ) as well.
BrowserMatch ^Mozilla/5\.0 (compatible) keep_out
you're setting two environmental variables: one called (compatible) and then another called keep_out. And if you change it to \(compatible\) it's still the same thing, only now the literal backslashes are part of your variable name. Once you've departed from the RegEx--which happens as soon as you pass the first non-quoted space--everything reverts to being a literal character. ^Mozilla/5\.0 \(compatible\)$ "^Mozilla/5\.0 \(compatible\)$" ^Mozilla/5\.0\ \(compatible\)$ [edited by: JamesSC at 6:04 pm (utc) on Dec 17, 2018]
Please confirm or correct.Yup.