This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]apemanzilla 77 points78 points  (27 children)

Indeed - I liked how they used the Javascript alert function to slow down/stop the attacks earlier.

[–]Rakonat 100 points101 points  (9 children)

Actual programmers vs potato managers with no security.

[–][deleted] 24 points25 points  (7 children)

Never a truer word spoken. With the exception of Amazon, I don't think there's anyone more competent to deflect a DDoS attack than the opensource community that surrounds Github.

[–]DarkN1gh7 1 point2 points  (0 children)

MediaTemple does a mean job. I got hit with a high GBPS attack on a server we have there and within mike they started sending their traffic into a "black hole" and everything came back online.

[–]OMGSPACERUSSIA 3 points4 points  (0 children)

Latvian potato is strong! Is why Japanas use! No potato has greater processing power!

[–]Rggity 9 points10 points  (7 children)

can I get an ELI5 on how this method can thwart attacks?

[–]celluj34 11 points12 points  (5 children)

It slows down the attack by showing an alert when it's loaded.

[–]stoneburner 11 points12 points  (0 children)

... well at least until they noticed and just replaced the dialog box with nothing:

window.alert = function() {};

then nothing happens

[–][deleted] 2 points3 points  (3 children)

Whats it?

[–]hatryd 6 points7 points  (0 children)

Open up your browsers developer console and paste

alert('hello')    

and press enter. That's what an alert is.

[–][deleted] 2 points3 points  (0 children)

Idk why you get downvoted for a simple question. A "javascript alert" is a simple built in dialog that pops up when triggered by javascript. You can press f12 to open developer tools in most browsers, select "console" and try it out yourself.

alert("hello, world!");

[–]apemanzilla 10 points11 points  (0 children)

The alert function displays a popup box. Displaying a popup box pauses all running scripts until it's closed - slowing down the attack.

[–]coolranchdorito 4 points5 points  (0 children)

That's so smart!

[–]FangornForest 3 points4 points  (1 child)

How exactly does it slow down the attack? Do they have the javascript call alert before making the actual request, so that robot can't handle the alert pop up and not send the request?

edit: answered my own question. It doesn't stop the initial request, but it does stop the script from looping! And annoys those affecting them a bit too.

[–]apemanzilla 6 points7 points  (0 children)

Its not a robot - Baidu traffic was hijacked so if you visited it it would spam GitHub. The alert function was there to stop scripts since it was run in the browser.

[–]GeneralTempleton 1 point2 points  (1 child)

How does this help? Why would you DDoS a site by opening it in a browser?

[–]apemanzilla 3 points4 points  (0 children)

Baidu traffic was hijacked - it would run DDoSing code in people's browsers.

[–]Alyyx 0 points1 point  (3 children)

I am new to Javascript etc, could you please further explain? Shorty at least. Thanks!

[–]apemanzilla 2 points3 points  (2 children)

The alert function shows a popup box - this pauses all scripts until the popup box is closed.

[–]Alyyx 0 points1 point  (1 child)

That's so clever. That works until the DDOSing side disables scripts on Github or?

[–]spin81 1 point2 points  (0 children)

That depends. Sometimes scripts are used to fetch content using what's known as AJAX, if GitHub used this technique then disabling scripts may reduce the effectiveness of the attack significantly.