<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 安全 > 高防IP > 常見(jiàn)問(wèn)題 > 使用億速云高防產(chǎn)品如何獲取真實(shí)訪(fǎng)客的IP?

使用億速云高防產(chǎn)品如何獲取真實(shí)訪(fǎng)客的IP?

使用億速云高防產(chǎn)品如何獲取真實(shí)訪(fǎng)客的IP

億速云高防產(chǎn)品的防護機制是通過(guò)轉發(fā)和過(guò)濾請求實(shí)現的,在這個(gè)過(guò)程中,源服務(wù)器獲得訪(fǎng)客IP,將都變?yōu)楦叻繧P,如何獲取真實(shí)訪(fǎng)客IP?

從請求頭中獲取

  • 如果能夠拿到請求的請求頭,其中 X-FORWARDED-FOR 即為真實(shí)訪(fǎng)客IP

使用nginx 的第三方模塊ngx_http_realip_module

安裝:
  1. 需nginx源碼編譯安裝,在配置configure 時(shí),添加 ‘—with-http_realip_module’
    使用:
  2. 如果已經(jīng)完成安裝,只需要在nginx 的配置中,添加
  1. set_real_ip_from 高防IP;
  2. real_ip_header X-Forwarded-For;

這樣配置的目的就是,忽略請求頭中的高防IP,把請求頭中X-FORWARDED-FOR 的值,替換remote_addr變量。這樣,也能拿到真實(shí)訪(fǎng)客的IP

對于源服務(wù)器需要根據真實(shí)訪(fǎng)客IP進(jìn)行二次轉發(fā)的,建議安裝該模塊

国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>