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 8716005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:58:30+00:00 2026-06-13T05:58:30+00:00

I am hosting videos on my website. In my code I link to the

  • 0

I am hosting videos on my website.
In my code I link to the path of the video like this.

file: "video/some_random_video.mp4"

This works fine because the location of my .html page and the video folder is in the same directory.
Placing the videos here allows anybody to look at the .html source and find the path to where I keep all of my videos essentially allowing them to download them all.

Is it possible to place the videos back a few directories possibly in my root directory such that I can link to them but others cannot have access to them?

This is not working.

file: "./video/some_random_video.mp4"

I am trying to find any way to link to the videos on my server but disable users from checking the source and finding there location.

Any input is appreciated. Thanks!

  • 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-13T05:58:31+00:00Added an answer on June 13, 2026 at 5:58 am

    To go backwards thru your directory, you need to use

    file: "../../video/some_random_video.mp4"
    

    (two dots, not one)

    Optionally, you could try using .htaccess to prevent public access to your video folder

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my problem. I have on my hosting an avi video file and
Consider the following embed code of this video from Vimeo - Popular video hosting
I'm using Rackspace's CDN for hosting all my website's media (images and video). Every
I am hosting some video on my web and I would like to make
We are building an image and file hosting website and we will save these
I have cheap Apache PHP hosting. I have a mp4 and or Ogg video
Possible Duplicate: Database Deployment issues I followed the steps in this video: http://www.asp.net/iis/videos/developing-and-deploying-in-a-shared-hosting I
I have some video embedding code generated for one of the videos on a
I created a video hosting site I would like to create a form on
I'm trying to add three videos on my website. I'm using jw-player. It works,

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.