# Code to detect and redirect if flash plugin is installed?

**URL:** <https://forum.kirupa.com/t/code-to-detect-and-redirect-if-flash-plugin-is-installed/326166>\
**Category:** web dev\
**Created:** [November 27, 2011, 12:46pm UTC](https://forum.kirupa.com/t/code-to-detect-and-redirect-if-flash-plugin-is-installed/326166 "2011-11-27T12:46:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trent\_Boswell](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@Trent\_Boswell](https://forum.kirupa.com/u/Trent_Boswell)\
**Post date:** [November 27, 2011, 12:46pm UTC](https://forum.kirupa.com/t/code-to-detect-and-redirect-if-flash-plugin-is-installed/326166/1 "2011-11-27T12:46:03Z")

</div>

I have two versions of my website, flash and non-flash.

Does anyone know the code to detect if a user’s browser has the flash plug-in installed, and then automatically redirect them to a different webpage if they do?

The way I plan to do it is to send everyone to the non-flash website by default, but immediately, if flash plugin is detected, then they are redirected to the flash website.

Thanks in advance guys.
