icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old August 10th, 2007, 12:41 AM   #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!
__________________
GamingHybrid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 10th, 2007, 2:48 AM   #2 (permalink)
Race Surpass
Super #1
 
MarkRH's Avatar
 
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
Which converts domain.com/videos/myvideo.divx to domain.com/videos/divx.php?video=myvideo.divx

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!
MarkRH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks MarkRH for this great post!
GamingHybrid (August 10th, 2007)
Old August 10th, 2007, 3:12 AM   #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
__________________
GamingHybrid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On