How to censor status.php page?


#1

It’s possible to censor status.php without break nextcloud ?

Edit : Question stupid, i can respond my own :stuck_out_tongue:

For HaProxy, add in you Frontend (not advisable if the frontend manage multi vhost) or Backend (advisable).

  acl restricted_page path_beg,url_dec -i /status.php
  http-request deny if restricted_page

Or if you use apache2 add in your vhost file

<Location /status.php>
    Order Allow,Deny
    Deny from  all
    Allow from 192.168.1.0/24
</Location>