# Wordpress flash detect

**URL:** <https://forum.kirupa.com/t/wordpress-flash-detect/301872>\
**Category:** programming\
**Created:** [December 17, 2009, 3:22am UTC](https://forum.kirupa.com/t/wordpress-flash-detect/301872 "2009-12-17T03:22:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [December 17, 2009, 3:22am UTC](https://forum.kirupa.com/t/wordpress-flash-detect/301872/1 "2009-12-17T03:22:00Z")

</div>

Hi

I have a wordpress blog and a flash site. I want to show the blog only to those who don’t have flash.

I am trying to put the javascript inside the already existent index.php from wordpress but without success.

this is the wordpress index.php

```php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>

```

I need some way to detect if flash exists.

If yes redirect to another URL, and if not keep the same php info. Any idea?

Thanks
