.htaccess configuration
-
Good evening,
Hoping someone out there can help with this. I’m trying to utilize CloudFlare’s country blocker to limit traffic from India from hitting my contact forms, but I don’t want to limit the whole site so I’m trying to figure out how to do this on just contact pages. My Web Design Contact Form I can’t just create a folder in my root called /contact/ with an .htaccess file which matches my permalink because there would have to be an index file for it to work, nulling the permalink.
I know the </Location> directive can only be used in the Apache Config files or Virtual Hosts. Unfortunately I am on RackSpace Cloudsites so I can’t do either of these. Really I just need a way I can block all forms from submitting if they match the rule below being from India. I’m currently using Contact Form 7.
SetEnvIf CF-IPCountry IN UnwantedCountry=1
Order allow,deny
Allow from all
Deny from env=UnwantedCountry’Any suggestions on how I can do this? I appreciate it in advance.
- The topic ‘.htaccess configuration’ is closed to new replies.