FWTube: Forced to Watch an Embedded Youtube Video

FWTube: Forced to Watch an Embedded Youtube Video


This is the PHP Version of my FWTube Wordress Plugin.


Easily hide partial or all of your premium content from your users until they finished watching an embedded Youtube video.


  • Suitable for: landing page with free giveaway, learning site, site with freemium content, and much more…
  • Your premium content will be hidden until user  finished watching your Youtube Video
  • Hide partial or all of your content in any page or post
  • Hide anything you want from your post or page
  • Your content won’t show in Source View
  • Content will stay hidden if user deactivate javascript or cookie
  • Set your video to autoplay
  • Remove the Information bar or Control bar from the Youtube Player
  • You can change the message text and format to your likes
  • Easy to setup, less than 5 minutes to setup.
  • Just add 3 lines of code.
  • Customizable message
  • Cross browser


- PHP 5.x
- Basic knowledge writing in PHP


  • FW-Tube may not work together with cache system (plugin, CDN, cloudflare, etc).

Inserting FWTube To Your Code

<em><?php include "inc/fwtube.php"; ?>
  <script type="text/javascript" src="//"></script>
  <script type="text/javascript" src="assets/js/jquery.cookie.js"></script>
  Your regular content

  <?php $FWTUBE['id'] = "zmr2I8caF0c";  // YOU CAN OVERRIDE THE YOUTUBE ID HERE ?>

  <strong><?php if (fwtube_is_unlocked()){ // START HIDDEN CONTENT ?></strong>

   <p>Your premium content</p>

  <strong><?php } ///////////////////////////// STOP HIDDEN CONTENT ?></strong>

  Your regular content

Looking for something else?

I have created a few items in CodeCanyon that you may want to take a look:

If you have an idea for a website/plugin or you want something to be made, don’t hesitate to contact me.


Flag Counter