How to block access to a particular route in .htaccess file
问题 I need to block access to a particular route in my web application using a .htaccess file for everyone except a list of IP's. When I say block and whitelist IP's I want to use the following on particular route order deny,allow deny from all allow from 1.1.1.1 allow from 2.2.2.2 I tried using the Location directive, but it is not allowed in .htaccess. I do not have access to the server config file since it is a managed hosting provider The route I want to block is for eg: http://www.example