Hacker News new | past | comments | ask | show | jobs | submit login
Facebook monitors your alert() usage (opera.com)
31 points by robin_reala on July 16, 2009 | hide | past | favorite | 8 comments



I don't know if this is why they have that, but that would make a pretty decent approach to restricting and slowing down XSS type attacks, if you can override and protect all the native built-in functions.

It should be easy using log analysis to then notice spikes in usage of something, and investigate.

I'm sure there are flaws in my idea, but I think it might work as part of a defense in depth approach.


The fact that they're passing the data back with an image tag instead of an XHR request also suggests the same to me.

If this was some leftover debug code, I wouldn't expect it to be that sneaky.


Speaking of which, I wonder how much time developers worldwide waste by having to manually click OK on alert windows to continue execution? I much prefer console.log();


(You don't necessarily always have access to console.log though...)


There's no reason not to - Safari / WebKit's Inspector is API-compatible with Firebug's console object, and there's always Firebug Lite for other browsers.


For plenty of things GUIs are not the way to go. I know I'm showing my age with this, but the command line / batch environment is so much more productive for many tasks than a GUI based environment.


When ashleyw mentions console.log(), I believe they are talking about Firebug's javascript based logging system.


hehe, yes, I see that now :)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: