The most effective way to close an open directory is to turn off indexing entirely via your server configuration.