Page 1 of 2
Getting a Visitor's IP Address
Posted: Thu Jun 29, 2006 1:12 pm
by Bigun
Is there a way to return user info from a user into some variables, one of them being the user's IP address.
I'm going to be using it to setup banning functions.
Posted: Thu Jun 29, 2006 1:15 pm
by daedalus__
Bad idea. RTFM. Then Google, and if you are still stuck, post again.
Posted: Thu Jun 29, 2006 1:23 pm
by Luke
Banning an IP is OK as long as you aren't expecting it to work indefinately. If it's just a deterrent or something, that's alright. Just don't count on it to work. Say somebody is using AOL. Their IP will change with every connection (I've read that it can even change from page request to page request!!

)
Posted: Thu Jun 29, 2006 1:26 pm
by daedalus__
You know what is bad about this topic?
There is another one with almost the same title on the same page and he couldn't read it.
No hints.
Posted: Thu Jun 29, 2006 1:27 pm
by Bigun
Daedalus- wrote:Bad idea. RTFM. Then Google, and if you are still stuck, post again.
You posted twice... are you that dead bent on trying to get no-one to reply?
Posted: Thu Jun 29, 2006 1:29 pm
by Bigun
The Ninja Space Goat wrote:Banning an IP is OK as long as you aren't expecting it to work indefinately. If it's just a deterrent or something, that's alright. Just don't count on it to work. Say somebody is using AOL. Their IP will change with every connection (I've read that it can even change from page request to page request!!

)
I know IP's can change, but I'm coding an agressive banning function.
My suite is almost to the point of heading into the security area and start looking there.
Posted: Thu Jun 29, 2006 1:40 pm
by Luke
Bigun wrote:The Ninja Space Goat wrote:Banning an IP is OK as long as you aren't expecting it to work indefinately. If it's just a deterrent or something, that's alright. Just don't count on it to work. Say somebody is using AOL. Their IP will change with every connection (I've read that it can even change from page request to page request!!

)
I know IP's can change, but I'm coding an agressive banning function.
My suite is almost to the point of heading into the security area and start looking there.
Huh? That made no sense to me. What are you talking about?
Posted: Thu Jun 29, 2006 2:02 pm
by Chris Corbyn
$_SERVER['REMOTE_ADDR'] for what it's worth but don't ban based on that. You may well ban an entire country! Yes, you get entire countries heading through proxies.
Posted: Thu Jun 29, 2006 2:12 pm
by daedalus__
That's funny because at my work we did ban an entire country once.
They were attacking the website through a hole that one of the old idiot developers had created.
Posted: Thu Jun 29, 2006 2:13 pm
by daedalus__
btw, I'm dead bent on getting people to do research.
Posted: Thu Jun 29, 2006 2:19 pm
by Luke
Daedalus- wrote:btw, I'm dead bent on getting people to do research.
What a horrible thing to do
Posted: Thu Jun 29, 2006 2:20 pm
by daedalus__
learning how to look stuff up is important
Posted: Thu Jun 29, 2006 2:30 pm
by Bigun
Daedalus- wrote:learning how to look stuff up is important
So if your broke down on the side of the road... I'll be sure to toss you a Mitchell manual and yell "RTFM" as I drive off.
Posted: Thu Jun 29, 2006 2:32 pm
by daedalus__
First, I would read it, fix my car and then drive down to spit in your face.
This isn't that kind of situation.
Do you know how long it took me to figure this one out?
15 frickin' seconds of searching the manual.
Don't be lazy.
Posted: Thu Jun 29, 2006 2:35 pm
by Bigun
Daedalus- wrote:First, I would read it, fix my car and then drive down to spit in your face.
This isn't that kind of situation.
Do you know how long it took me to figure this one out?
15 frickin' seconds of searching the manual.
Don't be lazy.
If you know where to look... or if can even understand how the syntax translates to what you want.
We agree to disagree and that's fine... just don't reply to my posts if they bother you that much.... k?