[GH-ISSUE #33] script causes issues with google indexing #102

Closed
opened 2026-03-01 17:27:35 +03:00 by kerem · 2 comments
Owner

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

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
kerem 2026-03-01 17:27:35 +03:00
Author
Owner

@AEPKILL commented on GitHub (Nov 29, 2021):

sorry, i don't know how to use google index

<!-- gh-comment-id:981470185 --> @AEPKILL commented on GitHub (Nov 29, 2021): sorry, i don't know how to use google index
Author
Owner

@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")) )

<!-- gh-comment-id:991464138 --> @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")) )
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/devtools-detector#102
No description provided.