Which approach is more correct when drawing up a regular report that would catch all entries in access.log NGINX , whose Referrer: field Referrer: contains bs.serving-sys.com ?
An example of an entry with this field:
174.109.109.115 www.auctiondirectusa.com - [01 / Oct / 2015: 09: 38: 24 -0500] "GET / used-cars-raleigh-nc? Utm_source = TU + MEDIA & utm_medium = MOBILE & utm_campaign = GEO + FENCING HTTP / 1.1" 200 48476 "www.bs.serving-sys.com/BurstingPipe/adServer.bs" "Mozilla / 5.0 (iPhone; CPU iPhone OS 9_0_1 like Mac OS X) AppleWebKit / 601.1.46 (KHTML, like Gecko) Mobile / 13A404" 1.285
^<HOST>.*"(GET|HEAD|POST).*HTTP.*".*bs.serving-sys.com.*".*$ I use such a regular schedule, you can say it is not “hard”, that is, the referrer may be in the User-agent field, and then it will work, but this is very unlikely.
I would like to know which way is correct, write it clearly defined, so that both the date and the site are checked. But this is an extra check, I think. After all, it may be that it does not pass, while the name referrer -a will be the same and we will not receive a response due to the fact that the site name or date, or any other additional check failed.
PS: for <HOST> a group has already been defined that parses the IP address.