Jump to content

How to protect URL in PHP?


angelali

Recommended Posts

I am coding a login form. If the user forgets his password, he will click on a link where he will have to insert his email address, then, he will get a confirmation link in his inbox. After that, he willl click on the link, to redirect him to a page to create a new password.

 

The page link to create a new password (the confirmation link) is actually like this:

 

http://xxxxx.forgetpassword.php

 

I want that when it will appear in the user's inbox, it should be like this:

 

http://xxxxx.f135kkgg3f6f2f2.php

 

Well, you know what I mean, perhaps most of us have got this kind of URL when we forget a password. It is like encrypted or hashed something like that. So, how can I do it like this?

Link to comment
https://forums.phpfreaks.com/topic/259538-how-to-protect-url-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.