https://github.com/sanand0/blockedhistory
Check what sites in your browser history your network blocks
https://github.com/sanand0/blockedhistory
tool
Last synced: 10 months ago
JSON representation
Check what sites in your browser history your network blocks
- Host: GitHub
- URL: https://github.com/sanand0/blockedhistory
- Owner: sanand0
- Created: 2025-04-18T06:40:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T06:41:27.000Z (about 1 year ago)
- Last Synced: 2025-08-30T13:54:53.243Z (10 months ago)
- Topics: tool
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blocked History
This script checks which websites from your browser history are blocked by your current network.
## Usage
You can run this script directly using [uv](https://github.com/astral-sh/uv) via:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py path-to-browser-history
```
Browser History is located at:
- Microsoft Edge (Default profile)
- Windows: `%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\History`
- macOS: `~/Library/Application Support/Microsoft Edge/Default/History`
- Linux: `~/.config/microsoft-edge/Default/History`
- Google Chrome (Default profile)
- Windows: `%LOCALAPPDATA%\Google\Chrome\User Data\Default\History`
- macOS: `~/Library/Application Support/Google/Chrome/Default/History`
- Linux: `~/.config/google-chrome/Default/History`
- Firefox: To find your Firefox profile folder, open Firefox and navigate to `about:profiles`.
- Windows: `%APPDATA%\Mozilla\Firefox\Profiles\\places.sqlite`
- macOS: `~/Library/Application Support/Firefox/Profiles//places.sqlite`
- Linux: `~/.mozilla/firefox//places.sqlite`
Here are the commands for different operating systems:
Windows - Edge:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\History"
```
Windows - Chrome:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py "%LOCALAPPDATA%\Google\Chrome\User Data\Default\History"
```
macOS - Edge:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py ~/Library/Application\ Support/Microsoft\ Edge/Default/History
```
macOS - Chrome:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py ~/Library/"Application Support/Google/Chrome/Default/History"
```
Linux - Edge:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py ~/.config/microsoft-edge/Default/History
```
Linux - Chrome:
```bash
uv run https://raw.githubusercontent.com/sanand0/blockedhistory/refs/heads/main/app.py ~/.config/google-chrome/Default/History
```
## How it works
1. The script reads your browser history from the specified SQLite database file
2. It extracts unique domains from the URLs you've visited, sorted by visit count
3. For each domain, it attempts to connect and reports:
- 🟢 Success rate (% of domains that are accessible)
- 🔴 Failure rate (% of domains that are blocked/unreachable)
- 🟡 Remaining domains to check
4. For blocked domains, it shows the specific error message
## Note
The script uses a read-only connection to your browser history file, so it's safe to run while the browser is open.