we're calculating the traffic usage of customers with access logs of NGINX / apache. Now a big question came to my mind.
What if I do this:
<?php
file_get_contents( "http://www.speedtest.qsc.de/1GB.qsc" );
?>
The call itself would be a simple GET with just a few bytes / kilobytes, but assuming we have enough memory_limit and max_execution_time, the script would download a 1GB file. This wouldn't be logged at all, right?
Is there any way to track something like I mentioned above?
Thanks in advance
for apache the default log is
the %b represents the
Size of response in bytes, excluding HTTP headers. In CLF format, i.e. a '-' rather than a 0 when no bytes are sentYou could probably use that
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html
for nginx its also default
http://nginx.org/en/docs/http/ngx_http_log_module.html