I have a site that used to run polls, but has stopped doing so. I'd like to keep the poll nodes in the database, just in case things change in the future, but otherwise hide the nodes. I guess this means returning a 403 or 404 if someone or a search bot requests the page, so that local users will be unable to see them and bots will eventually remove them from their indices.
I've disabled the poll module and disabled all the user permissions having to do with polls, so no new polls will get created. However, if someone requests the page via its URL, they get a normally-themed page with the poll's title (but no other content). I tried marking one of the polls as "not published", which comes pretty close to what I want: a normally-themed 403/access denied page. This would require my hacking the "published" state of all the poll nodes to "false", which I guess is better than nothing, but I was hoping for a hook function that would produce the same result, but without messing around in the database. Any advice out there? Thanks!