lilcurts101
Newbie
- Nov 9, 2013
- 40
- 1
For my website to work, I will need the page to relock after the page has be refreshed is this possible?
And what networks use this method?
And what networks use this method?
How is your website set up? Wordpress?
How do you get the offers?
Here's what I did:
I get the offers for the page I lock from the API of a CPA network. The network identifies users from their IP and you can also get the lead count of an IP.
Normally you would get the leads for 24h and if there is one than no content lock will show up anymore.
I didn't want that so I check the lead count of an IP for all time and make a counter in a database. So if a user generates a lead he can view the page but at the same moment the counter for this IP is set to the same value as the lead count. Whenever a user goes to that page it checks (if the lead count is higher than 0) if there is a counter for that IP and only shows the locked content if the lead count is higher than that counter.
Because it sets the counter to the same value at the moment the user views the content the check will fail if the user reloads the page and he will get the locker again.
Hope that was somehow understandable
Cheers,
Mo
Ok but does the link adress change after clicking? Or is it always the same?
You could just add an JS file with an event handler for clicking the link which replaces the link with some kind of loading gif for 15 seconds or jsut some text like "you have to wait 15 seconds for the next content".
That would propably be the easiest way but not completely safe if the link is always the same
Edit: Just came to my mind that you propably don't want to have the people wait for 15 seconds for the next content or does this not matter?