Im wondering if there is a way so that people Have to visit the my main proxy page before using my proxy.... Im getting 1000's of hits to proxified pages but only 150 or so to my main page. which means people arent seeing my google ads. As in like if someone trys to just surf via the bar at the top they get returned to my main page. then they can start surfing and use the bar then after 24 hours they have to re visit the main page.... I hope this makes sense.
Probably the easiest way would be to set a cookie with an expiration of 24 hours on their first visit. If they don't have the cookie or the cookie is expired, you can redirect them to the homepage.
Something like: function checkCookie() { if(!$_COOKIE['my_proxy_cookie'] || ($_COOKIE['my_proxy_cookie'] <= time())) { setcookie("my_proxy_cookie", time()+86400, time()+86400); header("Location: index.php"); } } PHP: Make sure you include the function in a global file. Then call it on each page of the website before any other output. checkCookie(); PHP:
Do you have a common header file or something similar? Save the function in a file and call it something like: cookefunction.php The first line on each page you will want to: include("cookefunction.php"); Then you can call the function.