Node view abuse control: What exactly is a "user"

taite11 - December 2, 2008 - 04:19
Project:Radioactivity
Version:6.x-1.0
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

On admin/settings/radioactivity/node_radioactivity it says ..."This setting determines the amount of time to store click information per user"...

How does it determine who is a user? For example, is it based on the currently logged-in user or IP address or cookie?

Thanks. :) Cool module.

#1

skiminki - December 2, 2008 - 08:17
Title:What exactly is a "user"» Node view abuse control: What exactly is a "user"
Version:6.x-1.0-rc1» 6.x-1.0

The current implementation is as follows: (radioactivity_node_user_node_view())

  • If the click comes from authenticated session: use session id to determine user, i.e., discard node click if that node has already received a click from that session
  • If the click comes from unauthenticated session: use session id and hostname, i.e., discard node click if that node has already received a click from that session OR a click from that ip

From any clicks, session id and user ip are always recorded amongst other bookkeeping data. Sessions are determined by session cookies.

This scheme is not fool-proof in that, e.g., anonymous users behind single NATed gateway are all considered as one. However, the scheme is probably good enough when you use reasonable node click durations, e.g. 10 minutes.

If anyone comes with a better solution, hopefully non-module-specific abuse control, I'm eager to reconsider the implementation.

#2

taite11 - December 2, 2008 - 18:22

That sounds pretty good to me. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.