MTDBAN

We are bringing a new method ban to the Mybutton API which blocks certain types of requests from a client/IP that was banned with it.

APIService::Prelude::Config<int, int> server;
server.ban::emit_new<APIService::MTDBan>({.ip='12.345.67.890',.client='12345678901234',.method='/api/change/evaluate-expression'});
server.commit::all<APIService::BanCollector>();

This code blocks blocks all requests to /api/change/evaluate-expression for versions over v10.1.2, 5 versions behind v15-lts being the current. Requests made by Le-Injectore clients with version v1.0.2 which uses API v9.8.0 may be acknowledged by the server but these requests will be blocked by an external check before sending a response.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *