You are here: Re: Newsletter Secure Subscribe/Unsubscribe « PHP Programming Language « IT news, forums, messages
Re: Newsletter Secure Subscribe/Unsubscribe

Posted by Peter van Schie on 11/03/05 15:33

Angelos wrote:

> I thought about it but... IP address is not the best way to do it... Because
> it changes.

True, but since it's meant to prevent automated scripts subscribing and
unsubscribing (right?) that wouldn't matter.
In case of an ISP using DHCP, the user would have to relogon to his/her
ISP to get the IP changed. So that's pretty unlikely.

> The only way I can see is something like creating an MD5 from the users id
> and then decoding it....
> Ofcourse there is no way to decode an MD5... so that's my Question :-)

Decoding md5 is impossible. But you could use the md5 hash of the id
still. In your confirm script just get the md5 hash of the id and
compare it to the md5 hash specified in the subscribers_id GET-var.

HTH.
Peter.
--
http://www.phpforums.nl

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация