PyPhDB icon indicating copy to clipboard operation
PyPhDB copied to clipboard

Full round trip - comments etc

Open howdey57 opened this issue 4 years ago • 0 comments

Your code is great. I've tried it and it works but I have a feature request if you have time.

What I'd like to do with it is to be able to update the lists remotely without having to log into the remote site.

The use-case is that I'd like to put an RPi in my parents house with PiHole and be able to update the PiHole lists remotely - a bit like with adlists. This means creating a hosts list on, say, github that I can add/change as I want.

Then :

  1. you pull the updated list from github,
  2. you overwrite the lists that your upload script would use
  3. your upload script replaces the lists in PiHole
  4. This set would then run on a cron job every now and then.

Your script would also be good if:

  • I could put comments in the lists in github which your script then ignores as it uploads (so I can create "# comments " in my list on github like in a normal host file)
  • it could take a basic domain eg "google.com" and convert it like PiHole does on the web interface to "(.|^)google.com$"

Thanks

howdey57 avatar May 18 '21 16:05 howdey57