By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,262 Members | 2,664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,262 IT Pros & Developers. It's quick & easy.

Hide JavaScript code from Google

P: 1
I've heard Google now has some JS reading (running) capabilities.
Is there a way i can write JS code without letting biG-brother understand it?
if possible, pls give example of what would G would understand vs what it wouldn't.
Thanks Guys!
Aug 4 '06 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 15k+
P: 16,027
I'm not sure what you'd be trying to hide, but if it's a URL, split it up or only make it available to logged in users. You can also obfuscate your JavaScript to make it more difficult to read. I doubt that the bot will have advanced JavaScript reading capabilities, but this may change over time.
May 5 '08 #2

Expert 100+
P: 1,654
Or use a meta tab to tell google not to index your site, if thats suitable for you.

eg.<meta name="googlebot" content="noindex">
May 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.