Commit Graph

523 Commits (b9861cd2b02975fcdf69e772c54f541942af8069)

Author SHA1 Message Date
DL6ER b9861cd2b0
Optimize the database by running ANALYZE after gravity finished
5 months ago
DL6ER c90a27c509
Add "-ni" to all sqlite3 invocations
6 months ago
DL6ER 29d010dc2c
Use files.gravity_tmp as temporary directory for the intermediate lists
6 months ago
Christian König fd8fdd3513
Use suffixed temp file
7 months ago
DL6ER 7523c49f62
Swapping the databases must be the last step before the cleanup. Otherwise, FTL may be reloading from an only partially completed database causing spurious errors and/or warnings.
7 months ago
RD WebDesign 27522fbc18
Add a final message to gravity
8 months ago
Adam Warner aba41b45b0
Some verbiage change to outputs
8 months ago
DL6ER f19a56cf87
Merge branch 'development-v6' into new/antigravity
9 months ago
Christian König eca84e0986
Remove user agent when downloading adlists
9 months ago
DL6ER 2a03671fb9
Reinstall gravity cleanup on error
11 months ago
DL6ER 35512c4dc9
Fix adlist.list migration step failing during tests
11 months ago
DL6ER 00cbb8bc8a
Add antigravity support to gravity
11 months ago
Adam Warner a3bb3872bf
adlist table now contains 11 columns, not 10.
12 months ago
Christian König 7351a4d3b1
Merge branch 'development' into development-v6
1 year ago
DL6ER 6c302c9bc8
Adlist properties need to be stored in the new ("temp") database rather than the old.
1 year ago
Adam Warner ea748822ef
REVISIT: I don't _think_ this line is nessacery. Why should gravity restart FTL if it is offline? It might be offline on purpose.
1 year ago
Adam Warner a91eb48d48
Remove some code from gravity that gets values from setupVars.conf / pihole-FTL.conf - use getFTLConfigValue from utils.sh instead
1 year ago
Adam Warner cd17040f95
setupVars.conf not existing is no longer a critical error
1 year ago
Adam Warner dbc6b814b2
Should not need to reloadDNS manually any more as FTL will detect that it needs to reload by itself
1 year ago
DL6ER 3695610300
Allow running pihole -g without root (run as user pihole)
1 year ago
DL6ER 73733308ba
Use parseList function offered by pihole-FTL
1 year ago
Christian König eaded9fdb1
Remove forgotten variables
1 year ago
Christian König a3e610dbf2
Don't use '--suffix' in mktemp
1 year ago
yubiuser cd638b102f
Filter ABP CSS selectors (#5247)
1 year ago
Christian König dd3a7a4edb
Only delete lines containing separator when preceded by a letter to reduce false positiv (deleting valid comments)
1 year ago
Christian König d10d59303e
There is no ! but an $ rule
1 year ago
Christian König aaf828117d
Remove unecessary $cmd_ext
1 year ago
Christian König 9c4e74ffa7
Remove special handling of pgl.yoyo.org
1 year ago
Christian König 2a0f720153
Don't delete lines containing `/` as they should count as invalid
1 year ago
Christian König cc17fe18a9
Remove lines with ABP extended CSS selector
1 year ago
Christian König 61ff5b2c76
Unifiy sed commands
1 year ago
RD WebDesign 66bfa606a7
Using a better text for the comment
1 year ago
RD WebDesign 32fb2e69ff
Spliting the regex into TLD_pattern and subdomain_pattern
1 year ago
RD WebDesign c71460e4b6
Allow TLD blocking using ABP style
1 year ago
Adam Warner 0656ceb149
Speed things up a bit with some humble greps. Consolodate regexes and remove the need for so many mapfile/arrays
1 year ago
kot0dama 76b7453f90
Add configurable GRAVITY_TMPDIR variable into setupVars
1 year ago
Christian König 71e262c37f
Revert "Allow final dot (root zone)"
1 year ago
Christian König 0b5da9f0da
Allow final dot (root zone)
1 year ago
Christian König 16385af3ef
Use dedicated pattern variable to make RegEx reusable
1 year ago
Christian König 6cb0be82ca
Add flag abp_domains into info table to signal if abp domains have been found
1 year ago
Christian König 821c7dc190
Add info when list cotains ABP style domains
1 year ago
Christian König eedd93d782
Remove temporary files
1 year ago
Adam Warner 1f3f849106
Remove lines starting with ! or [ to account for ABP style comments and header
1 year ago
Christian König ca74152d1d
Allow adding ABP style blocklists
1 year ago
Christian König a4bdf2454b
Don't use intermediate strings to filter false positives in gravity
1 year ago
Adam Warner 9939cf1d77
Rename some of the variables to hopefully make the process a little clearer
1 year ago
Adam Warner 79f4a7cef0
Maintain a list of valid hostnames (taken from the top of StevenBlack's host file), and discount them when calculating the number of "invalid" domains in a given list
1 year ago
Christian König 14ab586603
Start counting with 1
1 year ago
Christian König 372070ab39
Improve detection of incorrecr lines during gravity
1 year ago
Christian König 4004a93d1a
Don't double check for lines containing no domains in gravity
1 year ago