• TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    You automate that shit, you never give them direct access to the source code, and you obfuscate the code that changes the opacity so that it’s really hard to find even if they manage to wrest control away from you. I did this once after the client failed to pay as agreed. They narrowly escaped their site being replaced with a message saying they did not pay their bill, by paying eventually, but I couldn’t let them get away with that shit if they decided to change passwords and tried to screw me completely.

      • Adalast@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        Not that I know of. In the end you are editing the browser rendering parameters. Anyone can inspect the page and see that the opacity on the page is being turned down. Finding where it is happening is the only thing you can really make hard. Have a couple of the pass through scripts be machine generated and you can have it use nonsensical variable names and a bunch of dummies that lead on wild goose chases. It could all be fixable, but you can make it a pain in the ass. Add a redundancy or two and it will make debugging a nightmare because even if one is fixed, the others will make it look as though it has not.

        The real answer is to have NEVER do freelance web development inside the client’s firewall. Never. If they try to require it, walk away. If it is inside their firewall then they can just take the source code and stiff you. If they try to spout some BS about security, say that is precisely what you are concerned about and point blank ask them what safeguards they are willing to allow you to put in place for developing in their system. If the answer is none, walk. If they are willing to let you VPN in, run the code from a local copy over the VPN and node lock it so if someone attempts to serve it from another machine it fails.

        Apologies. I’m tired and hate businesses taking advantage of “Independent Contractors”.

        • Agent641@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          5 months ago

          You obfuscate your code with random dead ends and weird variable names.

          I obfuscate my code just by writing normally because I haven’t learned how to write properly.

          straightens tie

          We are not the same

  • Maple Engineer@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    I had a customer who wanted me to stay on as a consultant to keep their system running. He was a scumbag so I added a test to see if I had logged on in the last 60 days. If not it threw a random error code. It triggered three times before I told him that I wanted a lump sum payment and I would fix it for good and then we were done and I wanted the cheque drawn on his personal account. His controller was an even bigger scumbag than he was. He gave me the cheque and asked me what was wrong. I explained and he laughed because he was a multi-millionaire car dealer and I was a late teens computer kid and I got the better of him.