Jump to content

[SOLVED] Hide url from users?


L

Recommended Posts

Hey

I am putting up streaming section on my site, but I don't want people to know the urls of the videos since they can just look them up in the source of the html. Is there anyway I can encrypt them or hide them so no one can see the url?

For example like on youtube.

 

Thank you!

~L

Link to comment
Share on other sites

@resage;

so

rewrite (*.flv) $_REFERER/$1

will make it so all .flv can only be accessed through my main site?

 

@legohead6

Yah,

When I embed it it shows the whole url...so I need to find out how to encrypt it or hide it somehow.

Link to comment
Share on other sites

yeah, the reference is

%{HTTP_REFERER}

 

ReWriteRule ^/stuff/(*.flv) %{HTTP_REFERER}/videos/$1

 

 

 

in your links, you would use /stuff/whatever.flv

but you would put the files in /videos

 

this may need some tweaking.

 

there is probably an even better way by simply testing to see if referer is your site.

 

Link to comment
Share on other sites

I'm still experimenting with htacces so this is what I put:

ReWriteRule /(*.flv) %{HTTP_REFERER}/multimedia/$1

...

and when I put it in it gave me a 500 server error..help?

try

#If you didn't already turned on the RewriteEngine. Otherwise you can leave it out
RewriteEngine On
RewriteRule /(.+\.flv) %{HTTP_REFERER}/multimedia/$1

Link to comment
Share on other sites

ha, awesome...it worked!

And with multiple domains would it just be putting the rewrite two times?

RewriteCond  %{HTTP_REFERER}  !infinitevortex\.net/
RewriteCond  %{HTTP_REFERER}  !other\.net/

Thanks for everything!

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.