MySQL_Narb Posted October 14, 2009 Share Posted October 14, 2009 Is there anyway I can get someones IP when they click submit on one of my forms, it's a comment page and I don't want spammers. I have some moderators, but I want them to be able to do stuff. I can store the IP in my database, but I want to know how do I get the IP from users? Does anyone have any scripts, or tutorials? Thanks, and I really appreciate the help. (I'm sorry I've been posting so many help threads, I'm working on a script of mine and I want it to be perfect, and see if their are some different ways to do things.) Quote Link to comment https://forums.phpfreaks.com/topic/177620-solved-ip-tracking-via-comment-to-deal-with-spammers/ Share on other sites More sharing options...
trq Posted October 14, 2009 Share Posted October 14, 2009 (I'm sorry I've been posting so many help threads, I'm working on a script of mine and I want it to be perfect But this is your first post? And there is no such thing as perfect code. Take a look within the $_SERVER array for a clients ip address. Quote Link to comment https://forums.phpfreaks.com/topic/177620-solved-ip-tracking-via-comment-to-deal-with-spammers/#findComment-936522 Share on other sites More sharing options...
MySQL_Narb Posted October 14, 2009 Author Share Posted October 14, 2009 Oh, my bad. I was on another forum and was lazy, so I copied it over. They aren't really active, so I searched and found this website. Quote Link to comment https://forums.phpfreaks.com/topic/177620-solved-ip-tracking-via-comment-to-deal-with-spammers/#findComment-936528 Share on other sites More sharing options...
MySQL_Narb Posted October 14, 2009 Author Share Posted October 14, 2009 Why doesn't anyone ever reply?! Quote Link to comment https://forums.phpfreaks.com/topic/177620-solved-ip-tracking-via-comment-to-deal-with-spammers/#findComment-936538 Share on other sites More sharing options...
Philip Posted October 14, 2009 Share Posted October 14, 2009 thorpe gave you the answer in his post Take a look within the $_SERVER array for a clients ip address. Quote Link to comment https://forums.phpfreaks.com/topic/177620-solved-ip-tracking-via-comment-to-deal-with-spammers/#findComment-936539 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.