D
D
Daniil Skatov2016-07-19 22:44:06
linux
Daniil Skatov, 2016-07-19 22:44:06

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

3 answer(s)
A
Alexey, 2016-07-19
@Frost12358

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.

D
Daniil Skatov, 2016-07-20
@Frost12358

Thanks to all!

Z
Zakhar Storozhuk, 2016-07-19
@Phell

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 question

Ask a Question

731 491 924 answers to any question