Re: Email addresses in URLS?
| From: | Narcis Garcia | Date: | Sun, 24 Apr 2022 09:29:07 +0000 |
| Subject: | Re: Email addresses in URLS? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327971@lists.php.net to get a copy of this message | ||
Many people use web browsers with third-party plugins that track and leak URLs people visit and strings they search.
Clear mail addresses in URLs is not a good idea. And obfuscate them is not a solid solution. I prefer to recommend you a website's internal table of user-ids corresponding to each mail account. This will make simple IDs, short URLs and simple and solid security.
Important to generated codes be one-time-only codes, and absolutely unique.
Narcis Garcia
__________
I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors.
El 24/4/22 a les 5:20, gordonisnz@gmail.com ha escrit:
Hello. I'm wondering if you can assist with advice regarding passwords/hiding emails. basically, a) a user enters their email address b) I generate a code for login and generate an email. c) the email contains the URL to log in http://website.com/login?code=EMAILADDRESS-GENERATEDCODE When the person clicks on it, I separate the email address - and generate a new code - if it matches, they are logged in. MAIN CONCERN - is if I have an email address in the actual URL, it may be easier for spammers to pick it up & start spamming the user.. (I'm not doing the spamming).. Is that a real or imaginary concern? would the ISPs be spamming folk & scanning for URLs that pass through their servers for email addresses? Would a MySQL database be best - to store email addresses & assign a user number for each email? Then use the user number in the URL?