Networking :: .htaccess And Forced Download Of Certain File Types?
Jun 10, 2009
I tried to force download of certain file types - pdf,doc,jpg - instead of opening them in applications. I used AddType application/octet-stream .pdf and AddType application/force-download .pdf but it doesnt works. Has anybody an idea how to solve this problem?
View 1 Replies
ADVERTISEMENT
Jan 13, 2010
I would like to share some files with my customers. I would like to be able to give them different passwords with different rights. I would like to know which customers have downloaded the files, how many times and from wich ip. I would like to let the customer download a file just a number of times.(optional) I would like to be able to upload from web (optional) And with a polite presentation to the customer.Does it exists? Yes. I'm asking for something better and I hope somebody used it and is still happy with it.
View 2 Replies
View Related
Nov 15, 2010
How to deny download some file types on squid ?
I tried below in my squid.conf
acl blockfiles urlpath_regex -i "/etc/squid/src/blockfiles"
http_access allow localnet freesites !blockfiles
and in my /etc/squid/src/blockfiles
.[Ee][Xx][Ee]$
.[Aa][Vv][Ii]$
.[Mm][Pp][Gg]$
.[Mm][Pp][Ee][Gg]$
.[Mm][Pp]3$
.[Rr][Aa][Rr]$
I still able to download
View 2 Replies
View Related
Sep 1, 2011
I'm using Grsync and I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.
I am using the 'filter' option in the 'additional options' box. I am using the command
Code:
filter='merge /home/tim/Desktop/filter'
and I am attaching the filter file I have written. (I have added the .txt extention to upload it).
I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.
View 3 Replies
View Related
Mar 23, 2011
Ubuntu uninstalled OOo and installed LibreOffice. What a piece of ----! The first thing which showed up: bold, underline, etc don't highlight when selected; next- Open As, Save As don't show USB stick. I've messed with Linux enough--went downtown and purchased Windows 7--had enough of amateurville patting itself on the back and forcing non-refined software on
View 13 Replies
View Related
Apr 9, 2011
I would like port 80 to have a small daemon running on it that detects HTTP traffic and sends a small redirect response, and any other traffic begins streaming data from my VPN daemon. I was wondering if this has already been made, or any kind of technology for detecting types of traffic and allowing you to run multiple types of servers on the same port.
View 4 Replies
View Related
Sep 12, 2010
I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".
#include <rtnetlink.h>
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv[])
{
return 0;
}
The program will demonstrate such type conflicts.
View 3 Replies
View Related
Jun 14, 2011
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.
For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.
At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/
I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.
I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.
View 1 Replies
View Related
Dec 16, 2010
Is anyone here fluent with the usage of the .htaccess file? Is it the way to go to deter search bots or is there a better method? Never mind. I already have a thread about .htaccess here.
View 1 Replies
View Related
Jan 27, 2011
I am running into a very strange problem where my my .htaccess file keep getting deleted.Attempted scenarios ftp upload file.txt rename to .htaccess ftp upload .htaccess ssh - wget url/.htaccess ssh - wget url/htaccess.txt, rename to .htaccess
[Code]...
View 7 Replies
View Related
Jun 15, 2011
I am using Apache with Kerberos security enabled. The http page simply lists the directories contained in /var/www/html. I want to make only one of the directories in the document root secured so that when someone clicks on it, it requires him/her to enter credentials. Right now when I place the .htaccess file in the directory I want to protect, the directory is hidden from the list and the user has to enter the whole path to get authenticated and access the files.
I've tried Options +Indexes which was posted all over the net, but it didn't work.
View 3 Replies
View Related
Sep 25, 2009
I'm not completely new to fedora, but I'm still getting used toWhat programs do I search in the add/remove software. For opening rar file types?
View 10 Replies
View Related
Apr 15, 2010
I hope this is in the right spot. I need some help editing my .vimrc file. I want to edit it so that if I create a .cpp file, it will turn on cindent, and if I create a .asm file, it will turn on regular autoindent and set ft=nasm so Vim uses NASM syntax highlighting. How do I go about doing this?
View 2 Replies
View Related
May 21, 2009
how would i go about taring multiple file types, such as *.doc *.pdf *.txt
i know that i can use the command Code: tar -zcvf filename.tar.gz /location/of/backup *.doc , but how do i include multiple wild cards?
View 2 Replies
View Related
Mar 10, 2010
I looked at my apache2 logs. Code:[Wed Mar 10 01:56:34 2010] [crit] [client 192.168.1.100] (13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable the server is located at /etc/apache2 the default place.
View 1 Replies
View Related
Dec 10, 2010
we're running Apache/2.2.11 (Ubuntu) and trying to set up custom error messages using an .htaccess file that looks like this
[Code]...
When I save this to var/www/ it has no effect (tested on another server but using a shared hosting package it works fine).
View 4 Replies
View Related
Apr 27, 2011
I couldn't help but notice that there are some lines in the default file that resemble those that should be in a htaccess file.
AllowOverride None Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
[Code]...
If I am running multiple virtual hosts, what happens to the default file? When I put my ip into a browser "http://ip.ip.ip.ip" I get a forbidden message. but all URLs point to where they are supposed to... Maybe its because I don't have an index file in the www folder.. (not at the machine, will try it later to see what happens).
View 1 Replies
View Related
Feb 2, 2010
I'm trying to use this guide:
http://ubuntuforums.org/showpost.php?p=3276774
but i can't seem to find or to download AssoGiate so i need something eles to create mime.
View 6 Replies
View Related
May 7, 2010
I want to make vlc the default application for opening avi files.
I tried 'open with a different application', selected vlc and checked the box 'Remember this application for "AVI video" files' (see attached), but the next time I double-click on an avi file it loads in Movie Player.
I've searched the Ubuntu documentation for "file associations" and "default programs" with no success. I'm probably using the wrong search terms, but somewhere, in all the configuration files and tables, there must be a way to assign a particular program to a given file-type.
(If you're wondering why I want to use vlc, it's because, after hours of research and tinkering, I finally got it to respond to my mceusb remote via lirc.)
View 2 Replies
View Related
Mar 6, 2011
I am trying to move files from one folder to another based on their file extension. I can do it with a single extension, but I want to match multiple.
Example:
This works, but I want it to not only match mov, but also mpg, flv, mp4, etc. I would think something like [mov,mpg,flv] would work, but it doesn't.
View 4 Replies
View Related
Apr 17, 2009
What file where holds the information for file opening application preferences?
I have Fedora Core 10 (2.6.27.5) with openoffice 3.0 installed.All of the OpenOffice programs show in Applications>Office drop down window and work fine.
Problem is this: If I double click on a calc spreadsheet file (.ods) then the archive manager wants to open it, and I have to right click and manually select scalc as the program to use. If I double click on an odt text file (.odt), okular opens it. I have to right click and select swriter.
If -- BTW -- I click on an excel (.xls) file, calc will start and open the file.
I would like to change these file application preferences, but can't find where to do it or what file to edit to break the current preferences.
View 2 Replies
View Related
Oct 6, 2010
I am using Ubuntu 10.04 with Gnome 2.30.
I remove the applications which i don't use from main-menu. Now i can not see them from "open with" menu when i right click to a file.
Also it will be very nice if Ubuntu can show me on the "open with" menu the possibilities of applications which can open properly the file type which i want to open. I try to configure with ubuntu-tweak's "file type manager" but it is not possible to configure all of file types. I think Ubuntu's applications must to know which applications has to show for which file types. And i don't know how to do that. I need an application like this : url
I get a new user from the same OS, and i see that the same problem still there... For example many many compressed files, audio or graphic files are not associated with vlc or gimp.
I try to configure from system files of gnome but it is very complicated.
View 2 Replies
View Related
Feb 2, 2011
I need to redirect through a .htaccess file in my root folder. The redirect needs to be done from http://www.department.univeristy.edu/reuir to a different server [url]. I am having trouble in determining the pattern that is required for it to take effect.
View 2 Replies
View Related
Mar 16, 2010
In my nagios server, an htaccess file have been created for it so any time you want to open it, a window opens for you to enter user name and passwords. Now, what I want to do now is to integrate the nagios into a portal that is written in php so that when customers login to the portal, they can access the nagios with out it popping out the user and password windows. What is going to happen is, the password of nagios will be store in an orient database so the users when they try to access nagios true the portal, they will be login automatically.
View 1 Replies
View Related
Apr 23, 2011
I have a site hosted on a cheap hosting company and I need to allow write access to certain users in certain directories, sometimes on a file basis.
Q: how do I do that in a .htaccess file?
I have never used .htaccess although from what I read it looks straightforward but when I try it, I get a "500 server error" even with the example .htaccess file the hosting company suggested I use. (I have informed the host as they require and am awaiting their answer)
The site is automatically set up with a couple of dot file in the root directory when I got it, they are:
.htaccess file
AuthType Basic
AuthUserFile "/home/mydomain/www/www/.htpasswd"
AuthName Limited!
require valid-user
Q: Is there in this something overriding my .htaccess in a bad way? (googling for AuthName shed no light on my problem)
.htpasswd
mydomain:$apr1$vcPc9...$kz4vmtvfznKfFmHktN0CI0
Bill:$apr1$C.FLI...$KmvqrHFt6i/.rMhfREtRV0
I added the user Bill, apparently successfully, the first line and .htaccess were set up by the host.
View 2 Replies
View Related
Jul 15, 2010
Basically, I have a selection of .rdp shortcuts to various machines, but they are considered the file type "plain text document (text/plain)" so if I change it to open with to tsclient, all of that file type opens with tsclient. And if I change it to gedit, all the rdp files open with gedit. Is there a way to create a custom file type dependent on the extension rdp, or is there a way to set tsclient to open by extension rather than filetype?
View 2 Replies
View Related
May 13, 2011
I've recently upgraded from 10.04 to 10.10 (a bit late, I know), but have been getting repeated messages telling me that the filesystem is running low on space.
I've run apt-get autoremove and autoclean, but there is still insufficient space for me to upgrade to 11.04.
Whilst looking through the /home folders, I came across a number of 2 character titles folders in the /home/user directory. These have the extension.file. Does anyone know what they are, and can I delete them?
View 9 Replies
View Related
Oct 15, 2009
If there is a command I can use to find specific file types? Say if I want to find all the jpg's in my home folder, but they don't have the .jpg extension in the name, how would I do it? Or can I set some kind of size parameter to find them? The ones I want are all from my digicam and roughly the same size.
View 7 Replies
View Related
Mar 24, 2009
can anyone provide me with the path where i can find the library files. stdio.h, sys/types.h.......
View 4 Replies
View Related
Jul 8, 2010
After moving a website folder on my local development machine to another drive, then moving it back, I got a 403 error. Most of this problem had probably to do with rights that got messed up. After deleting the code and restoring it from SVN, the rights seemed allright. The error stayed however.
The setup is a bit complex, as follows:
I have Ubuntu 10.4 as development machine, trying to mimic the server as much as possible We use Eclipse + SVN and I create all projects in a local folder under my user account In /var/www-vhosts I create folders for each vhost, like this one: test.localhost test.local/index.php: includes the index file of the project
test.local/.htaccess is a dynamic link to the htaccess file in a project subfolder
I get the following error in the apache error log:
The problem seems to be the .htaccess file, or the link to it. When I empty the htaccess, nothing changes When I remove the link, the index-include produces some output (in the apache error log) When I remove the link and replace it with the actual file, I get another error:
View 1 Replies
View Related