Until I can implement a more advanced security method, I would like to block the checkout from the countries where the attacks originate from. I have tried the code below.
Code: Select all
RewriteCond %{QUERY_STRING} ^route=checkout/checkout$
RewriteCond %{ENV:IP2LOCATION_COUNTRY_SHORT} ^US$
RewriteRule ^(.*)$ https://www.website.com.au/ [L]
Code: Select all
RewriteCond %{QUERY_STRING} ^route=checkout/checkout$
RewriteCond !%{ENV:IP2LOCATION_COUNTRY_SHORT} ^AU$
RewriteRule ^(.*)$ https://www.website.com.au/ [L]