![]() |
How can I block traffic FROM Amazon Technologies
I am aware that Amazon now make available a complete list of their IP address blocks in JSON format here https://ip-ranges.amazonaws.com/ip-ranges.json
I have been told that you can use that to create rules to block all of those addresses.Now i am not really any good at this so this is my question. What would i do with that would i copy it and add it in my CSF in WHM and if so can someone tell me where i put that or how do i create the rules block. Many thanks. Malc |
You could ban their useragent string using this https://vborg.vbsupport.ru/showthread.php?t=268208 or Ban IPs using this https://vborg.vbsupport.ru/showthread.php?t=268147 no rules needed :)
|
I dont fancy banning the ip individually that would take forever and i would do that at the server end.:)
I also have that plugin for bots installed on my forum and it bans most bots but for some reason it does not work on amazonaws. Anyway thanks for the advice.I did do a thread here https://vborg.vbsupport.ru/showthread.php?t=323511 but only a few work arounds cheers |
The bot blocker does do the Amazonaws but you need to find the correct useragent, so you'd need to block amazonaws.com, ia_archiver, alexa.com (unless you use Alexa for your web analysis), softlayer.com, scaleway.com and there are a few more, but the best way is to view your Who's Online page with useragent showing and copy the amazonaws strings in to the list in the mod then they are gone forever :)
--------------- Added [DATE]1503992005[/DATE] at [TIME]1503992005[/TIME] --------------- As an added, use the tools I provide links to in the ban spider mod page and analyse the user agent string as it may turn out that that they have other associated and the one displaying is just a fa?ade. |
Thanks simon so if i see this
ec2-52-89-87-158.us-west-2.compute.amazonaws.com Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36 Do i put this Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36 in the ban spider Many thanks |
Yes exactly that, you have to remember that Amazonaws isn't actually amazon but just rented space to others by them.
This part ec2-52-89-87-158.us-west-2.compute.amazonaws.com is just what the IP address resolves to and you see it as admin. Hope that helps :) |
Quote:
So this agent Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36 If i put that in the ban list it wont stop normal members viewing the forum. Cheers once again |
People who still use version 41.0.2228.0 of Chrome will not be able to use the forum if you ban that useragent.
It's very unlikely people still use that version since we're at version 60 now though. |
This I use in a file .htaccess
Code:
# compute-1.amazonaws.com # |
Quote:
--------------- Added [DATE]1504807286[/DATE] at [TIME]1504807286[/TIME] --------------- Quote:
--------------- Added [DATE]1504807350[/DATE] at [TIME]1504807350[/TIME] --------------- Quote:
|
All times are GMT. The time now is 12:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|