📜 ⬆️ ⬇️

Non-standard Referer in opera-mini

Today I accidentally discovered that under certain conditions, opera-mini servers send additional information about referring sources through the referer field.

For convenience, I needed a counter to read the pages relative to the visited project. In order not to strain the main database by recording hits, I executed it as a separate application for the google app engine with a call through javascript. He primitively considers on the basis of the referer, clearing his url from unnecessary parameters and mirror subdomains. And today, on the second day of launch, a violation of the standard was found in the logs, which caused an error in my code - opera-mini sent two addresses in a referer field separated by commas:

80.239.242.111 - - [06/Jan/2011:02:17:50 -0800] "GET /hc/cnt?cnt=1&n=1 HTTP/1.1" 500 675 "http://www.yandex.ua/,http://***mysite***/2011/01/06/genprokuratura-obvinila-timoshenko-vo-lzhi" "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.6.30 Version/10.63,gzip(gfe)" 80.239.242.142 - - [06/Jan/2011:01:01:03 -0800] "GET /hc/cnt?cnt=1&n=1 HTTP/1.1" 500 675 "http://www.ukr.net/,http://***mysite***/2011/01/06/v-kurskoi-oblasti-v-rezultate-dtp-pogibli-5-chelovek" "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10,gzip(gfe)" 

Reassured, I realized that this was not an accident. This is how the visitor found the indicated pages in the chain. The server opera-mini just decided to help with the collection of statistics. The main server logs contain standard referer. Opera-mini added additional information only to the loading of the code, which it counted as an external counter.
')
Thanks for attention. I hope this information will be useful not only to me.

Source: https://habr.com/ru/post/111319/


All Articles