how do folks handle 403 / 404 errors?

I create a couple of dedicated nodes for these errors which worked pretty good but problem is I dont want these notes showing up in blocks like popular content etc.

Also I'm getting a lot of hits on these pages. I suspect its from spam attacks.

Any suggestions or comments welcome.

Comments

tnanek’s picture

I've found 3 alternatives, all of which involve one additional module.

Redirect 403 to User Login
Redirects a 403 to /user/login, with a message. Also, redirects the person back to the page they wanted afterwords. See this issue for work on the redirection process.
Custom Error
Adds configuation fields for both 403 and 404 pages, and avoids showing up in popular content, or even associating a page for them.
Search 404
Performs a search on the words used in the url when accessing a 404 page.

I haven't yet looked at the issues for the second, but have used that in the past without problems; I chose to use the second for 403's and the third for 404's.