I am using apache 2.4.56 and my site is hosted on Google Cloud Compute.
"Require ip ip-number" works for /var/www/html/index.html
like mysite.com
but it doesn't work for mysite.com/cgi-bin/list_directory_1.cgi?directory=%2CBrasil&submit_directory=
In the second case, anybody can access it. This is what I have in the apache configuration file:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require ip 107.217.8.189
</Directory>
My scripts are in /usr/lib/cgi-bin. How do I allow just one IP to access my scripts?
Thanks!