No description
Find a file
2024-09-08 13:34:00 +02:00
.editorconfig adds .editorconfig file 2017-09-08 22:59:04 +02:00
.gitignore updates gitignore 2017-08-15 21:40:41 +02:00
.travis.yml travis... 2017-08-16 01:18:06 +02:00
LICENSE update urls and the years in the copyright notice 2021-03-15 22:44:31 +01:00
main.cpp update urls and the years in the copyright notice 2021-03-15 22:44:31 +01:00
Makefile update Makefile 2021-03-15 22:44:58 +01:00
README.md remove travis-ci image (account removed years ago...) 2024-09-08 13:34:00 +02:00
version.h update urls and the years in the copyright notice 2021-03-15 22:44:31 +01:00

Fewo-Blacklist

A simple command line tool to manage a blacklist. The following two files need to exist in the (actual) working directory.

  • daten.txt - can be empty
  • counter.txt - write a single zero (0) into the first line

You can also create those files with make reset.

For example

Put the files into your home directory

You can run the tool in your home directory. It does not care where the binary file is, as long as you are in your home directory.

Put the files into a separate directory under your home directory

If you put the two files into .fewo in your home directory, you have to go into that directory first and run the command then. It does not care where the binary file is, as long as you are in that specific directory.

Change the source code to use absolute paths

Open main.cpp and re-define the filename of those two files (that information is on line 80 and 81).

  const char * cFilename = "daten.txt";
  const char * cCounter  = "counter.txt";

You can easily change this to something else and compile again.

  const char * cFilename = "/var/lib/blacklist/daten.txt";
  const char * cCounter  = "/var/lib/blacklist/counter.txt";

Others

Feedback and suggestions welcome!