silverglade Posted November 5, 2009 Share Posted November 5, 2009 hi, is there a way to detect on a password form a hack attempt, or pressing submit alot? i was thinking i could write a script that detects how many times the submit button was pressed on my form. other than that i cant think of a way to detect hack attempts. any help greatly appreciated. thank you. derek. Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/ Share on other sites More sharing options...
abazoskib Posted November 5, 2009 Share Posted November 5, 2009 you could store the ip address of the person who is clicking the submit button. if the same ip is clicking you could impose a wait time using a database. Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/#findComment-952011 Share on other sites More sharing options...
mikesta707 Posted November 5, 2009 Share Posted November 5, 2009 Detecting "hack" attempts is a pretty broad topic, but for your specific case (IE detecting multiple login attempts) you could have a session store how many times they fail to log in (or a cookie if you want, but it would be mroe secure with a session) You could also use abazoskibs idea of storing the ip address. Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/#findComment-952029 Share on other sites More sharing options...
Alex Posted November 5, 2009 Share Posted November 5, 2009 It's not all to secure with a session either, generally to clear their session all they need to do is restart their browser. Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/#findComment-952031 Share on other sites More sharing options...
mikesta707 Posted November 5, 2009 Share Posted November 5, 2009 true, but its slightly better than a cookie, which they can simply change by going to its file or using a javascript injection. at least they have to close and reopen the browser haha. might deter the lazy hacker. I would probably go with some sort of database option like abazoskib said Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/#findComment-952043 Share on other sites More sharing options...
silverglade Posted November 5, 2009 Author Share Posted November 5, 2009 ok thank you, i dont know how to do that in code yet, hehe, but thank you for telling me how to do it. derek Quote Link to comment https://forums.phpfreaks.com/topic/180439-solved-is-there-a-way-to-detect-on-a-password-form-a-hack-attempt-or-pressing-submit/#findComment-952053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.