In windows we have Base Filtering Engine which helps applications to monitor network traffic. Is there any similar service which runs in Linux too. Something similar to a packet filtering service. I want to filter http links based on mime types contained in their headers.
That would be iptables (built into the kernel). But it is not always a good idea to do application layer stuff with iptables. Maybe squid in an option for you. It can run as a reverse proxy.