Amazon

Open to all! Ask other shopowners for help.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Amazon

Post by 14Steve14 »

Have a read of this page. It is on of many ways to stop bad bots. https://perishablepress.com/blackhole-bad-bots/ They also do the 7g firewall.

Its up to you how you stop them but there are many ways. You have to trial and error test things to see what works and what doesnt. We find with the 7g firewall most things are stopped but we also have a htaccess blacklist, bad blocker where we can enter IP addresses when we find bad ones. We also have an updated robots.txt file of which there is lots of info online.

It is something that needs keeping on top of.


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

Re: Amazon

Post by burt »

There are two different problems here, so you need to understand what you perceive the problem to be and what it is that you want to do;

1. The sessions table is getting massive
- add the user-agent to the spiders.txt file
This is a Phoenix solution.

And/Or

2. Your hosting might have a limit of how much your site can use.
- ban the IP ranges from your site entirely
This is usually a hosting company solution, done through your hosting control panel.
There is a firewall solution in the Addons area that may help you.


#1 will allow the Spider to access your site, but will keep the sessions table from getting filled up.
#2 will stop the Spider accessing your site, as a by-product of that, your sessions table will stop getting filled up.
I am not here to build for you.
I am here to build with you. Let's help each other.
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

Re: Amazon

Post by Xpajun »

burt wrote: Wed May 29, 2024 9:34 am There are two different problems here, so you need to understand what you perceive the problem to be and what it is that you want to do;

1. The sessions table is getting massive
- add the user-agent to the spiders.txt file
This is a Phoenix solution.

And/Or

2. Your hosting might have a limit of how much your site can use.
- ban the IP ranges from your site entirely
This is usually a hosting company solution, done through your hosting control panel.
There is a firewall solution in the Addons area that may help you.


#1 will allow the Spider to access your site, but will keep the sessions table from getting filled up.
#2 will stop the Spider accessing your site, as a by-product of that, your sessions table will stop getting filled up.
The big problem is Gary @burt is the fact that these robots are totally ignoring the spiders.txt file and deny in .htaccess
The one that started this -Amazon - is using any of the ip addresses between 3.128.00 and 3.225.225.225 I've blocked them all with the CDIR 3.128.00/8 - I'm lucky enough to have VPS so have access to alter settings as needed including firewall

In addition Facebook also have some really bad bots as well ignoring Deny and the spiders.txt as well. I'll post a list of them once I have them
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Amazon

Post by ecartz »

Xpajun wrote: Sun Jun 02, 2024 10:45 am these robots are totally ignoring the spiders.txt file and deny in .htaccess
They can't ignore the spiders.txt file or Deny in .htaccess. Both those things are on your server and do not operate with consent from the other side. If they aren't working, then there's something wrong. For example, the user-agent may be incorrect in the spiders.txt file. Or the server may not be configured to allow Deny in .htaccess.

They can ignore the robots.txt file. That just has instructions for the robot. The robot can ignore it. But that's just further evidence that this isn't actually Amazon.

Note that the user-agent is something that they have to tell you. It doesn't need to be correct, but they have to say something. Also, all the spiders.txt file does is it blocks them from creating sessions. Your initial problem was the session table filling. It addresses that problem directly by preventing your server from creating sessions when it matches. Requires admin > Sessions > Block Spider Sessions to be true.

The firewall is better than Deny in .htaccess, so if that isn't working, I wouldn't sweat it. Just do it in the firewall.

You can report malicious actions to AWS: https://support.aws.amazon.com/#/contacts/report-abuse

You probably should not start from the perspective that this is an Amazon bot. Instead say things like "A bot from IP 3.152.5.7 identifying itself as user-agent Amazonbot blah blah is effectively DOSsing my site, ignoring the robots.txt file. Here's the logs:" and include logs from the incident. Note that you should use the actual IP and user-agent, not "blah blah" or .152.5.7 (unless that is the actual IP). You should provide specific IPs, not ranges.
User avatar
bonbec
Contributor
Posts: 190
Joined: Mon Oct 26, 2020 12:23 pm
Phoenix Version: V1.1.0.7
Has thanked: 54 times
Been thanked: 40 times

Re: Amazon

Post by bonbec »

@Xpajun, I have the impression that you are confusing amazonbot (for amazon.com amazon.fr etc...) and AWS (Amazon Web Service) which is a company in the Amazon group and which is a host with hundreds of thousands of servers.

amazonbot respects robot.txt, I have noticed it on my sites.

aws hosts both very good sites and malicious sites that you can block with .htaccess and report (by providing the corresponding logs) to abuse@amazonaws.com
Old MS2.2 PHP7.4 site being converted to CE Phoenix v1.1.0.6 PHP 8.3


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