1

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,803
  • 2
  • 20
  • 28
15412s
  • 2,888
  • 4
  • 25
  • 36

1 Answers1

2

You will have to add this rule to .htaccess.

order deny,allow
deny from all
allow from 127.0.0.1 
error2007s
  • 12,666
  • 5
  • 31
  • 47