Tracking and blocking IP addresses from accessing my marketplace

Hi everyone,

As you scale and your marketplace attracts thousands of daily users, bad people may appear.

We do have a “Ban” function within the admin panel. However, nothing prevents someone from creating another account and create trouble again.

One better solution is to block the person’s IP from accessing the marketplace.

How do you monitor IP addresses connecting to your marketplace?? How do you block the IP address from coming back (and from creating a new account)??

My marketplace is hosted on DigitalOcean.

Thanks in advance!

1 Like

Indeed we do have such infrastructure in place for the hosted version of Sharetribe Go. Such situation happens all the time, it takes quite some time and resource to manage bots and spam!

This is really specific to your own infrastructure. I’m not sure if DigitalOcean offer such service, out of the box, but maybe you could check with them?

Possibly other open-source users will share their own scripts and rules to manage such bad trafic on their own server, so that you can be inspired for your own.

1 Like

Hi @thomasmalbaux

I use Cloudflare to control incoming traffic.

My main questions is where should I look to find the IP address from which users log in into my sharetribe marketplace.

Is there a log of all log ins with the email address and the IP address they logged in from?

Thanks

Thanks for the clarification!

Hmm usually that information is gathered directly from your logs or infrastructure (and you can build rules like “if attempt to log in x times in m minutes then block for d day”).

You can at least find the login IP in the people table, for each logged in user, but this won’t help too much with bots who are trying to sign up. For that, monitoring traffic and logs is the best way to go.

1 Like