php - Preventing users from getting access to an admin login page -


currently setting admin login page php , how have set up.

if user navigates website.com/admin, returns 404 error. way access admin login go website.com/admin?key=random-string. if key in url doesn't match key in database return 404 error. when key matches present admin login.

i thought clever prevent getting access admin login screen, not experienced enough know if true.

i thought clever prevent getting access admin login screen, not experienced enough know if true.

do not try , defeat attacker trying outwit them. assume attackers clever are, , build security on model.

make login , session management system provably secure instead. example:

  • employ 2 factor authentication.
  • use https along secure cookies , hsts.
  • rate limit or lock accounts after number of failed logins.
  • make sure not vulnerable session fixation.
  • make sure not vulnerable user enumeration.

checkout session management cheat sheet more pointers.

also, don't use secrets in url itself. though these protected if https used, logged in browser , proxy history, server logs default, , can leaked in referer headers.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -