![]() |
php? detecting ip of NTL user?
My friend has a site portal on his site which features a shoutbox
, problem is the shoutbox is logging the visiting IP of an NTL user as the ip of the proxy cache, (it does this when you post a shout) obivously if someone ended up causing trouble and my friend was to ban the IP he'd end up banning the whole cache instead. i was wandering if theres something he can add to his could add to his code so that the true ip was determaned rather than that of the proxy cache? |
Re: php? detecting ip of NTL user?
You're saying he coded this shoutbox himself?
If he did, then surely he can find this out for himself? If not, who made it? and have you asked the question to them? The php code for displaying the end user IP is: Code:
<? echo getenv('REMOTE_ADDR'); ?>This code will detect whether it is a forwarded (behind a proxy) address: Code:
**Ignore this, it's useless ASP code** |
Re: php? detecting ip of NTL user?
Quote:
|
Re: php? detecting ip of NTL user?
Quote:
__________________ The most robust way of doing it that I have seen is this: PHP Code:
http://board.php-princess.net/index....=ST&f=10&t=14# second post down, by pootergeist. Haven't tried it, looks pretty good though. |
Re: php? detecting ip of NTL user?
Lol, ASP, how did I not spot that :rofl: :disturbd:
Trying to be too fast with google. |
Re: php? detecting ip of NTL user?
Quote:
|
Re: php? detecting ip of NTL user?
<pedantic>ASP just stands for Active Server Pages, which is a technology that uses VBScript and/or Javascript and/or perl and/or any other scripting language you like. ASP itself is not a language. </pedantic>
Just thought I'd clear that up. |
Re: php? detecting ip of NTL user?
Quote:
|
| All times are GMT. The time now is 12:49. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum