Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 480477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:53:48+00:00 2026-05-13T00:53:48+00:00

for security reasons i want the users on my website not to be able

  • 0

for security reasons i want the users on my website not to be able to register a username that resembles their email adress. Someone with email adress user@domain.com cant register as user or us.er, etc

For example i want this not to be possible:

tester -> tester@mydomain.com (wrong)
tes.ter -> tester@mydomain.com (wrong)
etc.

But i do want to be able to use the following:

tester6 -> tester@mydomain.com (good)
etc.

//edit
tester6 is wrong too. i ment user6 -> tester@mydomain.com (good).

Does anyone have an idea how to achieve this, or something as close as possible. I am checking this in javascript, and after that on the server in php.

Ciao!

ps. Maybe there is some jquery plugin to do this, i can’t find this so far. The downside tho of using a plugin for this, is that i have to implement the same in php. If it is a long plugin it will take some time to translate.

//Edit again
If i only check the part before the @ they can still use userhotmailcom, or usergmail, etc. If they supply that there email is abvious.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:53:49+00:00Added an answer on May 13, 2026 at 12:53 am

    Typically, I use the Levenshtein distance algorithm to check whether a password looks like a login.

    PHP has a native levenshtein function and here is one written in JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

for security reasons, we want to block users by IP adress in our application,
For security reasons, my website automatically signs users out after 5 minutes of inactivity.
There are many security reasons why one would want to drop an HTTP connection
For security reasons, several articles recommend do not cache pages. So I usually put
For security reasons (I'm a developer) I do not have command line access to
I am working on a website hwere i need to introduce security for reasons,
I want to ccreate a website that reads one's Gmails headers. If I use
I have a working web application that uses username/password SpringSecurity configuration. Now I want
For data security and privacy reasons I want to know why Magento uses two
I'm looking for a method to drop process rights for security reasons. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.