Stevie-Ray / referrer-spam-blocker

Apache, Nginx, IIS, uWSGI, Caddy & Varnish blacklist + Google Analytics segments to prevent referrer spam traffic 🤖
MIT License
374 stars 86 forks source link

cleaned up project and composer layout #114

Closed Gamesh closed 7 years ago

Gamesh commented 7 years ago

Description

Moved the class so src/ folder and namespaced it. Made it more reusable, and separate from run.php. The run.php file now acts only as executable, to generate the blacklists. Generator and idna-converter are in autoloader-dev and require-dev composer requirements. They are installed when doing compser install but removed for production use if one does composer install --no-dev, as they are only needed for blacklist development. Since the domain.txt file was moved i marked this as a Breaking change, other than that there should be no unintended side-effects.

Motivation and Context

Wanted to make this project's php class more reusable, maybe event split it up more in the future, to make it easier to understand and add new formats.

Types of changes

Checklist: