A month is excessive. Nofap/nosurf don't really work as advertised. I recommend going 2 days without internet first. During that time, you either do something productive or find offline entertainment. What you're looking for is similar to a dopamine detox, only it's a "digital" detox. What difficulty do you want?
a) No Internet (internal network traffic is fine)
b) No Internet, PC, or phone if you have one
c) No screens at all. Only paper media, radio etc. are allowed for entertainment.
alluded to, blocking sites or relying on other external resources won't work as well as your own willpower. You must be able to get to a point where you still have unfettered access but can disconnect at will. At that point, you're using your devices and not the other way around. I stopped using shitcord entirely from mid-March to mid-May this year and it was very calming and empowering. More free time, less pseudo-social urges. Regarding youtube specifically, you can take away 90% of its addictive power by not using the app ever, and only looking at your subscriptions. You can even make RSS feeds out of your subs.