FLASH SALE!Up to 50% OFF
See deals
WP-Script Logo

Porn Video Hosting: Where to Host the Videos of Your WordPress Site

November 30, 2026Updated 21 min readWordPress

"My MP4 stops playing with a network error, then the whole site stops responding. Large uploads fail with error 413, even with PHP limits set to 1 GB." Site owners who put their own videos on WordPress ask me this often. Your WordPress server is the wrong place to store and play video files. It is built to send pages. A video host is built to send video. Move the files to a host that accepts adult content in its terms, and play them on your site with an embed or a video address.

WP-Script is made by PandaCorp, a company that has existed since 2016. Our themes and plugins run on adult video sites all over the world, and this guide covers every way to host their videos: on WordPress, on a video host, and how to automate the upload.

TL;DR

  • First, check that you need to host videos at all. Tube embeds and sponsor videos cost you zero bandwidth.
  • Hosting on your WordPress server works for a few short clips and little traffic. For a real video site, it fails: every visitor downloads hundreds of MB from your server.
  • Error 413 is not a PHP problem. It comes from the web server or the proxy in front of PHP. Your host has to raise that limit.
  • Read the terms of the video host before you upload. Bunny writes that it accepts adult content. YouTube, Vimeo and Dailymotion forbid it. Most others do not mention it.
  • My pick for most sites is Bunny Stream: it encodes for free and charges by GB delivered. Cloudflare Stream is the other video host to look at, and it charges by minute.
  • In RetroTube, paste the embed code of the host, or its video address in the Video URL field to play it in your own player.
  • For member uploads, turn off the file upload and ask for a link or an embed code.
  • To automate, use the official bunny.net WordPress plugin, an offload plugin, or the API of the host to import files from an address.

First: do you need to host videos at all?

You host video files in one case: videos you own, because you shot them or bought a license. If you want to fill a site with videos you do not own, do not copy their files. There are two legal ways, and both cost you zero bandwidth:

  • Embed the player of a tube. The tube plays the video from its servers. WPS Mass Embedder imports these embeds in bulk.
  • Publish sponsor videos: trailers of paid sites, played from the sponsor's server, with your affiliate code.

I explain both, with the bandwidth math, in Scrape Adult Content for WordPress? Import It With Embeds Instead.

If you want a site built on sponsor videos and live cams, without anything to host, look at Jimp. It is fully managed and automatic: Jimp builds the site, publishes new sponsor videos and plays them from its own servers for fast playback. The affiliate codes on the site are yours, so the sponsors pay you, not Jimp. Your first site is free. Jimp does not take videos you upload yourself, so for your own videos, read on.

Why your WordPress server fails with video

A page of your site weighs a few hundred KB. A video weighs hundreds of MB. YouTube recommends 5 Mbps for 720p video, so one 10-minute video in 720p is about 375 MB per full view. 10,000 full views a month is 3.75 TB sent by your server.

A shared hosting plan is not sized for that. While a visitor watches, their download takes a connection and bandwidth on your server for minutes. With a few visitors at the same time, the videos stop with a network error, and the pages of the site wait in the same queue. That is why the whole site times out, not only the video.

Hosts that know this write it. A host that tells you "our servers are not designed for streaming" is not refusing to help: it is telling you where the problem is.

Hosting the videos on your WordPress server

If you have a few short clips and little traffic, keeping them on WordPress is fine. Here is how to do it right, because most problems come from four settings and one encoding option.

The upload limits, in the order they block you

An upload goes through several layers. Each one has its own limit, and the smallest wins:

LayerSettingDefaultWhat you see when it blocks
Nginx (web server or proxy)client_max_body_size1 MBError 413 Request Entity Too Large
ApacheLimitRequestBody1 GB since Apache 2.4.54, unlimited beforeAn error page from the server
PHPupload_max_filesize2 MBWordPress says the file is too big
PHPpost_max_size8 MB, must be larger than the upload limitThe upload fails without a clear message
PHPmax_execution_time and max_input_time30 secondsA long upload stops halfway

