Awful Client Insurance via PHP!

Having done a fair amount of freelance work, I have a lot of experience with different types of clients. Some are easy to work with, some difficult. Some pay you on time, some argue over money but pay you in a timely manner, some take a bit to pay you but just cause they’re lazy and you get the money eventually. Then there are the deadbeats. You do a site for them, you put it up in good will, and they don’t pay you. You send them an email asking for payment, they side step you and still don’t pay. What do you do to protect yourself against this?

You could say “I’m gonna take the site down within 10 days if I don’t receive payment.” This is all well and good, but what if the client decides that they’re gonna change their FTP password and lock you out? You’re screwed.

Since I am currently dealing with a deadbeat client, I thought of how I could negotiate this. Then I realized….PHP!

PHP can change (and delete!) directories on a server. So by hiding a simple PHP script on the clients site, one which only you would know how to get to, you can put a little insurance in there that will let you delete the entire site by simply going to a URL.

Here’s a link to the code that I am using (thanks to Kunal Patel for the link :) )

Recursive Directory Delete with PHP



This entry was posted on Thursday, April 23rd, 2009 at 9:21 pm and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Awful Client Insurance via PHP!”

  1. Iris Salmins

    I ran into your blog the same day that I put setting up a Web Site for deadbeats on my calendar. I haven’t taken the time to put any thought into it, but I will probably do a page on our site and a separate site.

    Be well and thanks for the confirmation.

    Iris Salmins
    Collection Agency for the Media Industry
    http://www.linkedin.com/in/irissalmins

Leave a Reply

Your comment