Want more features on Pastebin? Sign Up, it's FREE!
Guest

Andy Lai

By: a guest on Mar 29th, 2010  |  syntax: Python  |  size: 1.77 KB  |  views: 135  |  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 10
  4. acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\? \.youtube\.[a-z][a-z]\/get_video\?
  5. acl videocache_allow_url url_regex -i \.googlevideo\.com\/get_video\? \.google\.com\/get_video\? \.google\.[a-z][a-z]\/get_video\?
  6. 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\?
  7. acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
  8. acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
  9. 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
  10. acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
  11. acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
  12. acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
  13. acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
  14. 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\/
  15. acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
  16. 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)
  17. acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
  18. acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .redtube.com .cdn.dailymotion.com
  19. url_rewrite_access allow videocache_allow_url
  20. url_rewrite_access allow videocache_allow_dom
  21. redirector_bypass on
  22. # --END-- videocache config for squid
clone this paste RAW Paste Data