Skip to content

Instantly share code, notes, and snippets.

@NickCraver
Last active January 5, 2023 11:36
  • Star 102 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save NickCraver/c9458f2e007e9df2bdf03f8a02af1d13 to your computer and use it in GitHub Desktop.
Some bot/crawler fun on Stack Overflow. 10 hours of fun, to be precise.
private static readonly string[] tenHoursOfFun =
{
"https://www.youtube.com/watch?v=wbby9coDRCk",
"https://www.youtube.com/watch?v=nb2evY0kmpQ",
"https://www.youtube.com/watch?v=eh7lp9umG2I",
"https://www.youtube.com/watch?v=z9Uz1icjwrM",
"https://www.youtube.com/watch?v=Sagg08DrO5U",
"https://www.youtube.com/watch?v=5XmjJvJTyx0",
"https://www.youtube.com/watch?v=IkdmOVejUlI",
"https://www.youtube.com/watch?v=jScuYd3_xdQ",
"https://www.youtube.com/watch?v=S5PvBzDlZGs",
"https://www.youtube.com/watch?v=9UZbGgXvCCA",
"https://www.youtube.com/watch?v=O-dNDXUt1fg",
"https://www.youtube.com/watch?v=MJ5JEhDy8nE",
"https://www.youtube.com/watch?v=VnnWp_akOrE",
"https://www.youtube.com/watch?v=jwGfwbsF4c4",
"https://www.youtube.com/watch?v=8ZcmTl_1ER8",
"https://www.youtube.com/watch?v=gLmcGkvJ-e0",
"https://www.youtube.com/watch?v=hGlyFc79BUE",
"https://www.youtube.com/watch?v=xA8-6X8aR3o",
"https://www.youtube.com/watch?v=7R1nRxcICeE",
"https://www.youtube.com/watch?v=sCNrK-n68CM"
};
[StackRoute("admin.php")]
[StackRoute("admin/login.php")]
[StackRoute("administrator/index.php")]
[StackRoute("ajaxproxy/proxy.php")]
[StackRoute("bitrix/admin/index.php")]
[StackRoute("index.php")]
[StackRoute("magmi/web/magmi.php")]
[StackRoute("wp-admin/admin-ajax.php")]
[StackRoute("wp-admin/includes/themes.php")]
[StackRoute("wp-admin/options-link.php")]
[StackRoute("wp-admin/post-new.php")]
[StackRoute("wp-login.php")]
[StackRoute("xmlrpc.php")]
public ActionResult No() => Redirect(tenHoursOfFun[Current.Random.Next(0, tenHoursOfFun.Length)]);
@aveao
Copy link

aveao commented Apr 20, 2016

Needs more http://heyyeyaaeyaaaeyaeyaa.com/

Edit 3 years later:
rip that site. At least https://www.youtube.com/watch?v=eh7lp9umG2I is in the list.

@robsonferr
Copy link

They're taking the hobbits to Isengard.

@dorukayhan
Copy link

No "no undocumented administrative API for you" scheme involving YouTube videos is complete without a rickroll. Could you add https://www.youtube.com/watch?v=dQw4w9WgXcQ to the list of video URLs?

@martincostello
Copy link

Suggested improvement: add [HttpGet] and [HttpHead] so that crawlers get trololled for HTTP HEAD requests too.

@GinoPane
Copy link

GinoPane commented May 23, 2017

@Coeur
Copy link

Coeur commented Jun 22, 2017

@GinoPane: first link is unavailable for me, but second link is available with no interruption until 6:12:24 (please double check)

@benliddicott
Copy link

What are the legal implications of this? Do we need permission from YouTube/Google?

@netly
Copy link

netly commented Sep 20, 2019

What are the legal implications of this? Do we need permission from YouTube/Google?

I don't think there's any implication of this and that we need permission from YouTube/Google, this just redirects the client's url to a YouTube video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment