How do you collect an IP address?
Hello tbudl, I would like to create a simple subscribe feature on my site. It is a simple mailto: link and all the user has to do is send a blank e-mail. The Bat! collects their first last name and e-mail address but can I somehow capture there IP address? I would like to send a single opt-in confirmation back to the subscriber that looks like this -- Thank you for subscribing. Important information follows. You or someone subscribed to stay up to date with us and did so from the following IP address *178.32.943.255* -- Any idea? Thank you -- Best regards, Victor B. Gonzalez [EMAIL PROTECTED] Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: How do you collect an IP address?
Hallo Victor, On Mon, 9 Dec 2002 13:38:25 -0500GMT (9-12-02, 19:38 +0100GMT, where I live), you wrote: VBG The Bat! collects their first last name and e-mail address but VBG can I somehow capture there IP address? I don't think that's possible with TB alone. Though it's possible to extract an ip-address from their headers with regexp, it's impossible (I think) to extract the last ip-address (when reading top down) from the headers, especially since you don't want the last one when it's an address from one of the local ranges. The only possibility would be to hand over the headers to a program or script that extracts the ip-address of origin and hands that back to TB. If the need would arise that's the way I should advance. -- Groetjes, Roelof Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: How do you collect an IP address?
Hello Roelof, VBG The Bat! collects their first last name and e-mail address but VBG can I somehow capture there IP address? RO Though it's possible to extract an ip-address from their headers with RO regexp, it's impossible (I think) to extract the last ip-address (when RO reading top down) from the headers, ... you don't want the last one RO when it's an address from one of the local ranges. RO The only possibility would be to hand over the headers to a program or RO script that extracts the ip-address of origin and hands that back to RO TB. If the need would arise that's the way I should advance. Thank you for the info. Of course it's not what I wish to have heard :) The Bat! is so good Vs. other clients and so robust that I think it should just do more... I never thought about mail like this before using OE, Foxmail, hotmail and Mozilla's client. Being introduced it to it I feel like it should be washing my clothes, cooking my food and baby sitting my daughter. :) It's an amazing client but the second I think of something trying to get ahead of it all it's not even implemented :( sheesh... Any Ideas on extracting the senders IP address and somehow putting it into context in an automatic reply back would be very accepted. (Roelof you are the man though :) Thank you very much -- Best regards, Victor B. Gonzalez [EMAIL PROTECTED] Using The Bat! v1.62 Christmas Edition Windows XP 5.1 Build 2600 Service Pack 1 Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: How do you collect an IP address?
Hello Victor, The Bat! collects their first last name and e-mail address but can I somehow capture there IP address? You could if you used a form (e.g. with FormMail.pl) instead of a mailto link. But you should not worry about the IP address because it is not meaningful. If a user has a dial-up connection, or sends mail or connects to Internet from a any place, his IP address would be different to his normal one but his request to subscribe would still be valid. What counts is the e-mail address, and that is what you are using to send the subscriber a message to confirm his subscription request. If his e-mail was spoofed and he did not send the request, he will not confirm it. -- Best regards, Miguel A. Urech (El Escorial - Spain) Using The Bat! v1.61 Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: How do you collect an IP address?
Hello Miguel, The Bat! collects their first last name and e-mail address but can I somehow capture there IP address? MAU you should not worry about the IP address because it is MAU not meaningful. I thought it was a good way to track a PCs location to help at least prove it wasn't someone else that subscribed :| MAU If a user has a dial-up connection, or sends mail MAU or connects to Internet from a any place, his IP address would be MAU different to his normal one I completely understand this one but I also thought that along with a time stamp I'll at least be able to cover my butt in an argument. MAU What counts is the e-mail address... If his e-mail was spoofed MAU and he did not send the request, he will not confirm it. This is probably where the problem lies. I wish to make the operation in-house and single opt-in. I was just hoping that in the case no one can say they didn't opt-in for my broadcast. I do not wish to ever get caught up with spamming or spam related tactics, etc. Would then a pre configured subject line without modification like the following help in covering my butt? ?subject=subscribe_me_in_for_single_opt-in_broadcasting I work with opinions :) Thank you Miguel -- Best regards, Victor B. Gonzalez [EMAIL PROTECTED] Using The Bat! v1.62 Christmas Edition Windows XP 5.1 Build 2600 Service Pack 1 Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: How do you collect an IP address?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Victor, @9-Dec-2002, 13:38 -0500 (18:38 UK time) Victor B. Gonzalez [VBG] in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] said: VBG The Bat! collects their first last name and e-mail VBG address but can I somehow capture there IP address? ... snip VBG Any idea? Thank you This can be done with a Regular Expression treatment of the message headers. This is a bit complex for TBUDL however and I recommend that you ask about this on TBTECH. - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.62 Christmas Edition on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE99c3WOeQkq5KdzaARAl3zAKDGGoY23fHGEgrePx5dHINHapQ4tACfQEBQ OcXRBpolPojrZ/9OAxGdsbs= =Uv8H -END PGP SIGNATURE- Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: How do you collect an IP address?
Hello Victor, I completely understand this one but I also thought that along with a time stamp I'll at least be able to cover my butt in an argument. No, the way to cover your butt is by asking the subscriber to confirm the subscription. -- Best regards, Miguel A. Urech (El Escorial - Spain) Using The Bat! v1.61 Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html