A huge blocklist of sites (~950) that contain AI generated content, for the purposes of cleaning image search engines (Google Search, DuckDuckGo, and Bing) with uBlock Origin or uBlacklist.
A hosts file for pihole/adguard is available as well.
If you have uBlock Origin installed, click this link to import the filter list in just a click! Quick and simple.
-
Make sure that you have the uBlock Origin Extension for Firefox, Chrome, or any browser that supports uBO (works on Android too!).
-
Click on the uBlock Origin Extension, and in the bottom right, there is a cog-wheel symbol--named the dashboard. Click it.
-
Once you are in the dashboard, look towards the top. Click on the tab that says "Filter lists".
-
Look towards the bottom, and expand the
Import
button. -
Copy and paste this URL into the dialogue box:
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list.txt
- Apply changes, and you're set!
A video guide on how to do this is available as well:
video_guide.mp4
uBlock Origin will automatically refresh the filter list once a day, so you'll always have up-to-date filters.
If you want to force an update of the filter list, pressing the stopwatch next to the newly added list, then pressing Update now
will achieve that.
-
Make sure that you have the uBlacklist extension for Firefox, Chrome, or any browser that supports uBlacklist (works on Android too!).
-
Click on your extensions list, select uBlacklist, then click on the "options" text, highlighted in blue.
This will take you to the uBlacklist options panel, similar to the Dashboard in uBlock Origin
-
Scroll all the way down until you see the "Subscription" tab, and click on the blue "Add a subscription" button.
-
Give a name for the added blocklist (eg. Main AI blocklist).
-
Copy and paste this url
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list_uBlacklist.txt
into the "URL" part of the dialogue box, then press the blue "Add" button.
-
There you go! You're done!
-
(optional) Set the update interval to an hour for near-realtime list updates.
Since it was requested, I've added a list in HOSTS format for pi-hole/adguard or for use in your own operating system's hosts file.
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/noai_hosts.txt
For use in your operating system, visit the url and copy-paste the contents inside your operating systems hosts file.
Here's a simple guide on how to access your hosts file on Linux, macOS, and Windows.
- Visit your admin's dashboard
- Click on
Adlists
- Copy and paste the url into the
address:
box - Hit the
add
button, and it should be added.
- Open Adguard Home Dashboard
- Go to filters --> DNS blocklists.
- Click
Add blocklist
, thenAdd a custom list
. - Enter the name of the list (eg. AI blocklist) into the first dialogue box.
- Copy and paste the url into the second dialogue box.
- Hit save, and the list is added!
As of right now, there are two lists. The main default list, and the nuclear list.
The nuclear list has sites that contain a mix of authentic and AI generated imagery (eg. DeviantArt, Artstation, Stock Photography sites, etc), which make it tricky to outright block in the main filter list, so I've designated it to a separate list that you can toggle on and off if you so desire.
In order to use the Nuclear list, do the same steps that you did in the section "Installing the blocklist for uBlock Origin", but instead of using the other url, use:
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/additional_list_nuclear.txt
In order to use the Nuclear list, do the same steps that you did in the section "Installing the blocklist for uBlacklist", but instead of using the other URL, use:
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list_uBlacklist_nuclear.txt
Don't like a website being blocked? You can easily create an allowlist in your own personal uBlock Origin or uBlacklist filter list.
Here's how to do it.
- Toggle the DOM inspector
</>
through uBlock Origin's logger. - Locate the URL you want to allowlist.
- Click on the filter you want to disable (eg. vecteezy.com); it should then be crossed out.
- Press the save icon, then the "Create" button.
Boom! Now it's allowlisted!
Or, if you don't want to go through that mumbo-jumbo, add this line in your filter list:
#@#a[href*="example.com"]:upward(div):style(opacity:0.00!important;)
Change "example.com" to the URL you want to allowlist. Copy & paste that in uBlock Origin's "My filters" list, and you're set!
- Enter uBlacklist's options panel.
- In the text box, add this line in the text box:
@*://*.example.com/*
- Change "example.com" to a website you want allowlisted.
- Click save. Done!
It is possible to filter AI results based on keywords. It was originally in the list, but it's been taken out to make it configurable and/or optional (since it is a blanket ruling, and doesn't care about context).
In your personal filter list, you can use this template to add your own keywords you would like to block.
google.com,duckduckgo.com,bing.com##div>a:has-text(/Your Text Here/i):upward(div):style(opacity:0!important)
Replace "Your Text Here" with your preferred keywords. A short list of optional procedural filters that you can use for uBlock Origin are listed below:
google.com,duckduckgo.com,bing.com##div>a:has-text(/Stable Diffusion/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/AI Art/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/Generative AI/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/Ai/):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/AI/):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/Lora Model/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/diffusion/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/midjourney/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/niji/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/SDXL/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/ai generated/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/aiart/i):upward(div):style(opacity:0!important)
google.com,duckduckgo.com,bing.com##div>a:has-text(/AI illustration/i):upward(div):style(opacity:0!important)
For uBlacklist, you can use regular expressions to filter AI results based on keywords.
An example of a regular expression for uBlacklist would be: /ai *(generated)?|stable *diffusion/i
Below is a small list of optional regular expressions that can be used to filter out AI results based on keywords:
/(generative)? *AI *(art|generated|illustration)?/i
/(ada)?Lo(RA|Con) *(model)?|(stable)?.*diffusion|midjourney|niji|sd *(xl|1.5)|(text|txt|img|image) *(to|2) *(image|img|video)/i
uBlock Origin's implementation is technically superior, as it allows you to continue scrolling even when tons of blocked websites are queried, since all it does is set the offending sites' opacity to 0 instead of using traditional blocking methods.
uBlacklist on the otherhand, blocks the queries outright--meaning if too many AI sites are in your image search results, you will not be able to scroll any further than the first 6 rows of images (seems to be exclusive to Google Images).
Although the latter is inferior, it is a bit rare for that to happen, especially if you append operators such as -ai
in your query. Just keep that in mind (it may also be a bug on uBlacklist's part).
I created a repo that houses fantastic tips & tricks for Google Search's operators. Eradicate AI even more!
Not only that, but there are lots of lists you can subscribe to that will clean up the internet more, such as rjaus' awesome ublacklist subscription list.
✅ Provide blocklist for uBlacklist compatibility
✅ Blocklist functionality on DuckDuckGo and Bing (ew)
✅ Create hosts file for pi-hole/adguard
❌ Startpage, Ecosia, Brave support
Special thanks to this pastebin (since it added even more sites to my blocklist) and to u/AchernarB for the awesome snip-bit of code.