But I was worried about getting sued by that client.
What you do is let them know you expect payment in X days, and if not start legal proceedings. And then you follow up on that.
Out of curiosity, why was it not a good course of action? Did the client have any leverage after being 6+ months past due on their payment?
What is your rationale? Netflix suspends your account for non-payment, the same should apply to web infrastructure.
Can you program in some code to display on the website “this website owner needs to pay for their site” etc.
and if they don’t pay you, you don’t disable it. And it activates after a while. Plus it would have redundant things so they can’t easily just hire one guy to remove it.
Or it could be some thing that breaks the site in a less obvious way and they call you to fix it.
It doesn’t seem to break any laws that I know of. Do you?
I was owed several thousand dollars by a client and they were several months late in making a payment. They strung me along for a while but at some point it was no longer worth my time.
Realizing I wasn't interested in any future work from the client I simply took their site down and emailed the owner asking for payment. I suspected they'd try to get the site back up (it was in their AWS account) but the owner replied right away asking for my Paypal address.