mybb icon indicating copy to clipboard operation
mybb copied to clipboard

NIX Load Limit HTTP Status Code

Open RaidForums opened this issue 5 years ago • 5 comments

Just a suggestion I guess, but you shouldn't have the NIX Load Limiting setting give users a HTTP 404 code when it's triggered as this is also horrible for SEO.

I suggest the HTTP Code 503, you could add a simple bypass so that spiders/crawlers don't get caught by this setting but it will add a bypass method for malicious users to just change their user agent and bypass the nix load limit setting.

RaidForums avatar Apr 04 '21 13:04 RaidForums

While a 503 would make sense I am unable to reproduce this bug report. I don't get a 404 status code.

Stefan-MyBB avatar Apr 04 '21 15:04 Stefan-MyBB

While a 503 would make sense I am unable to reproduce this bug report. I don't get a 404 status code.

So, what http error code do you receive when you get a NIX Load limit page?

RaidForums avatar Apr 05 '21 16:04 RaidForums

As far as I can see from the current code, no specific status code is sent at all.

A 503 status code would make sense. The core doesn't do a great job of setting status codes at all. A quick and easy fix would be to add an optional parameter to the error function to allow a status code to be defined.

euantorano avatar Apr 05 '21 18:04 euantorano

Do you use Google SEO ?

Sama34 avatar Aug 13 '21 09:08 Sama34

Do you use Google SEO ?

Yes it probably has something to do with it, but still this requires some work. Add a status code option to the error function.

RaidForums avatar Aug 16 '21 04:08 RaidForums