File: Spam-Prevention.md

package info (click to toggle)
libtoxcore 0.2.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,992 kB
  • sloc: ansic: 70,235; cpp: 14,770; sh: 1,576; python: 649; makefile: 255; perl: 39
file content (12 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
 
Situation 1:
Someone randomly goes around the DHT sending friend requests to everyone.

Prevented by:
Every friend address: 
[client_id (32 bytes)][nospam number (4 bytes)][checksum (2 bytes)] 
contains a number (nospam).

The nospam in every friend request to that friend must be that number.

If not it is rejected.