Commit Graph

509 Commits (master)

Author SHA1 Message Date
Orazio d80fcf2e62
More checks when downloading from file:// scheme
1 month ago
Adam Warner eb7daf4d2c
Fix file permission check in gravity.sh. Remove quotes that were added after complaints from shellcheck, this stopped the comparisson from working
1 month ago
DL6ER 9dd138b033
Only use local files (file://) when they have explicit permissions a+r
2 months ago
DL6ER 3f7413d538
Add "-ni" to all sqlite3 invocations
5 months ago
Christian König cdc1c1ace1
Remove user agent when downloading adlists
8 months ago
DL6ER 6c302c9bc8
Adlist properties need to be stored in the new ("temp") database rather than the old.
11 months ago
DL6ER 73733308ba
Use parseList function offered by pihole-FTL
12 months ago
Christian König eaded9fdb1
Remove forgotten variables
12 months ago
Christian König a3e610dbf2
Don't use '--suffix' in mktemp
12 months 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
RD WebDesign 090727b1d3
Remove unnecessary return
2 years ago
RD WebDesign 8b98fd06ed
Remove unused old code
2 years ago
Christian König 230d6a435f
Semi hardcode the connection_timeout value
2 years ago
Christian König 53c0982c8b
Set connection timeout for curl
2 years ago
Adam Warner 64dc002c3f
Same per @rdwebdesign suggestion.
2 years ago
Adam Warner 6c7a28a7b5
Dont use bash keywords/programs as variable names
2 years ago
Christian König b486786041
Add database healthy checks to debug script
2 years ago
Adam Warner 0be987239e
Adds spellcheck action to the smoke-tests (also moves editorconfig-checker to smoketests away from it's own action)
2 years ago
Peter Russell 052a1f294e
Update gravity.sh
2 years ago
Peter Russell 325f20d5c2
Update gravity.sh
2 years ago
Peter Russell 1c28da7bbd
Update gravity.sh
2 years ago
jpgpi250 aba5e884eb Update gravity.sh
2 years ago
DL6ER 8cbffa179d
Replace remaining sqlite3 calls by calls to our embedded pihole-FTL sqlite3 engine and remove sqlite3 as dependency in the installer.
2 years ago
DL6ER 534f9a63bf
Copy database tables earlier into the new gravity database to avoid foreign key contraint violations when adding gravity entries refering to an empty adlist table
2 years ago