Forum Moderators: phranque

Message Too Old, No Replies

Show Real IP Address

Real IP

         

antonio_424

1:17 am on Jul 22, 2006 (gmt 0)

10+ Year Member



Is there any way to make it show the real IP Address of users? I run a forum, and well my hosts have said they upgraded something on the servers, but now all IP Addresses show up as the same for everyone on my forum. I used to have vBulletin as a forum software. There was a hack to show REAL IP Addresses along with the proxy info. I was just wondering if there is anyway to add some sort of code to the .htaccess file so that it would do the same...

Can someone please help me :(? All I want it to do is show the real IP Address of a user.

jdMorgan

1:51 am on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> my hosts have said they upgraded something on the servers...

Really, all you can do to fix this is to ask them exactly what they did. Without that information, it'll be fairly impossible to guess how to fix it.

Jim

antonio_424

2:06 am on Jul 22, 2006 (gmt 0)

10+ Year Member



This was their response to something I said:

"I apologize for the earlier response, what has actually occurred is that we have begun using Apache2 on our hosts and split static pages from dynamic pages through a reverse proxy (to prevent hacking attempts from the outside). This is why the posts show up as coming from the same IP address (since technically the server itself is requesting the pages)."

Now on vBulletin the IP Addresses came up as the same aswell, but I added in a mod called "Proxy Ignore" and it would also log the regular IP Address along with the Proxy address. (Not really a proxy, just uses the IP Address of the host itself. So everyone's got the hosts IP Address...)

jdMorgan

2:17 am on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may be able to modify your new forum software to use the HTTP_X_FORWARDED_FOR header info, or a similar request-header-based variable, instead of the REMOTE_ADDR variable. If your host has set up their proxy to pass the original requestor's IP address using this or a similar header, then you can get it from there.

Jim

antonio_424

2:24 am on Jul 22, 2006 (gmt 0)

10+ Year Member



So I'm really retarted at all this lol Can you tell me what code to use? and I'll (hopefully) find a place to put it lol Thanks by the way man, you guys on here all sound REALLY smart! Wow! Been reading through this to see if I can find something like what I'm doing now, but I didn't have much luck so I just decided to register and post about it. Thanks again if you can help me out by the way :)

jdMorgan

2:56 am on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't tell you how to code this, but my post above contains several useful keywords for searching your forum software's "Support" section for this information.

Jim

antonio_424

2:57 am on Jul 22, 2006 (gmt 0)

10+ Year Member



Oh wait I think I see what you mean, dur, stupid me lol Sorry about that and thanks for the info man! :D

antonio_424

3:56 am on Jul 22, 2006 (gmt 0)

10+ Year Member



Just to give you an update on this :) I have done it! YAY!

THANK YOU SO MUCH MAN! It's now showing the real IP's

THANKS AGAIN!