Cannot finish scan
-
Hi,
Wordfence scan on our page does not finish because there are country blocking rules written in root .htaccess on a shared hosting server. If I comment out those rules or if I rename the .htaccess file for the time of Wordfence custom scan it finishes successfully.
#
# BLOCK HTTP ACCESS (ATTACKS)
# Throw a 403/Forbidden for HTTP requests from specified country zones.
#
<IfModule mod_maxminddb.c>
MaxMindDBEnable On
SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE KR BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE VN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE PK BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry
# Deny access to country zones specified above
Deny from env=BlockCountry
</IfModule>I would like to make an exception for Wordfence so I don’t need to always rename .htaccess file when i want to run a scan.
I tried to whitelist some of Wordfence ip’s but it did not work > https://www.wordfence.com/help/advanced/#servers-and-ip-addresses
<IfModule mod_authz_core.c>
# Whitelist specific IP addresses
<RequireAny>
Require ip 44.235.211.232
Require ip 54.68.32.247
Require ip 54.71.203.174
Require ip 35.83.41.128
Require ip 52.25.185.95
Require ip 54.148.171.133
Require env !BlockCountry
</RequireAny>
</IfModule>How can I set an exception for Wordfence to finish the scan and keep Country Block protection intact?
Thanks
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.