PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2024-03-20 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 28 All time: 11,081 This week: 89Up
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
Nominee
Vote
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
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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:28
This week:0
All time:11,081
This week:89Up