# Lawsuit fun, need help with lock script!

**URL:** <https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448>\
**Category:** random\
**Created:** [June 5, 2008, 11:20pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448 "2008-06-05T23:20:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [June 5, 2008, 11:20pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/1 "2008-06-05T23:20:57Z")

</div>

Not sure where I should put this.

We built a site for a client, and it had to be built on his server that he bought which was fine, everything is sealed up tight by a contract. The kind of site required a server for us to build.

Now things have gone awry, and we need to keep the site up legally for another week or so, but I also need to figure out how to prevent him from taking the files and running.

Is there a lock script or something I can do?

He has cPanel access but doesn’t know really what to do with it, but I wouldn’t put it past the client of finding out how and logging in to take em.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 5, 2008, 11:23pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/2 "2008-06-05T23:23:22Z")

</div>

Is it Flash? Do you have the source files on the server?

If it’s HTML you’re going to have trouble keeping control of the files - there’s just not a good way to prevent him from downloading all of it.

If it’s Flash there’s all kinds of fun stuff you can do - you could even set the site to expire after a week and completely stop working, and if he doesn’t have the source files, there’d be no way to change it. :thumb:

---

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [June 5, 2008, 11:29pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/3 "2008-06-05T23:29:29Z")

</div>

It’s majority html / php with some SWF’s. The fla’s aren’t on the server, but they aren’t that big a deal, he could still have someone else make what small flash has been made.

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 5, 2008, 11:30pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/4 "2008-06-05T23:30:36Z")

</div>

You could make the SWFs stop working after the week, that’d be pretty easy, but as far as the HTML that’s very open, I’m not sure what choice you have there. You could put timers in the PHP too, heh.

```auto

var cutoffDate:Date = new Date(whatever time you want);
function checkDate():void
{
     var rightNow:Date = new Date();
     if (rightNow > cutoffDate)
     {
          drawABigUglyBoxOverAllTheContent(lol);
     }
}

```

---

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [June 5, 2008, 11:36pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/5 "2008-06-05T23:36:35Z")

</div>

Cool dude, really appreciate the help.

Obama still kills babies tho! =p

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 5, 2008, 11:40pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/6 "2008-06-05T23:40:45Z")

</div>

[quote=Syous;2337661]Cool dude, really appreciate the help.

Obama still kills babies tho! =p[/quote]

Haha, any time friend. :love:

If you want more specific code let me know, that was just pseudo-code to give you the right idea.

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [June 5, 2008, 11:42pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/7 "2008-06-05T23:42:37Z")

</div>

You can use software to scramble your PHP.

---

<div class="post-metadata">

**Author:** ![redelite](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@redelite](https://forum.kirupa.com/u/redelite)\
**Post date:** [June 5, 2008, 11:55pm UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/8 "2008-06-05T23:55:44Z")

</div>

Where I work we have some cron job that runs everytime we push a website to the live server that encrypts the files. I can get more info on it if you would like.

---

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [June 6, 2008, 12:03am UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/9 "2008-06-06T00:03:06Z")

</div>

^ Yes please.

---

<div class="post-metadata">

**Author:** ![DanontheMoon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danonthemoon/32/7436_2.png) [@DanontheMoon](https://forum.kirupa.com/u/DanontheMoon)\
**Post date:** [June 6, 2008, 12:34am UTC](https://forum.kirupa.com/t/lawsuit-fun-need-help-with-lock-script/262448/10 "2008-06-06T00:34:26Z")

</div>

lolz @post #5. 🍺
