0

We are seeing a lot of POST requests by bots to /register pages or pages with forms. This is likely an attempt to make an SQL injection.

What's the best way to log the full POST request and see the payload data?

Cheers

2 Answers 2

2

You may use HTTP Request Logger module.

1
  • Thanks - Any Drupal 7 ideas? This module is Drupal 8 & above.
    – JM John
    Apr 13, 2023 at 23:28
0

If you are Nginx, below answer is the easiest way to log POST requests including data being carried.

https://stackoverflow.com/questions/4939382/logging-post-data-from-request-body

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.