2

I want to approve only to local host to send requests to

https://localhost:443/action/start.cgi


I know I can limit access to directory.

<Directory "/usr/local/httpd/htdocs">
  AllowOverride All
</Directory>

Is there an option to block all ips beside localhost for specific path?

Isabel Inc
  • 1,871
  • 2
  • 21
  • 28
15412s
  • 3,298
  • 5
  • 28
  • 38

1 Answers1

2

You will have to add this rule to .htaccess.

order deny,allow
deny from all
allow from 127.0.0.1 
Piyush Patil
  • 14,512
  • 6
  • 35
  • 54