mgutt Posted March 31, 2021 Share Posted March 31, 2021 I was asked to realize an IP-Firewall for Nextcloud, so I did. It can be downloaded from here. After uploading the firewall.php to your website's root directory, you need to open example.com/firewall.php to install the Firewall-Code to your .htaccess. After that all visitors are blocked and temporarily forwarded to the Firewall Page. After entering the valid key, they are permanently unlocked and forwarded again. Supported languages: - English - German By opening example.com/firewall.php?key=yourKey&uninstall, you can uninstall the firewall again (don't forget to delete firewall.php, too). Donate if you like: https://www.paypal.me/marcgutt https://github.com/sponsors/mgutt Quote Link to comment
mgutt Posted March 31, 2021 Author Share Posted March 31, 2021 Nextcloud: To use the firewall with Nextcloud you need to search for this line in the .htaccess file: RewriteCond %{REQUEST_FILENAME} !/cron.php And add this line after it: RewriteCond %{REQUEST_FILENAME} !/firewall.php Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.