Hi Rick,

You can alter URLs using a .htaccess file on the server. e.g. When a person goes to "http://my.site.com/1234/video.html"; they see "http://my.site.com/show"; in the browser URL box. I've never done it but I'm sure someone here could comment on this approach.

I'm thinking there's probably some kind of dance the server code can do where if a person tries to access the video using that final URL directly, it would refuse. Or maybe the server would simply return a 404. Not sure.

Do you receive the emails of purchasers? Could you ask them to enter it before watching? That wouldn't prevent abuse but at least you could track likely suspects.

Phil Davis


On 11/26/16 6:44 PM, Rick Harrison wrote:
Hi Mark,

That sounds good except that the user is purchasing from me through a third 
party
and I have no good way of validating.  I can attach a number to the URL but that
same number will be on every unit purchased and visible to the user.  I can’t 
make
it unique for every unit purchased.  That’s why I’d rather jump a couple of 
URL’s and
have the last one hidden or unknown to the user.

Other ideas?

Thanks,

Rick

On Nov 26, 2016, at 9:09 PM, Mark Schonewille 
<m.schonewi...@economy-x-talk.com> wrote:

Instead of hiding the URL, you could write a script that creates a key 
depending on user credentials and a unique number, say the time, and add it to 
the URL. The code should follow some some rules, e.g. the last part of the code 
could be a hash. Encrypt the information in your app and decrypt it on the 
server. If the user credentials are correct and the unique code is correct and 
hasn't been used yet, send the video, and reject the request otherwise.

Kind regards,

Mark Schonewille
http://economy-x-talk.com <http://economy-x-talk.com/>
https://www.facebook.com/marksch <https://www.facebook.com/marksch>
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

--
Phil Davis


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to