Jump to content

Mailing Lists And IP Addresses?


snuggles79

Recommended Posts

I have created a nifty little mailing list script.

 

At the moment I have set it up to check to see if the e-mail address is already subscribed but also to check if the ip address has already been used (the ip address is stored when they sign up).

 

Is this a wise thing to do? My plan is to check whether the IP address is in the DB and if, it is, display one thing on the page and, if not, display the mailing list subscription box.

 

What are the pitfalls of doing this? Obviously, if people have a dynamic IP address then they're always going to get shown the form but I am talking about for those with static IP addresses.

 

Just after points of views really.

Link to comment
https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/
Share on other sites

If two people from one computer try to sign up (imagine a family computer with a static ip) the second (and third etc..) person to try will be unable to.

 

Yeah that was the only possible problem I thought of so I think I'd get it to display the full form if the ip address is not in the db and, if it is display a link to sign up rather than the full form.

are the subscribing users registered?

 

if so u can give each registered user a "member_id" in the mysql database

 

and then just check if their member_id is the table

 

so when the subscribe it adds their

*email & member_id to the table

 

then checks if the member_id is already there

if it is

 

display page

 

or if it isnt display

 

display the mailing list subscription box

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.