PHP Classes

PHP AWS Block: Block accesses from computers hosted on Amazon WS

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-03-20 (6 months ago) RSS 2.0 feedNot enough user ratingsTotal: 32 All time: 11,082 This week: 40Up
Version License PHP version Categories
block-aws 1.0GNU General Publi...5Networking, PHP 5, Security, Global
Description 

Author

This script can block accesses from computers hosted on Amazon WS.

It can retrieve the IP address list of computers hosted in Amazon WS and stores the list in a local cache file.

The script can check the IP address of the remote computer accessing the Web server running the current PHP script and will exit if the IP address is hosted in the Amazon WS network.

Innovation Award
PHP Programming Innovation award nominee
March 2024
Number 4
Amazon WS is a server hosting service that some people use to copy content without site permission and use in artificial intelligence applications without benefiting the site content creators.

One way to fight this type of intellectual property abuse is to block access from computers that crawl sites and abuse the content.

This package provides a script that can retrieve the list of IP addresses of Amazon WS and return an HTTP response that states that access to the content is denied.

Manuel Lemos
Picture of Rafael Martin Soto
  Performance   Level  
Name: Rafael Martin Soto <contact>
Classes: 14 packages by
Country: Spain Spain
Age: 50
All time rank: 218352 in Spain Spain
Week rank: 215 Up7 in Spain Spain Up
Innovation award
Innovation award
Nominee: 8x

Winner: 4x

Instructions

We suggest you include simplified instructions on using your package to increase the number of interested users.

To do that, please click the Edit button on your package page and enter the instructions text in the Instructions field.

You can use the Markdown format to enter your instructions.

Then click on the Update the class button to save the instructions. You can see the instructions on your package page.

Documentation

block-aws

Block Amazon WS on PHP Server

V 1.0.1

Abuse of Amazon services traffic, negatively affects the performance of certain servers, especially when services are scraping e-commerce sites. The system is updated weekly with the IP's of the Amazon servers, and if the server cannot access to the Amazon url list, the code will use the last known cached configuration.

# INSTALLATION: A lot of easy :smiley:. It is written in PURE PHP. Only need to include the files. Tested on basic PHP installation

     require_once( 'block_amazon_ips.php' );

REQUERIMENTS:

You need a cache folder with write perms.


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file block_amazon_ips.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:32
This week:0
All time:11,082
This week:40Up