Use Htaccess File To Disable Downloading Of Anything In The Directory

Aug 10, 2008

I am using a flash media player on one of my domains that streams music. The flash player would be like domain.com/music

The mp3 files are located in domain.com/music/mp3

The flash player just reads the title of the song and displays it in the media player.

I have used htaccess already to disable indexing, but the file name that shows on the media player is the exact name of the mp3, so I'm pretty sure people will be able to easily figure this out and start downloading our music.

What else can I add to htaccess to allow localhost access to the music, to stream with the flash player, but wont allow downloading of the mp3s.

View 3 Replies


ADVERTISEMENT

How To Allow Only One Ip Downloading Files From A Directory At A Time.

Oct 19, 2007

if it is possible to allow only one ip downloading files from a directory at a time.web server is apache , may be with some apache module or if there is some build in configuration can be applied to .htaccess .

View 1 Replies View Related

Downloading A File Off Of A Server

Dec 8, 2007

I have a file in the directory of /backup I want to download a file from that directory to my PC, how would I do this.

View 5 Replies View Related

File Size (content Length) Not Showing When Downloading Files

Jun 30, 2009

When I download a file from my server, only specific extensions are working. This is really annoying since I want to be able to see how much time left to finish a download.

For example I uploaded a video with .vob extension
file.vob --> does not show filesize when downloading

If I rename the same file to different extension:
file.avi --> works fine shows filesize when downloading
file.mp3 --> works fine shows filesize when downloading
file.rar --> works fine shows filesize when downloading
file.mp4 --> does not show filesize when downloading
file.wmv --> does not show filesize when downloading

These are direct download links, not using any download scripts or anything. Why are some extensions displaying the filesize and some not displaying them? I am using Apache 2.x server.

View 2 Replies View Related

Disable Functions In .htaccess

Jun 10, 2009

Is it possible to disable mod_security and open_basedir thru .htaccess if both are enabled in server configuration?

View 3 Replies View Related

Plesk 12.x / Linux :: Downloading Backups To Local Computer - Save File In TAR Format?

Jul 27, 2014

If I try to download a plesk backup to my local machine it saves a file a few bytes in size in .xml.tar.html format

My other non plesk 12 machines correctly save the file in .tar format ....

View 11 Replies View Related

.htaccess Disable Bandwidth Leeching

Sep 21, 2007

I have alot of .swf, .mpeg and other video files. I am afraid that someone is leeching them from me and embedding them on their websites.

I heard I can use .htaccess to specify on what domains the video files can be used. I would like the video files to be viewed on a couple of websites, but nothing else. Is there a way to do it?

Also, can I give a default replace file? For example, if someone is leeching a .swf file from me, they would see a very special .swf that would say "this content is stolen, go to mysite.com to view it" etc?

View 3 Replies View Related

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View 1 Replies View Related

.htaccess Disappears From Directory ..?

May 31, 2008

how can active htaccess files in side my server, every time when i upload any htaccess just disappear from the dir

View 5 Replies View Related

Disable This Error When A Directory Doesn't Exist

May 23, 2009

When i go to a directory that doesn't exist i get this:

Quote:

Apache/2.2.3 (Debian) mod_jk/1.2.18 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 Server

How can i disable it?

View 5 Replies View Related

Apache Nested Directory Permissions Or HTAccess

Apr 9, 2014

Is it possible to lock for example the site down with basic auth and lock a subdirectory of it with a different basic auth?

Example: URL...

<LocationMatch "/*">
AuthType Basic
AuthName "Main Gate"
AuthBasicProvider file
AuthUserFile /etc/accounts
Require valid-user
</LocationMatch>

[code]....

View 1 Replies View Related

Apache :: Htaccess - Silent Redirection From One Directory To Another?

Sep 26, 2013

apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects

View 1 Replies View Related

.htaccess~ File

Oct 4, 2008

There is a .htaccess~ file in the root directory of my server. .htaccess is also in that place. But what is the purpose of that .htaccess~ file?

View 3 Replies View Related

Htaccess File Not Working

Sep 11, 2006

I'm wondering why sometimes my htaccess files don't seem to work, especially when contained within subdirectories. I've got two problematic situations:

(1) I've got a mod rewrite that supposedly works. I put it in a subdirectory like /dbase/stuff/ but the script ignores it like it just isn't there. Permissions don't change anything and they are currently set to 644. It's very simple and only contains the following code: ....

View 0 Replies View Related

Htaccess File Size

Oct 25, 2009

I manage a high traffic website on one of my dedicated servers. It currently serves around 2 million uniques/mo.

In time, due to page changes, around 200 important URIs got a redirect [L,R=301] in the main .htaccess file that's sitting on the root directory.

Redirects are in the form of : person/J/James_Blake_2000/ --> /user/James_Blake/

Thus, the .htaccess file has reached well above 200 lines.

I would like to kindly ask for advice: should I limit the dimension of this htaccess file ?

How do you guys treat these permanent redirects?

View 7 Replies View Related

Php.ini And .htaccess File Permissions

Aug 17, 2008

I'm on a shared FreeBSD server, running Apache with Drupal, and vBulletin.

I had to create a local php.ini file in my public_html folder for Drupal, and another in my forum folder for vBulletin. Now my question is, what should I set the permissions of these files to? Also, what should I set .htaccess permissions to as well?

I'd like to keep them invisible to the public. But, I don't want any problems with Drupal, or vBulletin ether.

I'm used to using Linux and I know how permissions work on a desktop. I just don't know what they do when used on a server. I'm guessing 640, but I'd like to make sure before I change anything.

