filter extension

Hello I’m try to sniff http requests, but I don’t want to see any kind of pictures like gif, jpg ,png …
What is the earliest stage that I can block those file extensions ? the pcapfilter?