Jump to content

Masking PHP link of sorts


big-dog1965

Recommended Posts

How would I mask a account activation link in an email, The sample below shows how the user receives the email. I don’t want them to see the full path of the url.

 

Hi Name

Your account has been created but you would need to confirm it first before you can have access to the protected area.

Please click

http;//website.com/Signup/confirm.php?confirmkey=32fa7234b61d9eb200dda71e713c744

to confirm your activation If your email client does not support HTML messages open a new browser then copy the above URL and paste it in the location bar.

If you encounter any problems let us know so that we can help you out.

 

Regards Administrator Department

 

This is where the link comes from in a config.php file. confirm.php process some data and such to make the user able to log in and stuff.

$confirm = "http://" . $_SERVER['HTTP_HOST'] . "/Signup/confirm.php";

Link to comment
https://forums.phpfreaks.com/topic/149081-masking-php-link-of-sorts/
Share on other sites

You cannot mask it, I mean you can set a link up like this...

 

<a href="http://www.mydomain.com">This Link Isn't Masked</a>

 

But that wouldn't stop people from viewing the source?

 

Why do you want to mask it, what are you trying to achieve?

 

 

ILMV

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.