Are you using a desktop or laptop? I used to carry my laptop around with me to use whenever wherever as designed, and found myself always using it. Setting aside a dedicated desk space where I limit the use of the laptop made it much easier to just think of it as desktop and less mobile. Now, using it feels like I'm at work, and it is much easier to walk away from it.
Finding other things to do when bored instead of opening a browser is key. You're going to fill the time with something, so you have to find the something else.
There was K9 Web Protection but it was ended in 2019 by Symantec. It was perfect because after setting up password you had to wait one week to unblock it back again :)
You can try LeechBlock. It works as plugin in all browsers.
First thirty seconds are the worst for will :)
So it is better to ask a relative/friend/parent/spouse to set up a password for you - then you cannot unblock the sites back again without them.
What worked for me: working in person with others.
I found that it's much harder for me to procrastinate on my laptop when I am working with peers. The repeated focus time on the laptop during work hours 'conditioned' me to use it for work more.
I kind of agree with you in a way as I ultimately think that working remote is a bit harder on social health and maybe even physical health of getting out of the house, but in another way I just don't know if I can go back to all the negatives of the office.
I mean, my toilet at home washes my ass with gentle warm water. The work toilet randomly decides to splash toilet water on me with the violent "automatic" flusher after I'm done wiping myself with transparent sandpaper.
You don’t need the other person to be in the same room - a video call works just fine. In fact, it can be even better for productivity since there's less chit-chat.
It is my anecdotal experience that a whole bunch of my current friends are from a pre-pandemic in-office job and I’ve made zero lasting friendships at my remote jobs.
Finding other things to do when bored instead of opening a browser is key. You're going to fill the time with something, so you have to find the something else.