39

It was expected to see an error page when index.html was appended to https://stackoverflow.com/:

enter image description here

But when I change the URL to https://stackoverflow.com/index.php, it is redirecting to YouTube

Why is that redirecting to a YouTube page rather an error page?

Browser: Google Chrome

Edit 1 :

All communities' index.php pages redirect to a YouTube video.

Stack Exchange shows a valid error page:

enter image description here

Why is such redirection added?

8
  • this is not a bug, this is by design
    – rene
    Commented Jul 30, 2016 at 8:02
  • :) saw that first time..thought to ask in meta
    – Tharif
    Commented Jul 30, 2016 at 8:03
  • It's a joke. Why wouldn't it be added?
    – jonrsharpe
    Commented Jul 30, 2016 at 8:07
  • @jonrsharpe we would love to see these videos on every error page :)
    – Tharif
    Commented Jul 30, 2016 at 8:08
  • 3
    However, still waiting for YouTube embed feature in Aviation :)
    – anshabhi
    Commented Jul 30, 2016 at 9:22
  • 2
    @utility that's punishment for you thinking you can write websites like these with PHP.
    – Glorfindel
    Commented Jul 30, 2016 at 9:38
  • :) @Glorfindel how come that be a punishment ! dont joke
    – Tharif
    Commented Jul 30, 2016 at 9:42
  • 2
    Is this legal? I assume you have permission from Google/YouTube? Otherwise why not just tarpit them?
    – Ben
    Commented Mar 19, 2019 at 22:54

1 Answer 1

67

That is by design.

Nick Craver, one of the Site Reliability Engineers/Developer (Chief Maintenance Mode), tweeted about this a while a go: Just deployed Stack Overflow. Have fun, bots:

He basically added Redirect responses for the most common attempted pages often used by hackers and script kiddies. For the redirect target he decided to choose a video that keeps them occupied for a while ...

For search-ability matters here are the routes:

  • admin.php
  • admin/login.php
  • administrator/index.php
  • ajaxproxy/proxy.php
  • bitrix/admin/index.php
  • magmi/web/magmi.php
  • index.php
  • wp-admin/admin-ajax.php
  • wp-admin/post-new.php
  • wp-admin/options-link.php
  • wp-admin/includes/themes.php
  • wp-login.php
  • xmlrpc.php
6
  • 1
    thats a great idea..but redirecting to non SO site is not a good idea though
    – Tharif
    Commented Jul 30, 2016 at 8:12
  • 68
    Most important thing is to get them away from Stack Overflow as quickly as possible without consuming resources. Redirecting them to YouTube who can handle the load easy is the best option. I don't see why hackers should have a great user experience.
    – rene
    Commented Jul 30, 2016 at 8:16
  • 1
    thats a good reason @rene .. thank you for taking note of my question :)
    – Tharif
    Commented Jul 30, 2016 at 8:16
  • 1
    Just to add to rene's answer, you can get the code below: gist.github.com/NickCraver/c9458f2e007e9df2bdf03f8a02af1d13 Commented May 23, 2017 at 12:08
  • 2
    This is a terrible idea.
    – Ben
    Commented Mar 19, 2019 at 22:45
  • 1
    It is a great idea
    – Mesalcode
    Commented May 16, 2020 at 14:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .