Skip to content

Instantly share code, notes, and snippets.

@jcleveley-zz
Created November 13, 2012 21:29
Show Gist options
  • Select an option

  • Save jcleveley-zz/4068519 to your computer and use it in GitHub Desktop.

Select an option

Save jcleveley-zz/4068519 to your computer and use it in GitHub Desktop.
tabloid/webapp/static/conf/tabloid.sandbox
# Stop phantomjs blowing up by 403ing on ttf fonts
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} cucumber [NC]
RewriteRule ^.*\.ttf$ - [F,L]
➜ workspace git:(desktop-weather) ✗ curl -I http://static.sandbox.dev.bbc.co.uk/news/dev/fonts/gel-news-icons-v3/gelnewsicons-regular-webfont.ttf
HTTP/1.1 200 OK
Date: Tue, 13 Nov 2012 21:28:08 GMT
Server: Apache
➜ workspace git:(desktop-weather) ✗ curl -I http://static.sandbox.dev.bbc.co.uk/news/dev/fonts/gel-news-icons-v3/gelnewsicons-regular-webfont.ttf -H "User-Agent: cucumber"
HTTP/1.1 403 Forbidden
Date: Tue, 13 Nov 2012 21:28:26 GMT
Server: Apache
Content-Type: text/html; charset=iso-8859-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment