当前位置:论坛首页 > Linux面板 > 建议

增加cloudflare的API 方便记录真实访问者的IP地址 有些阻挡...

发表在 Linux面板2017-9-7 18:02 [复制链接] 0 2773

https://www.cloudflare.com/technical-resources/
Logging Real Visitor IP Addresses: mod_cloudflare for Apache httpd
Because Cloudflare acts as a proxy, you will notice changes to the way that your website visitors' IP addresses are displayed both in your server logs and web applications - notably that all access appears to be coming from Cloudflare IP addresses. You can read more about the reasons for this in our knowledge base article.
You can change this behavior and log & display the actual visitor IP addresses by using mod_cloudflare.
Requirements
mod_cloudflare supports Apache httpd 2.2.x and 2.4.x. Installation requires root access to the command line of your server via SSH.
Note: if you use cPanel, follow the proper installation method below. However, if you are a hosting provider, you should install theCloudflare cPanel plugin instead. Installing the Cloudflare cPanel plugin will automatically install mod_cloudflare. Note that using the Cloudflare cPanel plugin requires that you are a Certified Partner with a Host API Key. You can apply to be a Certified Partner here.

使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表