I do not know the right term for this but say I want to have Ads on my web sites where there advertisers need to pay whenever users click on the web sites. How should one go about doing this?
My approach is to link the Ad to a script file that will record the click in a database and redirect the user to the advertiser's site. I see one weakness with this; the same user can click the Ad multiple times within a timeframe and multiple clicks will be recorded.
So to avoid that, I am thinking of setting a COOKIE for each visitor and each visitor's click will be recorded only once in a day. (But what if cookie is disabled).
What is the right way to set up an advertisement system like this on a web site? Can you share your methodologies?
You could record the user's ip address in cache or in the database to prevent multiple clicks in a one day period.