fARcRY
fARcRY

Reputation: 2358

How to detect if flash installed from C# for Firefox?

Is there a way to check if flash is installed in Firefox from C# code on the server? For instance when the client browser is IE, you can check
Request.Headers["accept"].Contains ("application/x-shockwave-flash")
but a Firefox request doesnt contain the same header.

Upvotes: 3

Views: 2362

Answers (1)

Rowland Shaw
Rowland Shaw

Reputation: 38130

Given you've tagged this as "server-side" and talk about the client's machine, then you may well be disappointed.

The only way to check this is with code running on the host you're checking (i.e. the client) - of course, you could do this and transmit the answer to the server (to store in the session, for example)

Edit: It's also worth remembering that any headers you receive (or rely on receiving) may be removed by intermediate proxies, or just plain lying (could be a bot)

Upvotes: 5

Related Questions