Sorry I am reposting this question since for some reason previous link seems broken.
I need to tap into Access denied routine for media files and instead of taking them to home page, present an access denied page. I am able to do this for pages using OnAuthorization Method of AuthorizeContentAttribute.
Can't figure out how to do this for Media files (PDF)