https://github.com/padosoft/ban-ip
ban an IP in IPTables and optionally save rules
https://github.com/padosoft/ban-ip
Last synced: 16 days ago
JSON representation
ban an IP in IPTables and optionally save rules
- Host: GitHub
- URL: https://github.com/padosoft/ban-ip
- Owner: padosoft
- License: mit
- Created: 2017-04-20T09:20:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-08-07T09:50:56.000Z (11 months ago)
- Last Synced: 2025-08-07T11:39:02.221Z (11 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ban-ip
Bash command to ban IP to iptable and optionally automatic save rules.
[![Software License][ico-license]](LICENSE.md)
Table of Contents
=================
* [ban-ip](#ban-ip)
* [Table of Contents](#table-of-contents)
* [Prerequisites](#prerequisites)
* [Install](#install)
* [Usage](#usage)
* [Example](#example)
* [Contributing](#contributing)
* [Credits](#credits)
* [About Padosoft](#about-padosoft)
* [License](#license)
# Prerequisites
bash
# Install
This package can be installed easy.
``` bash
cd /root/myscript
git clone https://github.com/padosoft/ban-ip.git
cd ban-ip
chmod +x banip.sh
```
# Usage
``` bash
bash banip.sh IPTOBAN [NOSAVE 0|1]
```
## Example
``` bash
bash /root/myscript/ban-ip/banip.sh 192.168.0.18
bash /root/myscript/ban-ip/banip.sh 192.168.0.18 1
```
For help:
``` bash
bash banip.sh
```
# Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
# Credits
- [Lorenzo Padovani](https://github.com/lopadova)
- [Padosoft](https://github.com/padosoft)
- [All Contributors](../../contributors)
# About Padosoft
Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.
# License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square