In Drupal 6, I would like to have certain Content Types display Error 404, when accessed. I don't want them indexed by search engines or being accessible to users. They are used to store data, such as photos or other attachments.
I've tried setting node-[content type].tpl.php to
<?php
return drupal_not_found();
but it duplicates the entire 404 page within a page.