E
E
Eugene2020-10-16 14:04:14
Node.js
Eugene, 2020-10-16 14:04:14

How to protect your site from bots and hacks?

Hello. Help with a task.
There is a site where users can post ads for the sale of their goods.
We want to make it possible for them to publish without registration and authorization .
How to protect the site from spam and all kinds of attacks? Let's say we use recaptcha and track a large number of requests per minute. If a user makes more than 100 posts per minute, we block it. Is this enough or am I missing something? Thanks for the detailed answer.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2020-10-16
@toohappy

1. You can do it: captcha + local ID=login+pass+random+timestamp with storage in datastorage (it can be created at any time even without user participation).
But moments arise: the phone is without confirmation => the phone will be indicated by someone else just so that someone is constantly spammed with calls => the site will be closed quickly due to complaints.
2. About the rest, in terms of security, this is setting up firewall rules and web server rules.

V
Vladimir Korotenko, 2020-10-16
@firedragon

Without registration, this is shit and not a client. Sorry for the vocabulary. The woodpecker is not a client at all. Spamer is also not a client. And in the end you will weed out 80%

M
MrGroovy, 2020-12-21
@MrGroovy

We want to make it possible for them to publish without registration and authorization.

If you are going to make a bulletin board without registration, then you will have to face not only spam, but also flooding.
You need a captcha and detailed customization of user input (For example, limiting an ad to 450 characters).
If a user makes more than 100 posts per minute, we block it. Is this enough or am I missing something?

You miss the possibility that your site can be hacked. For example, through XSS, vulnerabilities will steal the administrator's session cookie. You can check for vulnerabilities with special Legion, OWASP ZAP or Sparta scanners. Of the online options, special resources are suitable, vulnerability scanners that can check most vulnerabilities at each level. https://metascan.ru or https:// detectify.com/ They will show XSS vulnerabilities, the possibility of SQL injection and network stack vulnerabilities.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question