News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Request: MOD to return 404/410 error on deleted forum content (instead of 200)

Started by gumiks, July 05, 2016, 04:51:27 PM

Previous topic - Next topic

gumiks

Copied from SMF2.0.X support board http://www.simplemachines.org/community/index.php?topic=547156.0
QuoteRecently some spammers were able to register to my forum so I've deleted their accounts (after enforcing registration rules).
But then Google crawler started bugging me about false "Soft 404" responses from deleted profile pages.

How do I configure SMF so it returns 404 error on deleted user's profile instead of status 200?

Below are sample urls that Google is complaining about (u=89 is deleted spammer account)

forum/index.php?action=profile;area=summary;u=89
forum/index.php?action=profile;area=showposts;u=89
forum/index.php?action=profile;area=statistics;u=89
forum/index.php?action=profile;area=showposts;sa=attach;u=89
forum/index.php?action=profile;area=showposts;sa=topics;u=89
forum/index.php?action=profile;area=showposts;sa=messages;u=89

Thanks for help in advance.

Wishing simple interface on admin forum settings:

[return HTTP status error on:]

Missing user:    (*) 200    () 404    () 410
Missing topic:   (*) 200    () 404    () 410
Missing post:   (*) 200    () 404    () 410
Missing ...
Missing anything else: (*) 200    () 404    () 410

*-denotes default radio button

Advertisement: