Change banner as http_referer and limit clicks on this banner [closed]

2

PHP code for banner I need.

Let REFERER be detected. "if it comes from the specified site" Shows Banner X Case Contract BANNER Y.

And I need you to have a setcookie + allowed click limits. (Within 30min) eg:

So that the banner is not being repeated after the user clicks a single

    
asked by anonymous 11.08.2015 / 22:41

1 answer

0

You can use http_referer of the global variable $ _SERVER - $_SERVER['HTTP_REFERER']

link

With this you can use cookies to make all your logic to limit the clicks and banners that have already been viewed.

If you are not familiar with the cookie: link

    
12.08.2015 / 17:40