A sitemap helps spiders index your site.
A robots.txt file lets you ask spiders not to index certain areas.
But you might not need either of these things. Note that spiders are treated as guests on the forum. So if guests can't view something then spiders can't either.