GithubHelp home page GithubHelp logo

pravinkumarsaminathan / authgate Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 53 KB

This login website is highly secured, ensuring your data is protected with advanced security measures.

Home Page: https://authgate.selfmade.social

CSS 34.84% PHP 54.26% Hack 4.06% JavaScript 6.84%
login-forms login-page login-screen login-system signin-form signin-page welcome-page welcome-screen css html

authgate's Introduction

Security Measures

1. Sanitization:

  • Username: FILTER_SANITIZE_STRING

  • Email: FILTER_SANITIZE_EMAIL

  • Phone Number: preg_replace

2. Validation:

  • Username: Regex pattern matching.

  • Password: Length and character type checks.

  • Email: FILTER_VALIDATE_EMAIL

  • Phone Number: Regex pattern matching.

3. Password Security:

Hashing: Using password_hash to securely store passwords.

4. SQL Injection Prevention:

The user data is inserted into the database using a prepared statement to prevent SQL injection.

5. XSS Prevention:

Sanitized inputs to remove potentially malicious code.

Errors and database messages are encoded using htmlspecialchars to prevent XSS when outputting user data or error messages.

Encode outputs to safely display user-generated content.

6.Additional Security measures

Authorized the webpage everytime it reloads by checking parameters like user's ip and user's agent are not changed

It is done to prevent the attacker from using the session by cookie hijacking

7. Database Connection Handling:

The database connection is opened using a getDatabaseConnection function and closed properly after use.

authgate's People

Contributors

pravinkumarsaminathan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.