Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^getinfo/?$ getinfo [L]
    RewriteRule ^getinfo2/?$ getinfo2 [L]
</IfModule>

<FilesMatch "^(allowed_ips\.txt)$">
    Require all denied
</FilesMatch>
