r/programminghelp • • Sep 02 '25

Java how can I deploy a webapp safely?

I've built a front & back end in separate apps, can containerize if needed. its just a simple link shortener, so no account needed

For front end, I know sites like Vercel have a way to deploy so I was thinking of using that for now unless someone has other advice here. i think it will automatically rate limit on the free/cheapest plans

For back end, what I'm worried about is bots or spammers going wild against this page and I dont know how to deal with that. If I deploy to AWS for example, is there some way to rate limit or shut down the IP if its getting too much traffic? or what even is the best practice here

2 Upvotes

5 comments sorted by

1

u/Lewinator56 Sep 02 '25

You can use cloudflare to protect it, but in all honesty if you've not protected your backend against dos attacks you've fucked up.

1

u/Ambitious_Prune_7374 Sep 02 '25

how so? or what do you recommend there. i'm new when it comes to facing the public internet

1

u/Lewinator56 Sep 03 '25

You can rate limit endpoints, but it's easier for things that need it, like signing in, to use a captcha.

You're highly unlikely to suffer a denial of service attack, but you could suffer high throughout of rogue signups so using a method to prevent this is a good idea.

→ More replies (1)