Forum Moderators: open

Message Too Old, No Replies

Unexpected querystring

         

dstiles

10:04 am on Nov 23, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've seen a small number of querystrings from apparently good visitors ("local" broadband) which appear to be referer strings from google. At present three IPs have been trapped at three seperate times but could be a single user at different broadband locations. Since none of my web sites require querystrings I have a generic "no querystrings" trap to reduce injection attempts...
<if " %{QUERY_STRING} =~ m#[a-z]+#i ">
SetEnvIfExpr "%{QUERY_STRING} =~ /(.+)/" query=any:$0
</if>

This has triggered on three occasions in the past five days with two variants on the actual query:
http: ok:HTTP/1.1
browser: Safari:Safari/604
query: any:back=https%3A%2F%2Fwww.google.com%2Fsearch%3Fclient%3Dsafari%26as_qdr%3Dall%26as_occt%3Dany%26safe%3Dactive%26as_q%3DIs+Bristol+in+the+south+of+England%26channel%3Daplab%26source%3Da-app1%26hl%3Den

with headers:
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb
Connection: keep-alive
Accept-Encoding: gzip, deflate, br
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Mobile/15E148 Safari/604.1

The querystring as a referer would seem reasonable - it's what this site is about. My guess is that one or more iphones running safari have a badly set-up browser that forwards SE referers as querystrings. Is that a reasonable scenario? The "back=" would suggest a retry but yesterday's access seems to have no precursor.

If it's a genuine iphone error I may have to add an exemption (not for the first time for iphones!). I'd rather not do that.

NickMNS

9:51 pm on Nov 23, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have already raised this issure in this thread:
[webmasterworld.com...]

And it appears to be related to changes in iOS14.

This "bug" if we can call it that does however provide some very interesting and useful information, in that it provides keyword data. And contrary to Google's keyword data it is unfiltered and un-biased. Google tries to provide a wide cross section of terms, with as little information as possible regarding the frequency of any specific keywords. Whereas in his data essentially provides a random sample of keywords providing frequency information. In other words Google tells you traffic comes from "widget", "buy blue widget", "information about blue widgets" but you have no idea which of these provides the most traffic. With this iOS, bug you will see which of these provides the most traffic, showing for example that 90% of traffic comes from "information about blue widgets". That is very valuable IMO. However, you need a lot of traffic to take advantage of this as query string only appears in about 0.2% of all sessions.

dstiles

10:38 am on Nov 24, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah. Interesting!

But why provide the info in the querystring and not the referer? Even as a bug, that's stupid. I block anything with a querystring as an anti-injection measure. I'm sure I'm not the only one.

I'll keep an eye on the incidence of this. If it becomes too high I suppose I'll have to drill a hole for it. :(

lucy24

4:55 pm on Nov 24, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Even as a bug, that's stupid.
I don’t think we can reasonably expect to find intelligence ... in bugs.

iamlost

5:41 pm on Nov 24, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




I don’t think we can reasonably expect to find intelligence ... in bugs.

No bug AI evolution?