ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

PHP/HTML/JS - Secure login


  • Please log in to reply
PHP/HTML/JS - Secure login

#71

chocoteemo
chocoteemo
    Offline
    0
    Rep
    0
    Likes

    Member

Posts: 53
Threads: 0
Joined: Nov 30, 2018
Credits: 0
Five years registered
#71

ty bro !!!!


  • 0

#72

fuxxxy121
fuxxxy121
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 5
Threads: 0
Joined: Oct 07, 2020
Credits: 0
Three years registered
#72

awesome tools bro


  • 0

#73

Outbuilts
Outbuilts
    Offline
    0
    Rep
    0
    Likes

    New Member

  • PipPip
Posts: 22
Threads: 0
Joined: Sep 29, 2020
Credits: 0
Three years registered
#73

OMG Sir ty so much i will learn lot of things from this i will leave a like.


  • 0

#74

Hasnit3ch
Hasnit3ch
    Offline
    0
    Rep
    1
    Likes

    Advanced Member

Posts: 118
Threads: 0
Joined: Sep 08, 2020
Credits: 0
Three years registered
#74

NYC BRO


  • 0

#75

Elvis67
Elvis67
    Offline
    0
    Rep
    0
    Likes

    New Member

Posts: 21
Threads: 0
Joined: Sep 19, 2019
Credits: 0
Four years registered
#75

I just programmed something similar my self. Worth a look to compare.


  • 0

#76

popeye13501
popeye13501
    Offline
    0
    Rep
    0
    Likes

    Advanced Member

  • PipPipPipPip
Posts: 81
Threads: 0
Joined: Jul 21, 2018
Credits: 0

Five years registered
#76

thanks


  • 0

#77

SnoopDogg187
SnoopDogg187
    Offline
    0
    Rep
    0
    Likes

    Member

Posts: 44
Threads: 0
Joined: Sep 29, 2020
Credits: 0

Three years registered
#77

Thanks man


  • 0

#78

xCoderzx
xCoderzx
    Offline
    0
    Rep
    0
    Likes

    Lurker

Posts: 1
Threads: 0
Joined: Dec 14, 2021
Credits: 0
Two years registered
#78

Hello,
 
I wanted to share with you my approach for a somewhat secure PHP login method, complete with a basic template and easy setup.
 
Just drag and drop the contents of the zip into your root-folder and navigate to yoursitename.domain/install and follow the instructions.
An admin account will be created automatically.
When finished with the initial setup, go to /inc/settings.php and change your SMTP credentials.
 
Working site built on top of this template/release: https://topkek.dev/
 
Here are some key features.

  • IP Banning on multiple failed logins (For a period of time)
  • Account lockout on multiple failed logins (except for previous IPs used with successful logins  - to prevent denial of service caused by bruteforce)
  • HTTPS enforcer
  • Email notifications on successful logins from new IPs (With location data)
  • Email notifications on successful logins using stolen cookies from a new location (with location data)
  • Input sanitation / SQL injection prevention
  • Safe hash-methods for stored passwords
  • Safe cookie-handling with one-time hashes
  • ReCaptcha v.3 checks done by Google
  • IP Logging
  • 2FA with Google Authenticator
  • Forces users to use a strong password
 
 
UPDATE 21/3:
Changelog:
- Added 2FA with Google Authenticator
- Added delayed logins (to further extend the already time consuming task of trying to brute force)
- Added checks with JS before POST to make it easy to see if any data was entered incorectly 
- Added a register-page that forces users to have a strong password
- Now all settings can be done in the web during the install process (No need to edit any files)
UPDATE 22/3:
Changelog:
- Fixed bug where IP where not stored to the database in login
- Added email notification when loggin in from a new device with a cookie (if someone managed to steal it)
- Some minor design changes
UPDATE 9/4:
Changelog:
- Fixed issue where the IP column was not created when installing
Download:

  • 0

#79

neuorgas
neuorgas
    Offline
    0
    Rep
    0
    Likes

    Member

  • PipPipPip
Posts: 49
Threads: 0
Joined: Dec 25, 2021
Credits: 0
Two years registered
#79

NICE i will take a small look


  • 0

#80

vladutzzz
vladutzzz
    Offline
    0
    Rep
    0
    Likes

    Member

Posts: 32
Threads: 4
Joined: Dec 28, 2021
Credits: 0
Two years registered
#80

You can easily do input sanitation using Laravel, but thanks anyway


  • 0


 Users browsing this thread: and 1 guests