Redirect Users with a specific IP
I am blocking a few IP address ranges. Since I am blocking a range, I want to redirect them to a page with a contact form (with a reCaptcha) instead of giving them a 403 error, just in case I am blocking legitimate users. I have three files, contact-form.php, contact-form-handler.php, and contact-form-thankyou.php. I want those to be the only pages they can access and redirect them to contact-form.php. I would like to use .htaccess and mod_rewrite to do so.