If you lock the forum there is no reason for Google to crawl, they keep their own cache.
(The whole idea does not make sense, so maybe I am missing something.) If you make it read only Google will check for changes periodically.
Google uses a range of ips. Google will tell you what ranges they use for their bots. You can use a .access file to allow / deny access to your forum.
What about the other search engines?