PHP Classes

Pareto Security: Filter requests to discard malicious values

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 755 All time: 4,465 This week: 69Up
Version License PHP version Categories
pareto_security 2.8.40GNU General Publi...5.6.0PHP 5, Security


This class can filter requests to recognise malicious values and either call a 403 access denied ( default ), or optionally add the offending IP address to the banned list in the root htaccess file of a website.

It processes the REQUEST_URI, QUERY_STRING, $_GET, $_POST, $_COOKIE to detect values with a blacklisted format.

The class can also block accesses of blacklisted user agents and request types that are not whitelisted.

The IP addresses of blocked requests can be optionally added to .htaccess deny list.

Picture of Te Taipo
  Performance   Level  
Name: Te Taipo <contact>
Classes: 2 packages by
Country: New Zealand New Zealand
Age: 55
All time rank: 268913 in New Zealand New Zealand
Week rank: 258 Up2 in New Zealand New Zealand Up


=== Pareto Security ===

Contributors: @te_taipo

Tags: wordpress security, hack, database security, xss, WAF, CRLF, CSRF, command injection, cross-site scripting, exploit, firewall security, hack, hacked, hacker, injection, authentication bypass, local file inclusion, malware, phishing, rfi, remote file inclusion, scrapers, secure, secure login, security, SQL Injection, vulnerability, WAF, website security, wordpress, security

Donate link:

Requires at least: 5.2.0 Tested up to: 5.5.1 Requires PHP: 5.6.0 Stable tag: 2.8.3 License: GPLv2 or later License URI:

WordPress Core Security: Secure your website with real security.

== Description ==


Had enough of the security theatre presented by the raft of Wordpress security plugins? Time to put a stop to the attacks!

Firstly Wordpress and most other CMS\'s are built using PHP. PHP is a very insecure programming language, even worse in the hands of amateurs.

Wordpress has been plagued by plugins authored by amateurs that bring with them security vulnerabilities.

Security plugin designers mostly focus on cleaning up attacks rather than stopping them dead in their tracks.

Pareto Security class acts as a Central Security Hub checking all inputs from users, preventing bad requests from executing on your website.

  • Real Attack Prevention that can be achieved via a plugin
  • Automatic Blacklist Management
  • Easy-To-Use
  • No customisation needed
  • Works silently, you only get notified when you really want to be notified
  • Completely Free
  • and much more...


  • Pareto Security Protection identifies and blocks malicious traffic.
  • Pareto Security Protection dynamic IP Blacklist protects your site while reducing load.
  • Protects your site at the entry-point, disabling attack peneration of your WordPress site.
  • Extends Wordpress inbuilt security, defends your website against vulnerabilities added in via bad plugin coding.
  • [disabled] Optionally prevent Tor users/bots from interacting with login forms and search functions of your site while still allowing them to view your site.
  • Optionally only allow standard web clients and trusted crawlers to access your website, discouraging others from doing so.


  • Monitor blocked attack attempts
  • Optionally receive notifications of REAL attack attempts that Pareto Security has blocked

= A Word on Security: = By the very nature of plugins, no plugin should ever claim to be a Web Application Firewall.

No security plugin can save your website from really-really badly written site, theme and/or plugin code.

No security plugin can save your site from attacks that result from when administrators do not follow basic security practices.

Keeping any CMS as secure as possible is not easy. The very best thing you can do to prevent attacks is to always keep your website code, themes and plugins up to date, and remove any plugins and themes you are not using.

== Installation == * Automated Setup Steps

  1. Upload `/pareto-security/` to the `/wp-content/plugins/` directory
  2. Activate the plugin through the \'Plugins\' menu in WordPress

== Frequently Asked Questions == = How does Pareto Security protect sites from attackers? =

The Pareto Security developers understand how PHP - the coding language in which Wordpress is written in, can be exploited. Pareto Security principles of protection stop these attacks at the entry point.

= How does the Pareto Security Protection work? =

  • Pareto Security Protection stops you from getting hacked by identifying malicious requests before they can access your website.
  • Unlike other very popular plugins, Pareto Security prevents malicious files from being uploaded into your Wordpress site
  • Optionally prevents vulnerability scanners like WPScan from probing your websites defenses.

= What checks does the Pareto Security Scanner perform? =

  • Scans all input requests (GET, POST, REQUEST, COOKIES) for malicious intent. If an input validation application does this well, there is no need to then scan files in your website file repository - They should never be there in the first place!

= What security monitoring features does Pareto Security include? =

  • A log of real attack attempts that were blocked by Pareto Security
  • An optional log of medium and low risk attack that were prevented from executing on your Wordpress site

= How will I be alerted if my site has a security problem? =

Pareto Security sends attack alerts via email. Once you install Pareto Security you can enabled email notifications. You will never be flooded with notifications as Pareto Security only sends notifications of high risk attacks that have been blocked.

= Do I need other security plugins or cloud based firewalls? =

Pareto Security provides true entry-point security for your WordPress website. Pareto Security does not prevent or have conflict with other webserver security addons and hardware web application firewalls.

= What blocking features does Pareto Security include? =

  • Real-time blocking of attackers and repeat attackers.
  • Prevents vulnerability scanners from scanning your wordpress website

= What differentiates Pareto Security from other WordPress Security plugins? =

  • Pareto Security provides real security minus the scare-ware techniques used by other plugins
  • Pareto Security picks up security where Wordpress developers draw their line
  • Pareto Security prevents attackers making changes to website code by securing all inputs from the start.
  • Using the principle of \"Artificial Ignorance\" with blacklists rather than relying solely on arbitrary blacklists, Pareto Security method ignores requests it knows aren\'t interesting and processes the remaining requests that must then be of interest.
  • Pareto Security fully supports WordPress Multi-Site

= How can I contribute to the cause =

Donations via: Go to

= Do you have an email contact? =

Email me at

Other contacts:

== Changelog ==

== 2.8.4 == * Bug fix: allow_url_fopen status now detected

  Files folder image Files  
File Role Description
Files folder imagecss (1 file)
Files folder imageicon (1 file)
Files folder imageimg (2 files)
Files folder imagejs (1 file)
Files folder imagexml (3 files)
Accessible without login Plain text file readme.txt Doc. Readme for Wordpress
Accessible without login Plain text file uninstall.php Aux. Use with Wordpress
Plain text file pareto-settings.php Class Use with Wordpress
Plain text file pareto_security.php Class Security script
Plain text file pareto_functions.php Class Use with Wordpress
Plain text file pareto_setup.php Class Settings

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file style.css Data CSS

  Files folder image Files  /  icon  
File Role Description
  Accessible without login Image file icon16bw.png Icon BW small icon

  Files folder image Files  /  img  
File Role Description
  Accessible without login Image file icon.png Icon icon
  Accessible without login Image file icon16.png Icon Small Icon

  Files folder image Files  /  js  
File Role Description
  Accessible without login HTML file hokioi.js Aux. JS

  Files folder image Files  /  xml  
File Role Description
  Accessible without login HTML file .htaccess Aux. HTACCESS
  Accessible without login HTML file injectors.xml Aux. Injectors
  Accessible without login HTML file lists.xml Aux. Lists

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,465
This week:69Up
User Ratings User Comments (1)
 All time
Thanks for this code.
10 years ago (Alfredito)