[PR #304] [MERGED] Block websites from search results via user config #835

Closed
opened 2026-02-25 20:36:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/304
Author: @benbusby
Created: 5/5/2021
Status: Merged
Merged: 5/7/2021
Merged by: @benbusby

Base: mainHead: feature/block-sites


📝 Commits (4)

  • 2856ae2 Block websites in search results via user config
  • b1404ab Add test for blocking sites from search results
  • 8ed1578 Document WHOOGLE_CONFIG_BLOCK usage
  • 90dc71e Strip '-site:' filters from query in header template

📊 Changes

10 files changed (+58 additions, -5 deletions)

View changed files

📝 README.md (+1 -0)
📝 app.json (+5 -0)
📝 app/models/config.py (+1 -0)
📝 app/request.py (+4 -0)
📝 app/routes.py (+1 -2)
📝 app/templates/header.html (+2 -2)
📝 app/templates/index.html (+4 -0)
📝 app/utils/search.py (+0 -1)
📝 test/test_results.py (+26 -0)
📝 whoogle.env (+14 -0)

📄 Description

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.

Note: since image searches use a separate header than other searches,
the "behind the scenes" filter (-site:...) will appear in the query field. This
doesn't have an impact on usability necessarily, but is being mentioned
for informational purposes. This should eventually be addressed with
#298, which will include category filters in the default header.

Closes #97


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/benbusby/whoogle-search/pull/304 **Author:** [@benbusby](https://github.com/benbusby) **Created:** 5/5/2021 **Status:** ✅ Merged **Merged:** 5/7/2021 **Merged by:** [@benbusby](https://github.com/benbusby) **Base:** `main` ← **Head:** `feature/block-sites` --- ### 📝 Commits (4) - [`2856ae2`](https://github.com/benbusby/whoogle-search/commit/2856ae2f9324d43d67e2cf9fe8613b1ae8b06663) Block websites in search results via user config - [`b1404ab`](https://github.com/benbusby/whoogle-search/commit/b1404ab94c9d30fb5abc819933a58f920becfaca) Add test for blocking sites from search results - [`8ed1578`](https://github.com/benbusby/whoogle-search/commit/8ed1578b4d02fe504baa6f1784fb32b73b898439) Document WHOOGLE_CONFIG_BLOCK usage - [`90dc71e`](https://github.com/benbusby/whoogle-search/commit/90dc71e4a6753fa8a1473ceb8dff2401a6f72096) Strip '-site:' filters from query in header template ### 📊 Changes **10 files changed** (+58 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) 📝 `app.json` (+5 -0) 📝 `app/models/config.py` (+1 -0) 📝 `app/request.py` (+4 -0) 📝 `app/routes.py` (+1 -2) 📝 `app/templates/header.html` (+2 -2) 📝 `app/templates/index.html` (+4 -0) 📝 `app/utils/search.py` (+0 -1) 📝 `test/test_results.py` (+26 -0) 📝 `whoogle.env` (+14 -0) </details> ### 📄 Description 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. Note: since image searches use a separate header than other searches, the "behind the scenes" filter (`-site:...`) will appear in the query field. This doesn't have an impact on usability necessarily, but is being mentioned for informational purposes. This should eventually be addressed with #298, which will include category filters in the default header. Closes #97 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:36:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#835
No description provided.