Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Andy Lai

By: a guest on Mar 27th, 2010  |  syntax: Python  |  size: 2.61 KB  |  views: 119  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # --BEGIN-- videocache config for squid
  2. url_rewrite_program /usr/local/bin/python /usr/share/videocache/videocache.py
  3. url_rewrite_children 30
  4. acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback
  5. acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
  6. acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
  7. acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
  8. acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
  9. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
  10. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
  11. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
  12. acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
  13. acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
  14. acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
  15. acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
  16. acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
  17. acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
  18. acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
  19. acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/
  20. acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
  21. acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
  22. acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
  23. acl videocache_allow_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com
  24. acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
  25. url_rewrite_access deny videocache_deny_url
  26. url_rewrite_access allow videocache_allow_url
  27. url_rewrite_access allow videocache_allow_dom
  28. redirector_bypass on
  29. # --END-- videocache config for squid