Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: setting remote_addr in header so my server IP isn't the address

by mortis (Pilgrim)
on Dec 15, 2001 at 02:30 UTC ( [id://132100]=note: print w/replies, xml ) Need Help??


in reply to setting remote_addr in header so my server IP isn't the address

If you're referring to what the remote web server sees as your REMOTE_ADDR, then I'm pretty sure you can't do what you want. AFAIK REMOTE_ADDR is set up on the server to be the IP address of the remote connection - as determined by the tcp/ip stack - not by any data sent by the remote system.

If the remote system (from the web server's point of view) could set REMOTE_HOST, they'd be able to spoof who they were.

If that's what you're trying to do, stop it.

:^)

  • Comment on Re: setting remote_addr in header so my server IP isn't the address

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://132100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found