If you want to block social media apps from yourself, there are dozens of apps and tools you can use, including Freedom, StayFocusd, and RescueTime.
To block a website on Windows 10, head to Microsoft's Family Safety site and log in with your adult Microsoft account.