pfBlocker question I can't find an answer to

Brand new installation of pfBlockerNG
Followed Tom’s video about installing it. All went well for the most part, there are some changes between to 2x version and the new 3x version. (Thanks so much Tom!!!)

I have some lists loaded and working, tested using the examples in the video.

However: I want to block several sites and I think if I just add an entry to any of the lists they will work BUT when the list gets updated they will most likely be gone.

So: Can I create a text file that looks like:
0.0.0.0 facebook.com
0.0.0.0 twitter.com
0.0.0.0 tiktok.com
.
.
.

and place the file somewhere like myServer:/volume1/somewhere and then put that address in pfBlockerNG where I added the other lists? Will that block all instances of facebook.com like: whatever.facebook.com and facebook.whatever.com?

Is that a good idea? Is there a better one?
Bart

1 Like

Can’t believe no one answered this.

Yes, you can do this.

The only “trick” to it is to be sure to locate the file in a directory that won’t get overwritten when you upgrade pfblockerng or pfSense itself. I put mine in /usr somewhere.

the way i have done it is to post the list in a GitHub repo and point pfblocker to it that way its simple to update and you don’t have to worry about it getting overwritten in a update

1 Like

Very clever. Hadn’t thought to protect it that way.

Alright!
Thanks for the answer, so sorry for the delay in responding.

Bart