Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on an IT team in my company and I would like to block youtube to users. I don't want to just deny access to the whole youtube domain, but only to replace the .flv/.mp4 request with the one that I want. That way, if someone tries to watch youtube videos on the network, He'll get a video of why using our expensive bandwidth for pleasure is a no-no.

I thought about using a packet manipulation program and just replace the video ID with something that I want, but I didn't manage to do it right.

share|improve this question
Heh. That's actually kinda clever. – ceejayoz Apr 5 '12 at 15:41
What firewall are you using? – Wesley Apr 5 '12 at 15:52
I'm using TMG Forefront 2010 Server. – iTayb Apr 5 '12 at 15:59
up vote 2 down vote accepted

I think your best bet is to use a transparent proxy to intercept and redirect requests to your video. It's not for the average Joe but being on an IT team I have faith you can make it work with the existing howtos and tutorials. I did, and I'm just a hobbyist admin/programmer :).

I accomplished it with Squid and iptables.

Edit: What I did was test out this upside down internet setup[0]. Once I'd familiarized myself with that process I tweaked the scripts to accomplish what it was I wanted to accomplish. I think for your purposes all you would need to modify is the redirection script. Hope that helps.


share|improve this answer
Can you add more details. Some links to existing howtos you mentioned. You say you did something with squid, please add some details. – Zoredache Apr 5 '12 at 16:45
Expanded to include the link that I used to get up and running. – Jeff Welling Apr 5 '12 at 16:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.