Live data from Hacker News

HTTP Headers For Fun & Profit

loopj.com

41–50 of 53 posts

Re: HTTP Headers For Fun & Profit

#43
I set this one up a while ago. The header is on most of our sites.

curl -I webmaster.appstate.edu

    X-Robot-3: Which of the following would you most prefer? A: a puppy, B: a pretty flower from your sweetie, or C: a large properly formatted data file?

Re: HTTP Headers For Fun & Profit

#46
post #26

Earlier quoted context omitted.

Haha, brilliant!

I don't get it - What am I missing?

    Server: '; DROP TABLE servertypes; --
It's a mysql injection. If someone was scraping headers and logging them and wasn't validating the input -- and their database was named "servertypes" -- it would delete the database.

Re: HTTP Headers For Fun & Profit

#47

Earlier quoted context omitted.

From reddit.com: User-Agent: bender Disallow: /my_shiny_metal_ass User-Agent: Gort Disallow: /earth

Better still: http://www.last.fm/robots.txt Disallow: /harming/humans Disallow: /ignoring/human/orders Disallow: /harm/to/self

OMFG. That is hilarious!

Made my day

Re: HTTP Headers For Fun & Profit

#48
post #20

I know Wordpress.org sends a header called X-Hacker or something, telling people who see the header to look at their jobs page and tell them about the header.

It's not that hard to check and it seems they don't. But they have this other X-nc header: $ curl -I wordpress.org HTTP/1.1 200 OK Server: nginx Date: Fri, 07 Dec 2012 12:15:43 GMT Content-Type: text/html; charset=utf-8 Connection: close Vary: Accept-Encoding X-nc: HIT luv 139

The X-nc header is related to the cache. The GP is correct in that these headers used to be sent on wordpress.org and wordpress.com, but it appears they are now only sent on automattic.com

Re: HTTP Headers For Fun & Profit

#50
My favorite is Zappos.com

    % curl -I www.zappos.com
    HTTP/1.1 200 OK
    Server: nginx/1.1.17
    Content-Type: text/html; charset=utf-8
    X-ZFC-Metadata: KiMIExILCgNuaWQSBDU5NjQSEgoGbGF5b3V0Eghob21lcGFnZQ==
    X-Powered-By: Ponies!
    X-Varnish-TTL: 60m
    X-Varnish: 251047185 251045936
    X-Cache-Hits: 87
    X-Varnish-Host: varnish04.zappos.net
    X-Varnish-ID: drupal
    X-Core-Value: 1. Deliver WOW Through Service
    X-Recruiting: If you're reading this, maybe you should be working at Zappos instead.  Check out jobs.zappos.com
    X-UUID: ecbb72d2-40c0-11e2-b1b3-0010184bda34
    Cache-Control: max-age=2004
    Date: Fri, 07 Dec 2012 23:19:43 GMT
    Connection: keep-alive
"Powered by Ponies!"
Post reply on HN