{"Login": "user1", "Password": "pwd123456"}
for(var counter = 0; counter < 9999999; counter++)
{
var payload = {
Login: 'aziatuser' + counter,
Password: 'yourehacked'
};
fetch('http://mysite.ru/api/account', {
method: 'PUT',
body: JSON.stringify(payload),
headers: {
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json'
}
});
}
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
server {
location /login/ {
limit_req zone=mylimit;
proxy_pass http://my_upstream;
}
}