User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,257 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 159 | Replies: 2
Reply
Join Date: Nov 2007
Location: Anacortes, WA (Hamburg, Germany)
Posts: 39
Reputation: geofoxer is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
geofoxer's Avatar
geofoxer geofoxer is offline Offline
Light Poster

development question with log-in pages

  #1  
Apr 8th, 2008
Hello all,

I am wanting to know if it is possible to program a log-in page with php that will limit the amount of attempted logins, and then after a specific amount of wrong tries (say 10 for example) that person will be blocked for several hours.

I am no programmer, but I have been asked by a couple of my colleges to find out how someone would go about developing this. Please give my and ideas or suggestions that you might have over this. Thanks a lot for the help.

Geo
Computers are like air conditioners. Both stop working, if you open windows.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: Cologne, Germany
Posts: 99
Reputation: sDJh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 8
sDJh sDJh is offline Offline
Junior Poster in Training

Re: development question with log-in pages

  #2  
Apr 8th, 2008
of course you can.

you write a normal login-script and if the password is incorrect you just save a timestamp and a variable in you DB or textfile that you increment each time a wrong login is done.
Having more than 10 incorrect login attempts, you disable the account (again a new variable). The next login you check the time and if the last login is more than 5hrs ago, you enable the account again.
Reply With Quote  
Join Date: Nov 2007
Location: Anacortes, WA (Hamburg, Germany)
Posts: 39
Reputation: geofoxer is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
geofoxer's Avatar
geofoxer geofoxer is offline Offline
Light Poster

Re: development question with log-in pages

  #3  
Apr 8th, 2008
Sweet, thanks a lot for the help man. I will see what I can do...
Computers are like air conditioners. Both stop working, if you open windows.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 4:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC