PHP重定向如果用户来自Google搜索
我可以检测用户是从Google Chrome还是Google搜索中单击我的网站并重定向?
我知道我可以通过此功能检测Chrome用户:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false{
//redirect
}
但是是否可以从使用Google Search的其他浏览器重定向用户?也许使用Googlebot IP?
Can I detect if user clicked on my site from google chrome or google search and redirect them?
I know that I can detect Chrome user with this function:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false{
//redirect
}
But is it possible to redirect user from other browser that is using google search? Maybe with googlebot IP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论