+ 16
What is the best way to protect a database from spam?
Pls share your thoughts.
8 Answers
+ 7
@Andrew G
Yeah but you can' t block spammers by email because they are not always stupid bots. By the way also me can create spam if i want
+ 6
1. Validate inputs before inserting to the database.
2. Use prepared statements
3. Use a captcha, Google's Invisible reCaptcha is the best.
4. Track the IP address of the submitter, so you can verify later if the same person submitted spams.
+ 5
@Andrew
for number 3, people can use burner emails. I myself use an app to get random emails that last for a short time, then I get another one (called "TempMail" on the playstore)
@Hasan
VPNs, proxies, and TOR can be used to hide IPs and MAC addresses
From a website side of things, its extremely difficult to track users who don't want to be tracked, in many cases you flatout can't
there are counters against every possible means of tracking that a webmaster can deploy
source: as a hobby I study mass surveillance
+ 4
Protecting a database from spam I think is almost impossible but at least you can delete them automatically or manually. anutomatically I do not know maybe you can create something that can handle a series of variables like frequency of accesses or type of sender.
+ 4
Without a human supervision or a kind of A.I. it would be very annoying for non-spammers.
edit: machines are not better than humans yet
+ 3
Pls @Muhammad Aliyu tell us everything
+ 2
Encrypting database with custom scripts (using our own bots)
0
Learn more about sql