WordPress shows the smaller of the two PHP limits as your maximum upload size. You can see it in Media > Add New Media File, and all the server values in Tools > Site Health > Info > Server (rows Upload max filesize, PHP post max size and PHP time limit).

The upload screen of the WordPress media library, with the line Maximum upload file size under the upload areaThe upload screen of the WordPress media library, with the line Maximum upload file size under the upload area

Tools > Site Health > Info > Server in WordPress: the rows PHP time limit, Upload max filesize and PHP post max sizeTools > Site Health > Info > Server in WordPress: the rows PHP time limit, Upload max filesize and PHP post max size

Raising the PHP limits does not fix error 413. The 413 comes from Nginx or from the proxy of your host, before PHP sees the file. On shared hosting, you cannot change that setting yourself: ask your host for its upload limit at the web server level. And even with every limit raised, the upload is only half of the problem. The server still has to send the file to every visitor.

Encode the file for the web

A video that plays from your server needs two things:

  • H.264 video and AAC audio in an MP4 file. It is the format that every browser plays. WordPress plays mp4, m4v, webm, ogv and flv files by default.
  • The index at the start of the file. An MP4 stores its index (the "moov atom") at the end of the file by default. The browser then has to download much more before it can start or jump to a moment. The faststart option of FFmpeg moves it to the start.

With FFmpeg, one command does both:

ffmpeg -i my-video.mov -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -movflags +faststart my-video.mp4

Your server must also accept "range requests": the browser asks for one part of the file when the visitor jumps to a moment. Most servers do it by default, and a server that does it answers with the header Accept-Ranges: bytes.

Play the file in RetroTube

In the Video information box of a video, paste the address of the file in Video URL, or click to pick it in the media library. RetroTube plays mp4 and webm files there, and you can add one file per quality in Resolutions (240p to 4K) for a quality switch in the player.

The Video information box of RetroTube in the video editor: the Video URL field filled with a video address, the Resolutions fields and the Video embed code fieldThe Video information box of RetroTube in the video editor: the Video URL field filled with a video address, the Resolutions fields and the Video embed code field

If you use WPS Player, it plays these files with your logo and your ads. Its pre-roll and pause ads work on MP4 files.

The same video played by WPS Player, with its controls and progress barThe same video played by WPS Player, with its controls and progress bar

The advertising options of WPS Player: the Pre-roll and Mid-roll in-stream ad fields, both marked works on mp4 onlyThe advertising options of WPS Player: the Pre-roll and Mid-roll in-stream ad fields, both marked works on mp4 only

My advice: keep this for a few clips, not for a video site. If your traffic grows, you will move the files anyway, and moving 500 videos later is harder than starting on a video host.

Hosting the videos on a video host

A video host stores your files, encodes them in several qualities, and sends them to your visitors from servers all over the world. Your WordPress server only sends the page.

Read the terms before you upload

This is the step most people skip, and it is the one that costs the most: if a host closes your account, you lose every video at once. I read the terms of the main hosts on November 26, 2026:

HostAdult content in the termsWhat it is
Bunny Stream (bunny.net)Accepted, if legal in Slovenia and in each US stateVideo host: encoding, player, delivery
Cloudflare StreamNot mentioned. The terms forbid unlawful content and say Stream can be used to host or stream contentVideo host, priced by minute
Cloudflare R2, Backblaze B2, DigitalOcean Spaces, Amazon S3Not mentioned. They forbid illegal content and non-consensual imageryFile storage only: no encoding, no player
Mux, api.videoNot mentioned, but they can remove content they find "obscene or otherwise objectionable"Video hosts for developers
YouTubeForbidden (its nudity policy)Video platform
VimeoForbidden (its guidelines)Video platform
DailymotionForbidden (its terms of use)Video platform

The Adult Content section of the bunny.net acceptable use policyThe Adult Content section of the bunny.net acceptable use policy

Vimeo's community guidelines: Vimeo does not allow pornography or other sexually explicit contentVimeo's community guidelines: Vimeo does not allow pornography or other sexually explicit content

"Not mentioned" is not "accepted". A host that does not name adult content can still decide later that your videos break a vague rule. Bunny is the only host of this list that writes, in its own terms, that it accepts adult sites. That is why it is my first pick. Whatever host you choose, keep a copy of your original files on your computer or in a storage you control.

Bunny Stream

Bunny Stream is the video service of bunny.net. You upload a video, it encodes it in several qualities and gives you a player and an embed code.

  • Encoding is free (pricing).
  • Storage: $0.01 per GB per month in the main region, more if you copy your videos to other regions.
  • Delivery: from $0.01 per GB in Europe and North America on the standard network, $0.005 per GB on the volume network.
  • $1 minimum per month, and a 14-day free trial.

The Bunny Stream prices: free encoding, storage from $0.01 per GB and delivery from $0.005 per GBThe Bunny Stream prices: free encoding, storage from $0.01 per GB and delivery from $0.005 per GB

The $1 monthly minimum of bunny.netThe $1 monthly minimum of bunny.net

With the 375 MB example above, 10,000 full views a month is 3,750 GB: about $37.50 on the standard network in Europe or North America, or about $18.75 on the volume network. Each quality you keep adds to the storage.

Cloudflare Stream

Cloudflare Stream works the same way, but it charges by minute of video, not by GB:

The Cloudflare Stream prices: free upload and encoding, $5 per month for each 1,000 minutes storedThe Cloudflare Stream prices: free upload and encoding, $5 per month for each 1,000 minutes stored

Cloudflare Stream: $1 for each 1,000 minutes deliveredCloudflare Stream: $1 for each 1,000 minutes delivered

With the same example, 10,000 full views of a 10-minute video is 100,000 minutes: $100 a month, plus the storage. The price does not change with the quality of the video. Note also that on Cloudflare, video must go through Stream or another paid product: you cannot put your MP4 files behind the free plan of Cloudflare and let it cache them.

The Cloudflare terms for the developer platform: unlike most Cloudflare products, Stream can be used to host or stream contentThe Cloudflare terms for the developer platform: unlike most Cloudflare products, Stream can be used to host or stream content

File storage with a CDN

Cloudflare R2, Backblaze B2 and DigitalOcean Spaces store files. They do not encode and they do not give you a player: you encode your MP4 yourself (the FFmpeg command above) and play it with your own player.

  • Cloudflare R2: $0.015 per GB per month, and no fee for data sent to the internet.
  • Backblaze B2: $6.95 per TB per month, and free data sent through partner CDNs, bunny.net among them.
  • DigitalOcean Spaces: $5 per month for 250 GB of storage and 1 TB of data sent, CDN included.

This is the cheapest way to store a large library. It is also the most work, and none of these three writes that it accepts adult content.

Which one I would choose

Your situationMy pick
Most sites with their own videosBunny Stream: adult content accepted in writing, free encoding, price by GB
Short videos watched many times, or you already use CloudflareCloudflare Stream: price by minute, the same for every quality
A very large library, and you encode yourselfBunny Storage, or a storage with a CDN, after reading its terms
A few clips and little trafficYour WordPress server, set up as above

Play a hosted video in RetroTube

You have two ways to put a video from a host on your site. Both use the Video information box of the video.

Embed code of the hostVideo address in Video URL
Where to paste itVideo embed codeVideo URL
Which player plays itThe player of the hostThe player of your theme, or WPS Player
Your logo and your ads in the playerNoYes, with WPS Player
SetupCopy and pasteFind the MP4 or HLS address of the video at your host
  • The embed code is the iframe the host gives you for each video, for example a player.mediadelivery.net/embed/... address at Bunny, or a .../iframe address at Cloudflare.
  • The video address can be an MP4 file or an HLS playlist (an address that ends in .m3u8, which the player reads in small pieces and in the quality that fits the connection). Bunny gives a playlist.m3u8 address for each video (storage structure), Cloudflare a manifest/video.m3u8 address (own player). RetroTube recognizes .m3u8 addresses, and WPS Player plays them with a quality switch.

A RetroTube video page playing a video from an outside address: Big Buck Bunny (Blender Foundation, CC BY)A RetroTube video page playing a video from an outside address: Big Buck Bunny (Blender Foundation, CC BY)

The same RetroTube video page on a phoneThe same RetroTube video page on a phone

The pre-roll and pause ads of WPS Player are marked "works on mp4 only" in its settings. If you sell these spots, give WPS Player the MP4 address of the video, not the HLS one.

Videos sent by your members

RetroTube has a video submission form for your members, in Appearance > Theme Options > Membership. A member can send a video address, an embed code, or a file. A file sent by a member lands on your WordPress server, in your uploads folder, with the same limits and the same bandwidth problem as your own uploads. The form accepts MP4 files only, up to your PHP upload limit, and RetroTube shows your current limits next to the option.

The Membership options of RetroTube: Enable video submission, with the upload limits of the server shown in its descriptionThe Membership options of RetroTube: Enable video submission, with the upload limits of the server shown in its description

My advice: turn off the file upload and keep the link fields. In Video submit settings, switch on Enable Video URL and Enable Video Embed, and switch off Enable Video File Upload. Your members host their videos where they want and send you a link. You can also set each field as required or optional there.

The Video submit settings of RetroTube: Enable Video URL and Enable Video Embed switched on, Enable Video File Upload switched offThe Video submit settings of RetroTube: Enable Video URL and Enable Video Embed switched on, Enable Video File Upload switched off

The RetroTube video submission form seen by a member: the Video URL and Iframe / Embed code fields, and no file fieldThe RetroTube video submission form seen by a member: the Video URL and Iframe / Embed code fields, and no file field

The limit: if the value of your site is exclusive videos uploaded by your members, a link is not enough. You then need an upload that goes straight from the member's browser to the video host, like the direct creator uploads of Cloudflare Stream or the presigned uploads of Bunny Stream. That is custom development: no WP-Script theme does it today. The full options of the form are in the RetroTube video submission doc.

Automate the upload to a video host

Uploading videos one by one in the dashboard of the host is fine for 10 videos. For 500, automate it. There are three ways, from the simplest to the most flexible.

1. The official bunny.net plugin for WordPress

The bunny.net plugin is made by bunny.net and used on more than 10,000 sites. Next to its CDN features, it has an Offloader that moves your media files to Bunny Storage, and a Stream module to upload videos and embed them from WordPress.

The bunny.net plugin on wordpress.org, with its list of features: CDN, Offloader and StreamThe bunny.net plugin on wordpress.org, with its list of features: CDN, Offloader and Stream

2. An offload plugin for your media library

An offload plugin copies the files of your media library to a storage, and rewrites their addresses so that visitors download them from there:

  • WP Offload Media Lite: Amazon S3, DigitalOcean Spaces and Google Cloud Storage. Files are uploaded to your server first, then copied, so your upload limits still apply.
  • Advanced Media Offloader: Amazon S3, Cloudflare R2, DigitalOcean Spaces, Backblaze B2, Wasabi and other S3-compatible storages.
  • Media Cloud: Bunny, Amazon S3, Cloudflare R2, Google Cloud Storage and DigitalOcean, with video encoding through a Mux account.

These plugins move files. They do not encode them: encode your MP4 before you upload it.

3. The API of the host: import from an address

If your videos are already online (on a server, a storage, a link from your studio), you do not need to download and upload them again. Both video hosts can fetch a file from its address:

  • Bunny Stream: fetch video, a POST request to https://video.bunnycdn.com/library/{libraryId}/videos/fetch with the address of the file.
  • Cloudflare Stream: upload via link, a POST request to .../stream/copy with the address of the file.

