|
|
#1 (permalink) |
|
Bow before Surpass!
Super #1
Joined in Sep 2004
1,542 posts
Gave thanks: 91
Thanked 49 times
|
.htaccess Allow,Deny
Hello,
I've tried, but it isn't the outcome I've wanted. Basically, I want to restrict access to al lfiles in the folder the .htaccess is in. that worked. However, I still want the site files to be able to call the file, just not having anyone remotely call the file. I know about readfile() for php coding, but I just want to be able to use the link ONLY on pages in the server, meaning if someone type (lets say a video file) in a video player, via "Open URL", it would not transfer and thus not play. Also, no leeching or So basically, I was the effect of Deny all, but still allow only the files on the server to call the restricted files (and work). Anyone have the right code for the .htaccess? I know we got those Apache gurus out here!
__________________
Wii Hotspot - Upcoming project! -http://www.wiihotspot.com
Make a cPanel Login Form | Why is my Account Suspended? |
|
|
|
|
|
#2 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,218 posts
Gave thanks: 18
Thanked 86 times
|
Well, I was able to make a .htaccess modification to send a video file to a php file:
Code:
# BEGIN Video <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^videos/([A-Za-z_0-9]*)\.divx$ videos/divx.php?video=$1.divx </IfModule> # END Video The PHP file does send the video to the PC and it does show in temporary internet files as myvideo.divx with the right file type... the player does show buffering.. then starts to play but for only like 10 seconds and dies.. so close LOL!
__________________
|
|
|
|
| This user thanks MarkRH for this great post! | GamingHybrid (August 10th, 2007) |
|
|
#3 (permalink) |
|
Bow before Surpass!
Super #1
Joined in Sep 2004
1,542 posts
Gave thanks: 91
Thanked 49 times
|
Hehe, you are so close! :O
__________________
Wii Hotspot - Upcoming project! -http://www.wiihotspot.com
Make a cPanel Login Form | Why is my Account Suspended? |
|
|
|