HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
4skinSkywalker
Anti-Porn-HOSTS-File
JavaScript2019–2020
4skinSkywalker / Anti-Porn-HOSTS-File

Anti-Porn-HOSTS-File

Hosts file for "blocking" porn sites

2Distinct people
3Mentions
0Explicit recommenders
234GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Hosts file for "blocking" porn sites

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month3 dated mentions

Observed mentions: 2019-06-13 05:57:42 UTC to 2020-01-21 15:02:29 UTC.

012019-06-01 00:00:00 UTC to 2019-07-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 20192019-07-01 00:00:00 UTC to 2019-08-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-08-01 00:00:00 UTC to 2019-09-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-09-01 00:00:00 UTC to 2019-10-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 20192019-10-01 00:00:00 UTC to 2019-11-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-11-01 00:00:00 UTC to 2019-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-12-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2020-02-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJan 2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 20192019-06-01 00:00:00 UTC2019-07-01 00:00:00 UTC101
Jul 20192019-07-01 00:00:00 UTC2019-08-01 00:00:00 UTC000
Aug 20192019-08-01 00:00:00 UTC2019-09-01 00:00:00 UTC000
Sep 20192019-09-01 00:00:00 UTC2019-10-01 00:00:00 UTC101
Oct 20192019-10-01 00:00:00 UTC2019-11-01 00:00:00 UTC000
Nov 20192019-11-01 00:00:00 UTC2019-12-01 00:00:00 UTC000
Dec 20192019-12-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
Jan 20202020-01-01 00:00:00 UTC2020-02-01 00:00:00 UTC110

What Hacker News says

3 sources
Different issue (https://news.ycombinator.com/item?id=20172172), but my heuristics might work for you as well. I'm not a therapist, so take it with a pinch of salt. 1) Edit the host file to block nsfw websites on your computer: https://github.com/4skinSkywalker/anti-porn-hosts-file. Note that the host file blocks whole websites (e.g. reddit.com), not specific pages (reddit.com/r/news/). 2) Download a web/app blocker to lock down your browser during night time. I use https://heyfocus.com/?utm_source=focus_about, but there are several free apps to choose from. 3) Soul-search what really caused the compulsive behaviour. This lengthy process is less about finding "the ONE answer" and more about self-awareness. A good psychologist (a professional therapist who does not rely on prescriptions) can help you connect the dots. I was skeptical at fi
Read the rest
rst, but I've ended up enjoying the sessions. 4) Find a hobby that involves exploring open spaces: hiking, nature photography, bird watching, biking through the countryside... you need to feel that child-like freedom again. Modern life is like moving from one prison cell to the next, each one with a specific function. Your daily routine is likely defined by a string of tiny spaces: bedroom, bathroom, kitchen, sidewalk, car, office, repeat. Porn might be one way to escape from the ubiquitous wall, but I suggest you to explore other possibilities. I wish you good luck! I hope you'll post your progress to this community in the future.
In Ask HN: I am addicted to Porn. Help me quit
Same issue. Now I use an website/application blocker. I set up a schedule 8:30~19:00 so that I can't access distractions during my workday, even If I wanted to! My tool of choice is focus https://heyfocus.com/?utm_source=focus_about I'm not affiliated to the developer, I just really like the app. I locked down the settings so that there's no way to undo the block while it's running: the lack of options is oddly freeing and it forces me to face the issues at hand. I also set up a night schedule 22:00~6:00 so that I don't waste a good night's sleep online (but I do cheat on that sometimes...). Secondly, I use Adblock Plus and other plug-ins to edit out parts of websites. I removed the homepage, up next and recommendations from my youtube experience. That sidebar at the side of every article/video? Gone. I can't recommend this enough, modern
Read the rest
webpages are exhausting to look at. Lastly, I recommend you to edit your host file to block annoying content while browsing: https://github.com/4skinSkywalker/anti-porn-hosts-file. You can find all sorts of lists online to suit your needs. Note that the host file blocks whole websites (e.g. reddit.com), not specific pages (reddit.com/r/news/). Good luck with your effort!
In Ask HN: How do I make using a computer distraction free?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.