Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 994

[3.3.x] Support Forum • Question on using htaccess vs claudebot and Safari/537.36

$
0
0
Hey all.

So, like most folks here, I have a phpBB message board that I run. Unlike a lot of folks here, I have no idea regarding coding and the like. I have my website hosted via doteasy and try to do most site management via the Administrator Control Panel and only rarely use cpanel save to update the site.

However, recently I've had issues where the sites resources are being used up and after some inquiries I was told it was likely a bot accessing the site a ridiculous amount of times in a short period. So I went to cpanel, went to Metrics, went to Visistors, and sure enough, the most common User Agents were:


Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)


and


Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.2054.110 Safari/537.36


claudebot was doing at least 2/3rds of the visiting. Now, as I mentioned earlier, I don't know how to code. But from what research I've done, htaccess can be used to just deny the above access to the site to begin with, and prevent them from causing the trouble they are.

I've located htaccess in the cpanel under public_html, and I've seen there's an edit option, where presumably I'd insert the script necessary to keep the offenders out.

What I need is a dirt simple script to do the above, and a step-by-step guide on how to edit htaccess so I don't screw anything up. I know this is basically "baby's first script editing", but I'm out of my depth and appreciate any help and patience you're all willing to share. And if I'm trying to fix things in the wrong way, please point me in the right direction.

Thank you all very much for your time.

Statistics: Posted by Ares101 — Sat Apr 20, 2024 3:22 am



Viewing all articles
Browse latest Browse all 994

Trending Articles