Score:0

How to log incoming POST requests

mz flag

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

Score:2
us flag
JM John avatar
mz flag
Thanks - Any Drupal 7 ideas? This module is Drupal 8 & above.
Score:0
mz flag

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

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.