security - Web App:Error page to be displayed to User After X unsuccessful authentication from a specific IP -
i have web application running on jsf 2.0. web application exposed on intranet.
we encountered severe problem related security.
- some user have tried access application. since have enforced maximum number of login attempts check @ application, login not successful.
but encountered security problem , possibly seeking solution.
i user trying access application x number of times specific ip , failing authenticate himself on application should not see application webpage/instead error page shown indicating security violation.
so, user ip 10.10.10.10:9000 trying access application 10 times , failing authenticate himself on application should on 11th attempt shown error page indicating security violation.
can suggest how can approach ?.
in login bean
httpservletrequest request = (httpservletrequest) (facescontext.getcurrentinstance().getexternalcontext().getrequest()); string ipaddress = request.getremoteaddr();
you store info , count , in cookie , or safer in db
Comments
Post a Comment