whoogle-search/app
Ben Busby fb600d6fc8
Improve G page distinction between footer and results
Pages in the Whoogle footer that by default route to Google pages were
previously being removed, but caused results that also routed to similar
pages to no longer be accessible. This was due to the removal of the
'/url' endpoint that Google uses for each result.

To fix this, the result link is now parsed so that the domain of the
result can be checked against the disallowed G page list. Since results
are delivered in a "/url?q=<domain>" format -- even for pages to
Google's own products -- and the footer links are formatted as
"<product>.google.com", footer links are removed and result links are
parsed correctly.

Fixes #747
2022-05-16 09:53:48 -06:00
..
models Support proxying results through Whoogle (aka "anonymous view") (#682) 2022-04-13 11:29:07 -06:00
static Fix german translation error (#742) 2022-05-02 11:56:21 -06:00
templates Render error message w/o `safe` filter 2022-04-26 09:28:05 -06:00
utils Remove "/" before endpoints & tags (#734) 2022-04-27 14:25:14 -06:00
__init__.py Use `lax` for session `SameSite` value (not `strict`) 2022-05-10 17:40:58 -06:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Improve G page distinction between footer and results 2022-05-16 09:53:48 -06:00
request.py Switch to defusedxml for xml parsing 2022-03-01 12:54:32 -07:00
routes.py Use `window` from Endpoint enum for anon view (#748) 2022-05-10 16:06:57 -06:00