Way too many hits....

Open to all! Ask other shopowners for help.
User avatar
ReneH4
100+
Posts: 143
Joined: Mon Oct 26, 2020 12:00 pm
Phoenix Version: v1.0.7.9
Has thanked: 13 times
Been thanked: 17 times

Way too many hits....

Post by ReneH4 »

I have way too many hits on my site, most of them have shoppingcart.php and a session id. IT's probably AI crawlers.

When I look at who's online I see around 3000 hits.

I have decided to install google reCAPTCHA.

No I need to enter the key script in the header.

Which file shoul I use? Would that be template_top.html in the template that I use?

Please advise. TY.



Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4911
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 296 times
Been thanked: 494 times

Re: Way too many hits....

Post by burt »

@ReneH4 Rene, Cloudflare is, I think, the accepted answer.
See https://phoenixcart.org/forum/viewtopic.php?f=43&t=3432
I am not here to build for you.
I am here to build with you. Let's help each other.

User avatar
BrockleyJohn
Certified Developer
Posts: 162
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version: too.ashamed.to.say
Has thanked: 2 times
Been thanked: 41 times

Re: Way too many hits....

Post by BrockleyJohn »

Google reCAPTCHA doesn't block users, it just assesses whether they are bots or not.

To block them you need a WAF (firewall) like cloudflare or an alternative.

Some hosts like 20i have a decent WAF built into the hosting that filters out a lot of the nonsense.

14Steve14
500+
Posts: 901
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 19 times
Been thanked: 113 times

Re: Way too many hits....

Post by 14Steve14 »

We have had great success using the perishable press 8g firewall with no detrimental effect on the website. Find it at https://perishablepress.com/8g-firewall/. They do also have a black hole for bots which looks interesting but we have never tried it.

We tried Cloudflare a while ago and had so many problems with the free version we ditched it and updated to the above firewall instead.

radhavallabh
100+
Posts: 360
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 31 times
Been thanked: 3 times

Re: Way too many hits....

Post by radhavallabh »

14Steve14 wrote: ↑Thu Oct 29, 2026 11:26 am We have had great success using the perishable press 8g firewall with no detrimental effect on the website. Find it at https://perishablepress.com/8g-firewall/. They do also have a black hole for bots which looks interesting but we have never tried it.

We tried Cloudflare a while ago and had so many problems with the free version we ditched it and updated to the above firewall instead.
Hi dear; Is this applied on htaccess? I have a shared host will it work please??
Thank you in advance;
Warm Regds./
radhavallabh

14Steve14
500+
Posts: 901
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 19 times
Been thanked: 113 times

Re: Way too many hits....

Post by 14Steve14 »

radhavallabh wrote: ↑Fri Oct 30, 2026 5:20 am
14Steve14 wrote: ↑Thu Oct 29, 2026 11:26 am We have had great success using the perishable press 8g firewall with no detrimental effect on the website. Find it at https://perishablepress.com/8g-firewall/. They do also have a black hole for bots which looks interesting but we have never tried it.

We tried Cloudflare a while ago and had so many problems with the free version we ditched it and updated to the above firewall instead.
Hi dear; Is this applied on htaccess? I have a shared host will it work please??
Thank you in advance;
Warm Regds./
radhavallabh
As far as I can remember its all in the htaccess file. They also do an AI bots block script but you may want certain AI bots to visit your site so be carefully. There is also a bot blackhole which may stop a lot of the hits. Have a look around their website.



Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply