Page 1 of 1
Require Click on Ad
Posted: Sun Mar 19, 2006 8:18 am
by waradmin
I am looking for a way to require a user to click on an Ad (either on the page directly or in an iFrame) before displaying the next page. Is there a way in PHP (or even JavaScript) that will detect that a user clicked on a link before redirecting them to the next page?
I am working on a download script and want to require the user to click on a google adsense ad for example.
Thank you. I have searched but found nothing useful.
Posted: Sun Mar 19, 2006 9:25 am
by nickman013
So basically before they go to another page on your site, you want the page to view a ad first, then redirect to the next page?
If thats the case I would do it like this.
Make a ads.php page that has the content you want them to view before going to the next page.
And then on all of the links on your site write then going to ads.php, but...
for example.
Code: Select all
//this is going to go to home.
<a href=ads.php?redirect=home>click here to go home</a>
Then on the ads.php page have some sort of redirection that redirects the user in how many seconds or what ever.
On ads.php use $_GET to get the page to redirect to.
Sounds confusing but really easy.
Posted: Sun Mar 19, 2006 11:07 am
by timvw
This is probably the way i'd go to solve the problem...
Code: Select all
<?php
if (!isset($_SESSION)) {
session_start();
}
if (!isset($_SESSION['ads'][md5($_SERVER['REQUEST_URI'])])) {
// display advertisement
echo '<a href="?action=seenad">move to actual content..</a>'
exit;
}
if (isset($_GET['action'] = 'seenad')) {
$_SESSION['ads'][md5($_SERVER['REQUEST_URI'])] = 'seenad';
}
// display actual page
?>
Posted: Sun Mar 19, 2006 4:49 pm
by waradmin
Im looking for something like this:
http://dlurl.net/?7lVvh
I looked at the code above and before messing with it i thought i would post a link of a demo.
Posted: Sat Mar 25, 2006 2:43 am
by sierradwyer
I am glad I came across this site. I am hoping that maybe somebody can help me with this same situation.
I am running an image host site and it's 100% free. People are able to create accounts and manage there images and so on.
The problem is... I am paying for hosting of this site, and I am not getting anything in return. Don't shout at me for wanting a small price just to cover my hosting costs at least.
If I am able to force the people that host images on my site to click on the google ads before it displays there picture with links, then I figure and I can actually get something in return.
Here is my site -
Game-Image.com 
Posted: Sat Mar 25, 2006 4:11 am
by s.dot
that will get you banned from google adsense quickly

Posted: Sat Mar 25, 2006 4:12 am
by s.dot
but erm i suppose if you want to get banned you could password protect the page, make them click on an ad and the password would be the x word in paragraph x.
Posted: Sat Mar 25, 2006 6:01 am
by sierradwyer
I'm not entirely sure what you are saying because I am not good with php or javascript.
My question now is..... can this be done?
Posted: Sat Mar 25, 2006 8:31 am
by timvw
Congratz, you actually got me to go read the adsense policy... Still wondering if i should report that site.
Posted: Sat Mar 25, 2006 11:36 am
by sierradwyer
Posted: Sat Mar 25, 2006 1:07 pm
by Moocat
You also might want to make the rules more prominent. Reporting people's IP addresses for misusing your website is a waste of your time as well. I would suggest you put a rules link or short description of what is allowed to be uploaded on the upload page. Grey on grey text is also not the best color scheme, I might suggest making your text darker.
Posted: Sat Mar 25, 2006 2:34 pm
by John Cartwright
uhh, have you read their terms of service?
Prohibited Uses. You shall not, and shall not authorize or encourage any third party to: (i) directly or indirectly generate queries, Referral Events, or impressions of or clicks on any Ad, Link, Search Result,
Back to the topic at hand please..