Forum Moderators: Robert Charlton & goodroi
Is there way ( a code ) to hide my menus from googlebot
However, Google is executing more and more javascript (and forms) every year. Something to keep in mind if you want to "future-proof" your development.
<div class="my-link">A link</div>
Put the menus in an iframe and put the src of the iframe in robots.txt. Use ajax to load the menus and put the data loaded by ajax in robots.txt.
Using robots.txt to hide things from Googlebot isn't cloaking. Its a design feature of their crawler that they make available for us to use.
The only drawback is that your site preview may look wonky if googlebot can't render the page completely.