When running a website that features a lot of videos, like movie and game trailers for example there are times when you want to protect younger eyes from viewing some of the images that are shown in these videos. YouTube is a great way to host videos but they also have one weakness, they do not offer a way to block children from viewing the videos when they are on your site.
What you need to do this is an Age Gate. You’ll have seen these before on other sites, especially when you try to view videos that have age limits set to them. You are required to enter your date of birth before the video will play. If you want to Age Gate a YouTube video or any video that you are hosting or have a streaming link to then there is a way.
Adding Age Gates to Videos
One way to do this or at least one I have found that meets my requirements is the DarkOnyx2 Web Video platform. What this does is give you control over your videos and allow you to add the Age Gates easily. It also allows you to Watermark your videos and select the type of player you want to use. To do this though you will need to have your own server, have enough FTP knowledge to get files onto that server and then be able to run answer a few questions for the configuration.
The information you will need assumes that you have a MySQL database running as it’s going to install tables into the database for its own use. This means you’ll need to know your MySQL database host, the username and password. If you run into problems instructions can be found here.
The first part of the install is to goto www.darkonyx.com and register. After activating your account you will then need to download the files for your server. Once these are downloaded and unzipped use FTP software (such as FileZilla) to upload the darkonyx folder up onto your server. From there use your browser to navigate to the folder you just copied the files into (it will probably be [your domain].com/darkonyx) and run through the config, this will require you to make a config.php file but the installation will explain what is going to go into there. The config is relatively easy to go through as long as you have the details as mentioned above. Once this has been completed you will need to delete the install folder from your server and you’ll have access to the CMS for your DarkOnyx platform.
Now you will be able to upload video files to your server and using the URL (where the video was uploaded or is streaming from) set them up to use the DarkOnyx player, this will include the ability to set the Age Gate as mentioned. This is now surprisingly easy and now using the player itself you will find you have more control over your videos. You will also be given all embed codes for the videos that you set up. For non-commercial use the player itself and the software is free, but if you want all the functionality available you will need to purchase a business license, this will add watermarking and other functions to your player too. It is only fair to note that there are other players available that can do this, but this was the one I decided to use for this how-two.