is there a way to stop a script if a client don't pay
Moderator: General Moderators
is there a way to stop a script if a client don't pay
I know there is a service called css kill switch, that locks a stylesheet down if the client don't pay, but what about something that does that for php?
Re: is there a way to stop a script if a client don't pay
do you mean something like a switch or what? you could use a program that obfuscates the code. I think there is one made by zend
Re: is there a way to stop a script if a client don't pay
It's easy on the face of it, but it's actually very difficult to do securely.
That's the key that you give the customer: "1301958000". Save that into key.txt and give it to the customer.
That will stop the script running if the date is after 4th May 2011. Job done.
Except... The key is obvious. The code that checks it is equally obvious. You'll have to come up with something that's more secure.
NOTE: $key = file_get_contents("key.txt"); could be $key = file_get_contents("http://www.yourwebsite.com/key.php?customer=123"); if you wanted to make it so that you could kill the script remotely. Just have the $key be true or false, and have key.php?customer=123 return true or false depending on whether the customer has paid. Again though, it'd be pretty easy for the customer to remove that code. Also that would mean your website would have to be available for the authorisation to work.
Code: Select all
$key = mktime(0,0,0,4,5,2011);
echo $key;Code: Select all
$key = file_get_contents("key.txt");
if (mktime() > $key) { exit; }Except... The key is obvious. The code that checks it is equally obvious. You'll have to come up with something that's more secure.
NOTE: $key = file_get_contents("key.txt"); could be $key = file_get_contents("http://www.yourwebsite.com/key.php?customer=123"); if you wanted to make it so that you could kill the script remotely. Just have the $key be true or false, and have key.php?customer=123 return true or false depending on whether the customer has paid. Again though, it'd be pretty easy for the customer to remove that code. Also that would mean your website would have to be available for the authorisation to work.
Re: is there a way to stop a script if a client don't pay
i kind've wanted something to run silently, i could put that in and tell them they can't edit this or it will break there site
i know vbulletin has the ability to stop there forum software from running, i just don't know how they can do that without us seeing the code
the problem is i done a project for 300 dollars, the dude sent me a paypal receipt, so i thought everything was well, he wound up changing the amount to 25 dollars before it got sent to my paypal... and i have already sent him the project.
i wan't a way to do this with out actually hacking his site, i just wan't to stop my script from running, i don't want to do this in a way thats going to make him mad because he's still telling me he's going to pay
i think him changing the amount on me before it wen't to my paypal says that he was trying to screw me over
from now on im not giving out anything till i see the full amount in my paypal, because i learned that paypal receipts can be fake
when your making forum modifications or anything else like that people want to actually see it running before they buy, i understand that but he is still using the modification and its been months sense i heard from him
i know vbulletin has the ability to stop there forum software from running, i just don't know how they can do that without us seeing the code
the problem is i done a project for 300 dollars, the dude sent me a paypal receipt, so i thought everything was well, he wound up changing the amount to 25 dollars before it got sent to my paypal... and i have already sent him the project.
i wan't a way to do this with out actually hacking his site, i just wan't to stop my script from running, i don't want to do this in a way thats going to make him mad because he's still telling me he's going to pay
i think him changing the amount on me before it wen't to my paypal says that he was trying to screw me over
from now on im not giving out anything till i see the full amount in my paypal, because i learned that paypal receipts can be fake
when your making forum modifications or anything else like that people want to actually see it running before they buy, i understand that but he is still using the modification and its been months sense i heard from him
Re: is there a way to stop a script if a client don't pay
well, even if there might be some way to do it sadly it sounds like you are out of luck since you already sent him the project.
you can't magically add something to code he already has.
this sucks but i guess the moral of the story is make sure you have your money for sure next time ?
you can't magically add something to code he already has.
this sucks but i guess the moral of the story is make sure you have your money for sure next time ?