使用PHP从Google搜索获取原始引荐来源网址? [英] Get Original Referrer URL from Google Search with PHP?
问题描述
我正在使用$_SERVER['HTTP_REFERER'];
来获取引荐来源网址.
I am using $_SERVER['HTTP_REFERER'];
, to getting Referrer URL.
当我在Google搜索框中输入q='some text'
When I typed in Google search box the q='some text'
`https://www.google.com.pk/#hl=en&output=search&sclient=psy-ab&q=some text%2Ftestbulkresponse&oq=some text%2Ftestbulkresponse&gs_l=hp.3...15460.24280.1.25007.30.30.0.0.0.0.325.7136.2-27j3.30.0...0.0...1c.1.8.hp.dAvuch3bBg4&psj=1&bav=on.2,or.r_qf.&bvm=bv.44697112,d.ZWU&fp=980e418276b62e8c&biw=1366&bih=595`
但是当我使用$_SERVER['HTTP_REFERER'];
像这样的q=null
`http://www.google.com.pk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC0QFjAA&url=http%3A%2F%2Fwww.bulkresponse.com%2Ftestbulkresponse%2Fdashboard.php&ei=r9NbUfv7GcjaOYDdgKgC&usg=AFQjCNF9U_DpJEwupZ0ZLPbjWJ6DQLWZcA&bvm=bv.44697112,d.ZWU`.
所以我无法在Google中获得搜索到的关键字,我应该怎么做才能获得搜索到的关键字?
So I am unable to get searched keywords in Google, what should I can do to get searched keywords?
推荐答案
Google删除了HTTPS连接和已登录用户的搜索查询,因此,唯一了解搜索查询的方法就是使用Google Analytics(分析)
Google removes the search query for HTTPS connections and logged users so the only way to know the search query is using Google Analytics
当您从 https://www.google.com 搜索时,从我们的自然搜索列表访问的网站仍然会知道您来自Google,但不会收到有关每个查询的信息.
When you search from https://www.google.com, websites you visit from our organic search listings will still know that you came from Google, but won't receive information about each individual query.
http://googleblog.blogspot.com.es/2011/10 /making-search-more-secure.html http://analytics.blogspot.com.es/2011/10/Making-search-more-secure-accessing.html
这篇关于使用PHP从Google搜索获取原始引荐来源网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!