• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

When the user registers and submits pictures, the IP address obtained in the background is incorrect

Version
4.0.8
Website URL
https://tc.pengqi.club/
PHP version
8.1
Database driver
MySQL
Database version
5.7
Web browser
谷歌浏览器

淇云博客

Chevereto Member
大家好,我是但是图床站点使用了中国境内的CDN,为了加速网站,图床后台获取的用户ip不是,显示CDN的节点ip,不是用户的真实ip,请问有什么办法可以解决吗?

QQ截图20230802224811.png

请看这是上传者的ip地址,不是真实的,而是CDN节点ip,下图才是我的真实IP

QQ截图20230802224947.png
 
Could possible be due to them using proxy or VPN, so when they upload they hide ip first then upload and then un-hide their ip so visitor ip is real ip but images uploaded are logged from their VPN incase they are uploading illegal content, so if for example the owner of the site decides to report it to local law enforcement with edivence then you will be giving a IP leading to VPN server instead of real persons ip and either you or police can bind the real ip as anything todo with ip logged on uploaded image.

This is usualy a nasty way todo to avoid getting caught by uploading illegal or abusive content such as CSAM or anything else that acts as illegal by the law.

Or

it can be if you are using nginx web as proxy server it can cause the server ip to be logged as visitors ip or uploader as well. It has happened to me before.

Last by least

It also can be if they are on a mobile data subscription and uploading it, they may get new ip now and then when swaping mobile antenna connection so that might be reason as well.
 
Last edited:
Using ngx_http_realip_module in NGINX.

Add the following code to your NGINX config.
Set your CDN IP range, and change the X-Forwarded-For to something else if your CDN has specific headers.

Code:
set_real_ip_from  192.168.1.0/24;
set_real_ip_from  192.168.2.1;
real_ip_header    X-Forwarded-For;
real_ip_recursive on;
 
Back
Top