01-12-2009
deny directly allow indirectly (.htaccess)
I am running apache web server on CentOS5.2
I have the directory in which stores a lot of images.(/var/www/html/images)
I want to deny everyone from directly accessing the directory but still allow images in the directory to be used by HTML (/var/www/html/pic.html <img src="https://www.unix.com/images/hotimg.jpg">)
=>someone cannot access that specific directory directly.
1)create .htaccess in images directory
2)type following lines and save
order allow,deny
deny from all
but I don't know how to allow images in the directory to be used by HTML(pic.html <img src="https://www.unix.com/images/hotimg.jpg">)
thanks in advance
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
For a schoolproject, I have to set up an intranet at a company headquarters in the Netherlands. But they want to give the division in the United States access to that intranet.
I have to find out how to do that. I've heard that you can do that by giving certain people access to the intranet with... (1 Reply)
Discussion started by: Puc conDoin
1 Replies
2. UNIX for Dummies Questions & Answers
i want to protect a folder on my HP....
does the folder need more than ".htaccess" and ".htpasswd" to be protected , and ask for login and password???
Please help ......
i use HTAdmin 1.2.1 to manage my access files..
The systemadmin cant or wount answer.....:confused:
Avenger (3 Replies)
Discussion started by: Avenger
3 Replies
3. Cybersecurity
Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version.
HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies
4. Cybersecurity
hi i am trying to make a log of all users who access my website, i am using htaccess to administrate logins, how does htaccess store a session i.e where is the valid user login temporarily stored while a user is using the site or is there already some sort of logging being done by htaccess.
... (2 Replies)
Discussion started by: omnibarb
2 Replies
5. UNIX for Dummies Questions & Answers
Can someone please tell me how to ssh into a computer when I have a username and password? Like something like:
ssh username : pass @ server
Can I do something like that directly? (6 Replies)
Discussion started by: Legend986
6 Replies
6. UNIX for Advanced & Expert Users
Hi,
I would like to use htaccess 301 redirect with URL hiding.
Ex:
when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies
7. Web Development
I have the following directive in my .htaccess:
#RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh"
The problem is that the redirect is going to
http://www.seobook.com/%23a_aid=dh
How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies
8. Shell Programming and Scripting
How do I download on a link doing it indirectly, with once redirection by using curl commands or Bash script of them (2 Replies)
Discussion started by: abdan
2 Replies
LEARN ABOUT DEBIAN
latex2png
latex2png(1) General Commands Manual latex2png(1)
NAME
latex2rtf - Convert a LaTeX file to a PNG image
SYNTAX
latex2png [-hk] [ -H home_directory ] [ -d dots_per_inch ] [ inputfile ]
DESCRIPTION
The latex2png command converts a LaTeX file into a PNG graphic. The first page is translated into an image at the specified resolution.
-d dots_per_inch
Used to specify the number of dots per inch for the output image. Default is 144 dpi.
-h Print a short usage note
-k Keep intermediate files (for debugging).
-H home_dir
Add home_dir to the search path for LaTeX.
SEE ALSO
latex2rtf (1).
For complete, current documentation, refer to the Info file latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file latex2rtf.html
which are made from the TeXInfo source file latex2rtf.texi.
LATEX2PNG(1) User LATEX2PNG(1)
NAME
latex2png - manual page for latex2png 1.1
DESCRIPTION
latex2png -- Convert a LaTeX file to a PNG image
USAGE: latex2png [-d density] [-h] [-k] [-c] [-g] [-m] [-H home dir] file[.tex|.eps]
The latex2png command converts a LaTeX file into a PNG image. The first page is translated into an image at the specified resolution.
latex2png can also be used to convert encapsulated postscript (EPS) files to PNG images.
OPTIONS:
-c produce color image
-d density
density is the number of dots per inch to use in the created image (default 144 dpi)
-g produce gray images
-h help
-H home_dir
home_dir is a directory to be included in search path (default is directory that contains the LaTeX file). This is used to create
PNG images in another directory (e.g., /tmp) and still allow LaTeX to find files that it needs to include.
-k keep intermediate files (for debugging)
-m produce monochrome (black and white) image
(default)
-v version
EXAMPLES:
latex2png -d 144 /tmp/file
#create /tmp/file.png at 144 dpi
latex2png file.eps
#create file.png
latex2png file.tex
#create file.png via latex
latex2png -H . /tmp/file
#search the cwd for image files
SEE ALSO
latex2png is a part of latex2rtf and has a special mode to assist in finding the baseline of a latex equation. Documentation for latex2rtf
may be found in latex2rtf.info, the PDF file latex2rtf.pdf or the HTML file latex2rtf.html which are made from the TeXInfo source file
latex2rtf.texi.
latex2png 1.10 November 2002 LATEX2PNG(1)