Script To Check If User Has Completed Content Locker

PatJustPat

Senior Member
Joined
Apr 26, 2019
Messages
817
Reaction score
361
Hello,

I am planning a CPA locker that is a bit unusual. For that, I need to verify if the customer has actually filled out the locker before allowing him to access his reward.

Was thinking of getting a programmer to do this, but for the start I need a cheap solution. One that will not be bypassed by every idiot :anyway:

I don’t know the first thing about coding, but I guess it would work something like this:

- User enters site, and a cookie is given out

- User completes locker, cookie gets updated with something unique, like some hash. This gets saved in an SQL database.

- User is sent to “Get Your Reward” URL. Script checks if user is marked in database as successful -> Reward is given out.

Seems simple enough. Can I code something like this myself or at the very least outsource it for a few bucks, or am I thinking way to simple here?
 
Yes you can code it yourself. Assuming you want this done in php, you'll need to use three things.
1: PHP
2: HTML
3: jQuery

If you are on wordpress or something similar you'll need to use its API, if core then functions. You can do this even without Cookies by saving the IP & Browser Agent in database for that user and going through it everytime to check if he qualifies for the reward or not.
 
If you are using OGAds they have a postpack.php (pingback) system which should do what you are looking for. Of course you need to hire a dev or do it yourself.
 
PHP or Node would be your friend. And like others already said: Check if the provider has a webhook (oldschool: postback) feature. You could enter your url that thet send you data to. Do protect this with some form of key that you can change so not everyone can spam this, if they find out.
 
Back
Top