IP Firewall for Nextcloud, Owncloud or other websites


Recommended Posts

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

Link to comment

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

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.