Jump to content

Check referer and update counter in cookie ?


ponik

Recommended Posts

Hi,

 

I\'m not sure how achieve this:

 

---

if referer in ( some regexps ):

 

if not known userID:

create cookie and increment count for that domain

endif

 

if count for domain > 10:

offer to user to set homepage=our page (redirect)

endif

 

endif

---

 

Can this be done by some kind of apache modules or is better to use some proxy. We need this for static pages also. So it\'s not issue of application.

 

Thanks for your notion.

 

Pony

Link to comment
https://forums.phpfreaks.com/topic/345-check-referer-and-update-counter-in-cookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.