Add the following line to /etc/hosts
(remember to undo this):
127.0.0.1 www.gstatic.com
Run a simple server on port 80. Here's a command you can run from bash
:
cat <<EOF | sudo python -
import SocketServer
import SimpleHTTPServer
class CustomHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):