Answer the question
In order to leave comments, you need to log in
How to catch traffic?
Hello. There is a need to control the traffic of downloading files by the user. For example, the user starts downloading a file from the site, and the software on vds counts the number of "meters" that the user with a certain ip downloaded. And all this needs to be integrated with php to get statistics. What software to use? Can eat examples of implementation? I apologize for the crappy presentation of ideas.
Answer the question
In order to leave comments, you need to log in
Look here about nginx - www.lexa.ru/nginx-ru/msg13743.html
You only need to replace virtual hosts with custom IPs.
And to parse the log is a matter of technology.
It's easier just using PHP to find out the weight of the file that the user downloads and add this data to the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question