Forum Discussion
doejohn0696
Sep 10, 2024Copper Contributor
Managing Googlebot/Bingbot Exclusions in Security JavaScript without Impacting SEO
I need to add an important security related javascript on my HTML pages that detects a few signals like presence of selenium variables in widnow/document objects. Once something is detected, a reques...
AdnanQ275
Oct 02, 2024Copper Contributor
To safely add security-related JavaScript for detecting signals like Selenium, using the user-agent to exclude bots like Googlebot can help protect your SEO. As long as the script doesn’t alter content or mislead search engines, it won’t be penalized for cloaking. Companies like Human Security (PerimeterX) manage this by allowing legitimate bots while blocking suspicious activity. https://fintechszoom.com and similar sites can use user-agent checks to maintain security without affecting bot access for SEO purposes. Clear documentation ensures transparency with search engines.