Attachments no comments and no google indexing

If you do not want attachmentpages to be indexed and you do not want comments on them