Tracking source code information

I have a web application that I have created using ruby on rails, is there a way that I can track which users of my web application have viewed the source code of a specific page?

Upvotes: 0

Views: 32

Answers (1)

MrTheWalrus
MrTheWalrus

Reputation: 9700

No. The application just sends the source to a browser, has no way of knowing whether or not the user of that browser decided to look at the source code for the page, or just view the rendered page as normal.

This isn't specific to Rails - it's just a fact about how webpages work.

JavaScript-based tracking code (Google Analytics et al.) can tell you about users whose browsers render the page (assuming they don't block it in one of various ways), but still won't be able to tell if the user viewed the source.

Upvotes: 1

Related Questions