• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Cloudflare as CDN for a website with FV Player Pro

Foliovision › Forums › FV Player › How to … › Cloudflare as CDN for a website with FV Player Pro

  • plast 2 years, 10 months ago

    Hello,

    We’ve been using FV Player Pro on our website to stream videos for a few months now, we’re using our own dedicated server with Apache2, no external hosting, one domain for website + videos.

    The only external service we’re using is Cloudflare to protect us from DDoS attacks – we have set up Cloudflare as CDN for our website meaning all traffic to domain.com and http://www.domain.com is proxied via Cloudflare.

    All was working fine until several days ago when it suddenly stopped – now after clicking “play” videos do not start and the information “hlsjs-lite: network error” is visible in left top corner of the video window.

    After debugging the problem in browser console it was obvious that Cloudflare started to block our traffic:

    Access to XMLHttpRequest at ‘https://www.cloudflare-terms-of-service-abuse.com/stream.ts‘ (redirected from ‘https://www.domain.com/1280x720_000.ts‘) from origin ‘https://www.domain.com‘ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    We’ve added CORS on our side meaning we’ve added crossdomain.xml file in document root directory containing
    <?xml version=”1.0″ ?>
    <cross-domain-policy>
    <allow-access-from domain=”*” />
    </cross-domain-policy>

    plus Header set Access-Control-Allow-Origin “*” in apache2 virtualhost configuration.

    It changed nothing – still does not work.

    There is a possibility that we are missing something that has to be done on Cloudflare configuration – I’d be grateful for any hints.

    For the time being we’ve turned CF off and everything works fine right now, but we lack ddos protection and we’re exposing our public ip.

    If the configuration that we’re trying to achieve is not possible due to CF limitations or else I was thinking that we could try to set up our streaming in a subdomain on different IP for example streaming.domain.com and this IP/subdomain would not be proxied via CloudFlare, whille our main site domain.com would be proxied/protected. However I’m missing to see any options in wp-admin area allowing us to configure player/videos to work in a subdomain rather than main domain – is it even possible to set up such configuration? Please let me know.

    Bests, Lukasz

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mária Stašová 3 years ago
    Avatar photo

    Hello Plast,

    we’re sorry to hear you’re facing these issues.

    We never recommend using Cloudflare CDN (especially the free one) for videos, as it is against their ToS. Thus, Cloudflare probably blocked you because of violating this rule. They’ve launched Cloudflare Stream for videos a year ago. It works just fine with FV Player, but there are much cheaper options of equal quality out there.

    Sadly, FV Player cannot be configured in such an way. So, your best options right now are using a different CDN for your videos altogether, or using Cloudflare streams.

    Thanks,
    Maria

    Martin 3 years ago

    Hello Plast,

    you should be able to host your videos on a subdomain without issues. FV Player will have no issues with that and all you have to do is to replace the video links: https://foliovision.com/player/tools/migration-wizard

    So where you used https://domain.com/videos/my-video/index.m3u8 you will then use https://streaming.domain.com/videos/my-video/index.m3u8

    I will check with Maria regarding what she was trying to say:

    Sadly, FV Player cannot be configured in such an way.

    Thanks,
    Martin

    plast 3 years ago

    Thank you for both answers.

    Martin – please correct me if I am wrong – from what I understand by using this migration wizard tool I can change main domain of all my videos and other related files, but it has nothing to with main site domain (domain that wordpress is using), right? So after using this tool my main website domain will remain domain.com, however every existing link to video/stream/m3u8 will be changed to streaming.domain.com, and every new video I add in the future will also have url streaming.domain.com/blahblah, even tho I will be using wp-admin area within domain.com, yes?

    Martin 3 years ago

    Hello Plast,

    yes, the tool only changes the FV Player video and subtitle links.

    However if you were adding new video using wp-admin by uploading it to the Media Library, these will not be affected and will still use your main domain.

    Perhaps you could be using CDN Enabler plugin to rewrite all of your MP4 files to your video CDN domain. But I think that CDN would have to be pulling these video files through Cloudflare as it’s affecting all your main domain traffic.

    Thanks,
    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
Reply To: Cloudflare as CDN for a website with FV Player Pro



Please Sign in or Register to upload files.

Related Posts

  1. Cloudflare vs. Minify: CloudFlare WordPress Performance Test

    Cloudflare vs. Minify: CloudFlare WordPress Performance Test

  2. Cloudflare Workers video hosting “How To”

    Cloudflare Workers video hosting “How To”

  3. Video Checker showing status: Check failed

    Video Checker showing status: Check failed

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!