Avatar of equentin
equentin
 asked on

IP Blocking URLs on Apache

I have a site which has has an admin area located at www.domian.com/admin and an api area located at www.domain.com/api.

I need to lock down the whole site by ip address except urls starting with /api.

The site is hosted on an apache server and I am using the CakePHP framework which I believe uses mod_rewrite to manage its urls. i.e. there is no physical /api directory.

Is there a way to set up IP Blocking with .htaccess or in the httpd.conf to work for this setup?

Many thanks,

Chris
Apache Web Server

Avatar of undefined
Last Comment
arober11

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
arober11

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23