1
I'm a web admin, and our website's error reporting is set up to send me emails when an error occurs.
I received about 300+ emails over the weekend, all with similar errors. I want to export a report from the emails that includes only a specific part of the text. Is this doable?
For reference:
[HTTP_HOST] => www.ourwebsite.com
[HTTP_REFERER] => http://www.refererwebsite.com
I'd like to export a list of all of the [HTTP_REFERER]'s
from the list of emails.
I want to rule out that this was an attempted DDOS attack.
Edit: I realize that it might be doable to export this from the PHP superglobal, but I'm not familiar enough with it to know if it will do what I need it to.
What was the purpose of the edit @Gareth ? I don't see any difference whatsoever in the post. Can you please explain? I'm not offended, just confused. – allquixotic – 2016-11-21T21:14:07.147
Just a minor edit to align the code with step 4. – Gaff – 2016-11-21T21:34:27.160