看板 PHP 關於我們 聯絡資訊
: 'SERVER_ADDR' : The IP address of the server under which the current script is executing. : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : 'REMOTE_ADDR' : The IP address from which the user is viewing the current page. : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 問題就在於server不是我的阿 我並不清楚他環境怎樣設定和規劃 所以才想問有沒有辦法靠程式就解決的??? http://www.mobitamilan.net/status/index.php?action=phpinfo 以上是該server的phpinfo 如果還有哪邊資料不夠的話跟我提一下 我再補上 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.195.61.173
weiyucsie :有HTTP_X_FORWARDED_FOR之類的阿? 06/19 12:59
weiyucsie :看起來應該是有經過proxy之類的東西 06/19 12:59
alpe :有 proxy 在 server 上, 所以請用 HTTP_X_REAL_IP 06/19 13:39
kylekai :明明就有 HTTP_X_REAL_IP, HTTP_X_FORWARDED_FOR. 06/19 14:06
fillmore :那兩個值不一定有效,已測試過還是會有參考到 06/20 12:07
fillmore :REMOTE_ADDR 06/20 12:07