Author Topic: #$&$)@()$ Server Admins  (Read 1985 times)

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
#$&$)@()$ Server Admins
« on: January 10, 2008, 12:48:36 PM »
So I'm about to roll out a new site design.  I want to do a little bit of link validation before doing the switch over.  So I started writting a basic crawler that'll request the page, report the status, and then check that page for links and follow them.  Nothing super special.  Well our fucking server admins are retards.  They have a 404 handler page but it doesn't actually send the 404 header.  Instead it sends the 200 OK header.

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Re: #$&$)@()$ Server Admins
« Reply #1 on: January 10, 2008, 12:55:27 PM »
What? That's not what it's supposed to do?

;)

Probably because the 404 page is OK.
This signature intentionally left blank.

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: #$&$)@()$ Server Admins
« Reply #2 on: January 10, 2008, 01:21:40 PM »
Well at least their weak arse security worked in my favor.  Using PHP I was able to locate the file and get its contents.  I then copied & pasted it into an editor, added
Code: [Select]
Response.Status = "404 Not Found" to it (the 404 file is ASP) and then used PHP to put the new contents in the file.  And bingo we now have a proper 404 page.