Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8215317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:44:39+00:00 2026-06-07T11:44:39+00:00

Just finished an awesome book on Web App Security, and I’ve got a security

  • 0

Just finished an awesome book on Web App Security, and I’ve got a security question. I’d like to allow users to share videos on my website. I don’t have a problem restricting them to youtube and vimeo embedding, saves me the storage anyways, but I don’t want untrusted code running on site.

So, what’s the best way to do this?

FYI, I’m using express.js on top of node.js and couchdb for a database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:44:41+00:00Added an answer on June 7, 2026 at 11:44 am

    What untrusted code are you referring to? You can store references to external videos in your database, and just use them to embed a player in your views. No code from Youtube or Vimeo needs to run on your server to accomplish this. The Youtube API also enables you to allow users to upload videos directly to Youtube from the browser, without proxying through your webserver. This means users can upload and embed youtube videos without any 3rd party code on the server side of your application.

    https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading#Browser_based_uploading

    To create your links from a video id, you could simply use:

    var directLink = "http://youtube.com/watch?v={0}".format(videoId);
    var embedLink = "http://youtube.com/embed/watch?v={0}".format(videoId);
    var shortLink = "http://youtu.be/watch?v={0}".format(videoId);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just finished reading Jon Skeet's article about events and delegates and got a question.
I just finished my app and would like to deploy it. But how to
Just finished reading this blog post: http://www.skorks.com/2010/03/an-interview-question-that-prints-out-its-own-source-code-in-ruby/ In it, the author argues the case
Just finished up my first mvc4 app. Everything is working great until I deploy
I just finished reading the HTML5 Developer's Cookbook and have a question. I've read
I just finished looking at this question: https://stackoverflow.com/questions/753122/which-cloud-computing-platform-should-i-choose But, I am not certain what
I just finished the Netbeans introduction to Hibernate tutorial ( http://netbeans.org/kb/docs/web/hibernate-webapp.html#01 ) and I
I just finished expanding my Palindrome Tester, made in C#. To allow for phrases
I just finished my first assignment using arrays and I feel like it is
i just finished my first view in my iPhone app and i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.