Question

  • Creator
    Topic
  • #3968073

    How to stop Malicious POST requests

    by echida ·

    I have a django rest backend and a vueapp client, I’m sending POST requests from the client side to django database, how can I limit users so they cant send the request unless they are on my website?
    So far I’ve found out about csrf tokens but not sure how to implement it here. Is there a way to solve this?

You are posting a reply to: How to stop Malicious POST requests

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #3968083

      Have them log in as well as “SANITIZE YOUR INPUTS.”

      by rproffitt ·

      In reply to How to stop Malicious POST requests

      This is a well discussed area but at no time do you use the user data (via post or otherwise) directly to the usual SQL code.

      As to CRSF why not use that? I never bothered but used a simple login so we know who is adding or using data. I’ll stop here since a google about CRSF TUTOTIALS seems well down.

Viewing 0 reply threads