in reply to Client IP question

First, what do you mean by "rented scripts"? Perl scripts aren't something you can just lend out and expect to get back ;)

The only real way to do this is use some form of authentication. Anything in the HTTP headers can be spoofed, as can the caller's IP with enough trickery.

You need to explain the situation and problem case more clearly (ie. provide more details).