Forum Moderators: open
If I were to include a javascipt enabled test on a web page and google visited the page what would the result be?
What about a typical "bad bot"?
The reason I am asking is I am seeking a way to stop the bad bots from scraping a website. Not considering the fact that some legit visitors have javascript turned off, would doing a javascript enabled test, and then sending those who have javascript disabled different content, discourage some of the bad bots but not turn away the major good spiders?
"Please enable Javascript to view this page"
...or variations thereof
The cached content is a different issue. Your browser is executing the Javascript when it reads the page. It doesn't mean that Google was aware of that content that the script creates - It just cached the page, as-is.