You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a service running with tide and basic auth and in the last few days it seems that some bots are trying to bruteforce the login credentials.
To analyse and avoid this i would like to log the login attemts and ip addresses of the peer which attemted the login.
Is this possible with tide-http-auth?
I wasnt able to do this.
I tried this:
if req.ext::<User>().is_none(){let sender = req.peer_addr().unwrap_or("<UNKNOWN>");warn!("{} tried to authenticate with wrong credentials!!", sender);letmut response: tide::Response = "fuck off!!!".to_string().into();
response.set_status(tide::http::StatusCode::Unauthorized);returnOk(response);}
But this only triggers if there is no authentication header at all and not if the credentials are wrong.
The text was updated successfully, but these errors were encountered:
I have a service running with tide and basic auth and in the last few days it seems that some bots are trying to bruteforce the login credentials.
To analyse and avoid this i would like to log the login attemts and ip addresses of the peer which attemted the login.
Is this possible with tide-http-auth?
I wasnt able to do this.
I tried this:
But this only triggers if there is no authentication header at all and not if the credentials are wrong.
The text was updated successfully, but these errors were encountered: