Hello,
i want a custom mod_security rule.
I want to allow uploads only from selected countrys and block upload from any other country.
they need to use GeoLite2 database.
They can be like the following but only for uploads, not general.
SecRule REMOTE_ADDR "@geoLookup" "phase:1,chain,id:1,drop,log,msg:'Blocking %{geo.country_code}'"
SecRule GEO:COUNTRY_CODE "@pm IN PK"
The development must be in your server, i not have server for development, just for production.
Hello,
Hope you are doing well.
I have 7 years of experience in Linux and server management.
I can setup mod_security to allow upload from selected countries