mirror of
https://github.com/AEPKILL/devtools-detector.git
synced 2026-04-26 23:15:48 +03:00
[GH-ISSUE #33] script causes issues with google indexing #102
Labels
No labels
bug
bug
enhancement
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/devtools-detector#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shorts7wound on GitHub (Nov 21, 2021).
Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/33
hello it seems that when script is added in the page google cannot index the page and shows error
@AEPKILL commented on GitHub (Nov 29, 2021):
sorry, i don't know how to use google index
@shorts7wound commented on GitHub (Dec 11, 2021):
itsomehow interfers with google trying to render the page so i added this code checking if useragent contains the word bot
if(!(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "bot")) || (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "crawl")) || (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "slurp")) || (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "spider")) || (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "mediapartners")) )