whoogle-search/app
Ben Busby c8da53d4b0
Block websites from search results via user config (#304)
* Block websites in search results via user config

Adds a new config field "Block" to specify a comma separated list of
websites to block in search results. This is applied for all searches.

* Add test for blocking sites from search results

* Document WHOOGLE_CONFIG_BLOCK usage

* Strip '-site:' filters from query in header template

The 'behind the scenes' site filter applied for blocked sites was
appearing in the query field when navigating between search categories
(all -> images -> news, etc). This prevents the filter from appearing in
all except "images", since the image category uses a separate header.
This should eventually be addressed when the image page can begin using
the standard whoogle header, but until then, the filter will still
appear for image searches.
2021-05-07 11:45:53 -04:00
..
models Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
static Remove gap between input and result types 2021-04-22 16:24:43 -04:00
templates Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
utils Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
__init__.py Allow 'data:' for img src in app CSP 2021-05-05 12:51:11 -04:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Expand custom css theming support 2021-04-09 11:00:02 -04:00
request.py Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
routes.py Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00