View 3 Replies View Related

Apache :: What Is HTAccess File

Jan 31, 2013

what is .htaccess file? use of this file?

View 6 Replies View Related

Htaccess Redirect (from A File With Spaces)

Nov 26, 2006

I'm trying to redirect from a filename that contains spaces using .htaccess

for example, I want to redirect /test 2.html to http://example.com

I've tried:

ReDirect /test 2.html http://example.com
ReDirect /test 2.html http://example.com
ReDirect /"test 2".html http://example.com
ReDirect /'test 2'.html http://example.com
ReDirect /test%202.html http://example.com
ReDirect /"test 2.html" http://example.com
ReDirect /'test 2.html' http://example.com

And a few others. I can't seem to get the syntax right, and always end up getting an internal server error message. Anyone have any ideas?

View 6 Replies View Related

Upload A .htaccess File In FTP And It Disappears

Feb 11, 2008

I upload a .htaccess file in FTP and it disappears, i checked with SHELL file is there but cant see in ftp ,

View 2 Replies View Related

Apache :: Removing PHP For One File Only In HTAccess

Jun 11, 2014

I'd like to change /comp.php to /comp but I have only found articles on how to remove .php completely and I don't want to do that, only want to do it for this one file.

View 5 Replies View Related

Apache :: How To Redirect To Different File In HTAccess

Jan 27, 2013

So, I would like my htaccess file to check if a file exists and if it doesn't then redirect to another file. How would I go about doing this?

View 5 Replies View Related

Apache :: Write HTAccess File For A 301

Apr 15, 2013

I have learned some bits of regular expressions for simple scripting, writing a .htaccess file is, uh, syntaxically daunting.

THE CASE :

The URLs of my site used to be of the form [URL] ... . They are now of the form [URL]......

I am trying to perma-redirect (301) the old format (affiche_fiche.php) to the new format (fiche.php) using a .htaccess.

So far all I have achieved is a hatred of punctuation signs. What's the correct syntax to have a .htaccess that does the redirect ?

THE CONTEXT : The format change took place more than six months ago, but the Google Webmaster Tools still spits 450 problems a day with 404s on URLs using the old format. I had assumed that these would just fade away, but they don't. So I guess that 301'ing them is cleaner. Or would be, if I understood the syntax.

View 7 Replies View Related

Apache :: HTAccess File Is Not Working?

Feb 20, 2014

I want to upload the custom 404 error page and .htaccess file to my website but .htaccess is not working on my web server. I have use the correct file name and try it many time but no result I have found. My web server is Microsoft IIS 7.5

View 2 Replies View Related

How To Disable Apache Generating Coredump File?

Jun 28, 2008

Recently I use suphp with fcgi on my cPanel Server. When I apply RLimitCPU for each vhost, I see that some scripts that potentially overloading the server is killed. I think this is a good way to control load on server.

But each time a php process killed, apache create a coredump files under users's directory that is large enough to fill user's space limit.

How to disable apache from creating core dump files?

I have try:

- set "ulimit -c 0" on users and root
- set "/proc/sys/fs/suid_dumpable" to 0
- set /etc/security/limits.conf with 0 limit for core parameter
- set CoreDumpDirectory to specific directory ...

View 12 Replies View Related

Use .htaccess File To Allow Access To Zip Files Only From My Script

Feb 18, 2007

I have download manager script that I use for my customers to download products right after the purchase.

Script generates download link that looks like this:

http://www.yourwebsite.com/download/...582921B&p=1840 (where 2YY6582921B is receipt number that is different with each purchase).

All products are placed in one folder. This folder can not be seen in above download url, but can be accessed thru browser and files can be downloaded that way without paying for them.

Can I use .htaccess and if yes how, to protect all product files the way that they can not be accessed directly by visiting url thru browser (in case somebody will find the correct url), they should be allowed for access only for my download manager script.

View 3 Replies View Related

How To Use Wget Command To Download .htaccess File

Jul 1, 2008

I just want to use wget command to transfer data from a shared host to dedicated server.Anybody knows how to set wget to download the .htaccess file and keep the file/directory's permission the same as they used to be on the old server?
I only knows these:wget -b -c -r -l0 -np -nH -t0

View 5 Replies View Related

Apache :: Can Have HTAccess File Which Create Links

Mar 16, 2013

In my personal website at URL.... I have the top like 'index.php?pg=profile', 'index.php?pg=home' or 'index.php' (without any querystring), 'index.php?pg=diary' etc. I am looking to see if I can have .htaccess file which can make me create links like

index.php/
index.php
index.php/home
index.php/profile
index.php/diary

write an .htaccess for the same?

View 1 Replies View Related

Sh: /ifconfig: No Such File Or Directory

Feb 14, 2008

recently I found these commands in my error_log, can someone tell me is my plesk linux centos box under attack?

sh: /ifconfig: No such file or directory
sh: /ifconfig: No such file or directory
sh: /ifconfig: No such file or directory
sh: /uptime: No such file or directory
sh: /id: No such file or directory

I have very strong password and no one can access my box, how do they exe those commands and how can I prevent it?

View 12 Replies View Related

Disable File Attachment Scanning & Extractinig At MailScanner

Mar 9, 2007

My main goal was stopping incomingo spam.. and MailScanner is doing a great work on that.. but, it is taking too much time extracting and scanning attachments... does anyone know how to disable scanning the attachments ?

This is my top output from MailScanner running:

Code:
12:10 3 MailScanner: extracting attachments

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved