Solved

Server Ressource!

Posted on 2001-06-06
6
170 Views
Last Modified: 2006-11-17
Here is the situation:

I made an affiliate program for a search engine.
it logs each searches, all click on the results. We now need a fraud prevention system. I want to log only click that have been made for a given keyword only once per 24h period as well as all clicks within a resonable time (let's say 1 min between each click). So as an exemple,
if a user would search for 'casino' and clicks 2 results then get out of the site.. and come back a few hours later and again, search for 'casino' and clicks 3 other results, none of the 3 clicks would have been recorded, but the first 2 would have been recorded. follow me?!

So I guess I need to use session to do that, along with IP/Cookie.. correct? we got about 100k searches done per day.. so it logs 100k searches, 40k clicks, queries the data base to get some info of the affiliates to put in the DB along with the logging of the searches/clicks .. so that's a hell of a lot stuff being stored into the DB.

My question, what would be the best way to put a fraud protection as mentionned above? Session?
if so.. can you provide me with the basement of such a class? Thanks!
0
Comment
Question by:nfuids
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 8

Accepted Solution

by:
us111 earned 50 total points
ID: 6162810
very small base:)

if ($PHPSESSID)
   session_start($PHPSESSID);
else
   session_start();

0
 
LVL 2

Expert Comment

by:higijj
ID: 6164687
but will this take a lot of ressource if I got 100k searches a day?
0
 
LVL 2

Expert Comment

by:higijj
ID: 6164694
I would rather suggest you go with logging the IP/Time in the DB and check it out along with cookie.

so in a first step, I would check for cookie, if there.. no need to queries the DB, if not, query the DB to make sure the user didn't just delete the cookie.

0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Expert Comment

by:Moondancer
ID: 6419203
It's time to clean up this topic area and that means taking care of this question. Your options at this point are:

1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.

2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

3.  Ask Community Support to help split points between participating experts.  Just comment here with details.

4.  Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there.  We also request that you review any other open questions you might have and update/close them.  Display all your question history from your Member Profile to view details.

PLEASE DO NOT AWARD THE POINTS TO ME.

____________________________________________



Hi Experts:

In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.

Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.

Thank you everyone.

Moondancer :)
Community Support Moderator @ Experts Exchange

P.S.  REGARDING POINTS, Guidelines and more:  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp  
0
 
LVL 5

Expert Comment

by:andriv
ID: 6929738
In the attempt to help clean up abandoned Questions, I will ask Community Support to close this Question. Unless there is objection or further activity, I will suggest to split points between us111 & higijj comment(s) as an answer as soon as possible.

If you think your question was not answered at all, you can post a request in Community support (please
include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

Please do not accept this comment as an answer!

Andriv
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6929772
Thanks, Andriv.

Points have been split.  The other half awaits comments here, this TA.
Points for higijj -> http://www.experts-exchange.com/jsp/qShow.jsp?qid=20286752

Moondancer - EE Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question