View Source Paraxial.PHPAttackPlug (Paraxial v2.8.0)
Plug to ban IPs sending requests that end in .php
Most Elixir and Phoenix applications do not have routes ending in .php, so this is a strong signal an IP is malicious. The default ban length is one hour, this can be configured when setting the plug in your endpoint.ex file:
plug Paraxial.PHPAttackPlug, length: :week plug HavanaWeb.Router # Your application name will be different
Valid options for :length are :hour, :day, :week, :infinity