The Bunny Stream API documentation: the Fetch Video requestThe Bunny Stream API documentation: the Fetch Video request

The Cloudflare Stream documentation: upload a video from a link with the copy requestThe Cloudflare Stream documentation: upload a video from a link with the copy request

For example, with Bunny Stream:

curl -X POST "https://video.bunnycdn.com/library/YOUR_LIBRARY_ID/videos/fetch" \
  -H "AccessKey: YOUR_STREAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://files.example.com/my-video.mp4"}'

The host then sends a message to your server when the video is ready (webhooks of Bunny Stream), and you create the video post in WordPress with its embed code. With WP-CLI (the command line of WordPress), one line creates a draft with the embed code in the field RetroTube reads:

wp post create --post_title="My video" --post_status=draft --meta_input='{"embed":"<iframe src=\"https://player.mediadelivery.net/embed/LIBRARY_ID/VIDEO_ID\" allowfullscreen></iframe>"}'

Files bigger than 200 MB sent from your own computer to Cloudflare Stream must use tus, a protocol for uploads that can resume. Bunny Stream supports tus too.

Protect your files from other sites

Once your videos are on a host, other sites can copy their address and play them at your cost. Both hosts can refuse a request without a valid signature:

What to do now

  1. If your videos are not yours, stop here: use embeds or sponsor videos instead.
  2. Count your videos and your monthly views, and do the math with the prices above.
  3. Open a Bunny Stream trial, upload three videos, and play them in RetroTube with the embed code and with the video address.
  4. In the Membership options of RetroTube, turn off the file upload of the submission form.
  5. Move the rest of your library with the fetch API or a plugin, then delete the files from your WordPress server.

If you are still choosing a host for the site itself, read Adult Web Hosting. If you start from zero, my guide How to Start a Porn Site covers the domain, the hosting and the legal pages.

Sources

FAQ

Can I host porn videos on my WordPress server?

Yes, technically, if your host accepts adult content. It works for a few short clips and little traffic. For a video site, every view downloads hundreds of MB from your server, and the site slows down or stops. Use a video host and keep WordPress for the pages.

Why do I get error 413 when I upload a video?

Error 413 means the file is bigger than the limit of the web server or the proxy, usually Nginx and its client_max_body_size setting. It blocks the file before PHP sees it, so raising the PHP limits does not fix it. Ask your host to raise the limit at the web server level, or upload your videos to a video host.

Which video hosts accept adult content?

Bunny (bunny.net) writes in its acceptable use policy that it accepts adult content, if it is legal in Slovenia and in each US state. YouTube, Vimeo and Dailymotion forbid it. Cloudflare Stream and most file storages do not mention adult content and forbid only unlawful content. Read the terms of a host before you upload, and keep a copy of your files.

Can I use YouTube or Vimeo for adult videos?

No. Both forbid sexually explicit content, and they remove the videos and can close the account.

How do I add a video from Bunny Stream to RetroTube?

Copy the embed code of the video in Bunny Stream and paste it in the Video embed code field of the video in WordPress. To play it in your own player, with WPS Player and your ads, paste its MP4 or HLS address in the Video URL field instead.

How much does it cost to host adult videos?

It depends on your views. With Bunny Stream, a 10-minute video in 720p is about 375 MB per full view, so 10,000 full views is about 3,750 GB: around $37.50 a month on the standard network in Europe and North America. With Cloudflare Stream, the same views are 100,000 minutes: $100 a month, plus $5 for each 1,000 minutes stored.

Does WP-Script host videos?

No. Our themes and plugins play the videos of the tubes, of the sponsors, or of the video host you choose.

Written by

Cédric, Co-founder of WP-Script

Cédric is a co-founder of WP-Script, made by PandaCorp since 2016. He builds the WP-Script themes and plugins with the team, and writes these guides from what our support team sees in the tickets every week.