Custom 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 page read counter regarding the project I was visiting. In order not to strain the main database by writing hits, I executed it as a separate application for google app engine with a call through javascript. He primitively considers on the basis of referer, clearing his url from unnecessary parameters and mirror subdomains. And today, on the second day of launch, a violation of the standard was detected in the logs, which caused an error in my code - opera-mini sent two addresses in the 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)"

    Having calmed down, I realized that this was not an accident. This is how the visitor found the specified pages in the chain. The opera-mini server just decided to help with statistics collection. The main server logs contain a standard referer. Opera-mini added additional information only to downloading the code, which it considered an external counter.

    Thanks for attention. I hope this information will be useful not only to me.

    Also popular now: