# Too Many Hits

**URL:** <https://forum.infinityfree.com/t/too-many-hits/78395>\
**Category:** Hosting Support\
**Created:** [July 2, 2023, 4:33pm UTC](https://forum.infinityfree.com/t/too-many-hits/78395 "2023-07-02T16:33:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [July 2, 2023, 5:16pm UTC](https://forum.infinityfree.com/t/too-many-hits/78395/2 "2023-07-02T17:16:43Z")

</div>

Since you use Cloudflare  
here in the article as well as in the comments below,  
it is stated how you can see the traffic to some extent

> [@How to protect your website that is on Cloudflare plus Logs](https://forum.infinityfree.com/t/how-to-protect-your-website-that-is-on-cloudflare-plus-logs/44751):
>
> How to protect your website that is on Cloudflare ? (Last update May. 6. 2024.) Don’t expect that if you just set up the CF nameservers everything will be well. Cloudflare is a tool, that you need to understand, learn and put to work for you after proper configuration. We often have the opportunity here on the forum to see that some websites have been suspended for exceeding the limit and mostly this is caused by a bunch of bots doing a vulnerability scan and searching sensitive direct…

The version from the comments has now been slightly changed on CF  
due to changes to Cloudflare and you need to use “skip”

* * *

You can also have a script on the hosting  
which will record the traffic, but this is undesirable if it is a DDoS or larger traffic, because the script itself will then use the CPU, RAM, etc., and contribute to the suspension.

And of course, since you use Cloudflare, you have to convert the CF IP that the script will see into a visitor IP

> **[Restoring original visitor IPs](https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/)**
>
> When your website traffic is routed through the Cloudflare network, we act as a reverse proxy. This allows Cloudflare to speed up page load time by routing packets more efficiently and caching static resources (images, JavaScript, CSS, etc.). As a...

> [@Cloudflare visitor ip](https://forum.infinityfree.com/t/cloudflare-visitor-ip/64654/2):
>
> Welcome! HTTP\_CF\_CONNECTING\_IP is a custom header sent by Cloudflare to the origin. You can save it to a variable using the global SESSION variable in PHP, like shown below. You can then save this to a JSON file, a database, or whatever you want to do with it. $user\_ip = $\_SERVER["HTTP\_CF\_CONNECTING\_IP"];

---

_[View the full topic](https://forum.infinityfree.com/t/too-many-hits/78395)._
