Sponsored Content
Top Forums UNIX for Dummies Questions & Answers deny directly allow indirectly (.htaccess) Post 302275815 by pludi on Monday 12th of January 2009 08:51:59 AM
Old 01-12-2009
Example .htaccess
Code:
SetEnvIfNoCase Referer "^http://$" html_ref=1
Order Allow,Deny
Allow from env=html_ref

Will allow access only if the browser submits a referer field starting with "http://" (e.g. embedded in a site)
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.htaccess?

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

.htaccess

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

htaccess

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

Logging htaccess

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

ssh directly with a password

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

Redirect with htaccess

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

.htaccess redirect with #

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

Download on a link doing it indirectly

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
install::TempContent::Objects::mod_perl-2.0.9::docs::apiUseraContributinstall::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Status(3)

NAME
Apache2::Status - Embedded interpreter status information Synopsis <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler modperl PerlOptions +GlobalRequest PerlResponseHandler Apache2::Status </Location> or <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler perl-script PerlResponseHandler Apache2::Status </Location> Description The "Apache2::Status" module provides some information about the status of the Perl interpreter embedded in the server. Configure like so: <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler modperl PerlOptions +GlobalRequest PerlResponseHandler Apache2::Status </Location> Notice that under the "modperl" core handler the Environment menu option will show only the environment under that handler. To see the environment seen by handlers running under the "perl-script" core handler, configure "Apache2::Status" as: <Location /perl-status> # disallow public access Order Deny, Allow Deny from all Allow from 127.0.0.1 SetHandler perl-script PerlResponseHandler Apache2::Status </Location> Other modules can "plugin" a menu item like so: require Apache2::Module; Apache2::Status->menu_item( 'DBI' => "DBI connections", #item for Apache::DBI module sub { my ($r, $q) = @_; #request and CGI objects my (@strings); push @strings, "blobs of html"; return @strings; #return an array ref } ) if Apache2::Module::loaded('Apache2::Status'); WARNING: "Apache2::Status" must be loaded before these modules via the "PerlModule" or "PerlRequire" directives (or from startup.pl). A very common setup might be: Perl Module B::TerseSize <Location /perl-status> SetHandler perl-script PerlResponseHandler Apache2::Status PerlSetVar StatusOptionsAll On PerlSetVar StatusDeparseOptions "-p -sC" </Location> due to the implementation of Apache2::Status::noh_fileline in B::TerseSize, you must load B::TerseSize first. Options "StatusOptionsAll" This single directive will enable all of the options described below. PerlSetVar StatusOptionsAll On "StatusDumper" When browsing symbol tables, the values of arrays, hashes and scalars can be viewed via "Data::Dumper" if this configuration variable is set to "On": PerlSetVar StatusDumper On "StatusPeek" With this option "On" and the "Apache::Peek" module installed, functions and variables can be viewed ala "Devel::Peek" style: PerlSetVar StatusPeek On "StatusLexInfo" With this option "On" and the "B::LexInfo" module installed, subroutine lexical variable information can be viewed. PerlSetVar StatusLexInfo On "StatusDeparse" With this option "On" subroutines can be "deparsed". PerlSetVar StatusDeparse On Options can be passed to "B::Deparse::new" like so: PerlSetVar StatusDeparseOptions "-p -sC" See the "B::Deparse" manpage for details. "StatusTerse" With this option "On", text-based op tree graphs of subroutines can be displayed, thanks to "B::Terse". PerlSetVar StatusTerse On "StatusTerseSize" With this option "On" and the "B::TerseSize" module installed, text-based op tree graphs of subroutines and their size can be displayed. See the "B::TerseSize" docs for more info. PerlSetVar StatusTerseSize On "StatusTerseSizeMainSummary" With this option "On" and the "B::TerseSize" module installed, a "Memory Usage" will be added to the "Apache2::Status" main menu. This option is disabled by default, as it can be rather cpu intensive to summarize memory usage for the entire server. It is strongly suggested that this option only be used with a development server running in "-X" mode, as the results will be cached. PerlSetVar StatusTerseSizeMainSummary On "StatusGraph" When "StatusDumper" is enabled, another link "OP Tree Graph" will be present with the dump if this configuration variable is set to "On": PerlSetVar StatusGraph This requires the B module (part of the Perl compiler kit) and "B::Graph" (version 0.03 or higher) module to be installed along with the "dot" program. Dot is part of the graph visualization toolkit from AT&T: http://www.graphviz.org/. WARNING: Some graphs may produce very large images, some graphs may produce no image if "B::Graph"'s output is incorrect. "Dot" Location of the dot program for "StatusGraph", if other than /usr/bin or /usr/local/bin "GraphDir" Directory where "StatusGraph" should write it's temporary image files. Default is "$ServerRoot/logs/b_graphs". Prerequisites The "Devel::Symdump" module, version 2.00 or higher. Other optional functionality requirements: "B::Deparse" - 0.59, "B::Fathom" - 0.05, ""B::Graph"" - 0.03. Copyright mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. See Also perl(1), Apache(3), Devel::Symdump(3), Data::Dumper(3), B(3), "B::Graph"(3), mod_perl 2.0 documentation. Authors Doug MacEachern with contributions from Stas Bekman perl v5.18.2 20install::TempContent::Objects::mod_perl-2.0.9::docs::api::Apache2::Status(3)
All times are GMT -4. The time now is 10:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy