Block AI-generated music on Spotify
Automatically blocks artists known for AI-generated music using a community-maintained list.
- Runs directly in your browser
- No manual blocking
- Daily updated
- Fully open source
Wondering if a Spotify artist is AI-generated? If you don’t want to install the script and just want to check an artist, you can search the list of AI music artists here:
Search the AI Artist List
Use the Search this file box at the top of the page to look for the artist name or ID.
- Install Tampermonkey
- The script requires direct page-context access, which other userscript managers do not support.
- If you use Chrome, you must allow Tampermonkey to run scripts: Permission to execute userscripts.
- Open the script on:
- Click Install and confirm.
- Open Spotify Web Player to run the script.
The script automatically blocks artists from a community list of AI-generated music and runs quietly when you open Spotify Web.
Caution
Spotify does not provide an official API for blocking artists. This userscript mimics requests made by Spotify’s web player and may violate Spotify's Terms of Service. Use at your own risk.
- List Fetching: Daily loads a crowd-sourced CSV list of artists generating AI music from GitHub.
- Token Capture: Hooks into Spotify’s internal
fetchrequests to extract the access token. - Username Detection: Retrieves the logged-in username from Spotify’s
localStorage. - Blocking: Sends POST requests with access token and username to Spotify’s private API to block each artist.
- Persistence: Remembers blocked artists and last run date using
localStorageto prevent duplicate requests.
Found an AI-generated artist that is not on the list? Submit them using the GitHub submission form.
You can also submit the currently playing or the currently opened artist anonymously from Spotify Web: Hold Shift + Right Click (Spotify disables the normal context menu), then go to Tampermonkey → Spotify AI Artist Blocker → Report playing AI Artist / Report opened AI Artist. A new submission with the artist will automatically be created.
- SubmitHub AI Song Checker – Tool to detect AI-generated songs
- AI-Music Detection – Code for Deezer’s AI music tagging system
- Identifying Counterfeit Songs – Paper about large-scale AI song detection datasets
- Using AI To Detect AI Music – YouTube video on identifying AI music
- Soul Over AI – Curated list of AI artists across platforms
- Spotify AI Blocklist – AI blocklist for Spicetify
- Spotify AI Band Blocker – Spicetify plugin to block AI artists
Does this work in the Spotify app?
Blocking the artists only works in the Spotify Web Player. But once blocked, the artists are blocked everywhere you use Spotify.
Do I need to install this on every device?
No, the block applies globally to your Spotify account, so once an artist is blocked, it counts on all devices.
Can I unblock artists later?
Yes, just unblock them on their artist page, they will not be blocked from that device again.
Will this get my Spotify account banned?
No known bans so far, but it uses unofficial methods and could theoretically violate ToS.
Other problems? Open an issue on GitHub.