Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

.htaccess file

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
.htaccess file - I have set up an .htaccess file in a private directory that I am hosting. I included the Directory in as such... AuthType Basic AuthName "By

Use of htaccess file with Apache - Suppose I write an / rule in a htaccess and it resides in the root If I write another / rule in another htaccess file in a 1) Would the server still access the htaccess file in root as well as the ..

.htaccess file makes 403 - hi folks, i wrote a .htaccess file with the following content: On !-f / ^typo3$ index.php but when accessing this page, a 403..

Can htaccess include another file? - Hi, I want to achieve something like this. Imagine I have a file called which contains a whole bunch of IP addresses which I want to blocked, one per line. Can I do something like this? <Files deny from..

.htaccess file and reported error - on Suse 9.0] I have under my directory a directory for test purposes only. In the I have these: All Order Deny, Allow Allow from All..
Next:  Apache: Apache with RADIUS (IAS)  
Author Message
S_p_ike

External


Since: Sep 14, 2005
Posts: 3



(Msg. 1) Posted: Wed Sep 14, 2005 5:55 am
Post subject: .htaccess file
Archived from groups: alt>apache>configuration (more info?)

Hope this is the right NG for this post.

Well, I have 2 files (php) in the webroot of a site. I want that this 2
files can be accessed only by a particular referer.

I wrote this in my htaccess file:

SetEnvIfNoCase Referer "domain.ext" AllowedReferer

<Files file1.php>
Order Deny,Allow
Deny from all
Allow from env=AllowedReferer
</Files>

<Files file2.php>
Order Deny,Allow
Deny from all
Allow from env=AllowedReferer
</Files>

But I still get denied access. The domain.ext is a https, does this
influence? Am I making some mistakes?

Thanks.

Paolo

--
=====================

L'indirizzo riportato come reply non è valido. Per contattarmi in
privato rispondere al presente messaggio nel newsgroup, indicando
l'indirizzo a cui si desidera essere contattati.

 >> Stay informed about: .htaccess file 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Sep 14, 2005 6:55 am
Post subject: Re: .htaccess file [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: .htaccess file 
Back to top
Login to vote
S_p_ike

External


Since: Sep 14, 2005
Posts: 3



(Msg. 3) Posted: Thu Sep 15, 2005 7:55 am
Post subject: Re: .htaccess file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi ha scritto:
> On 2005-09-14, S_p_ike <"s_p_ike[nospam]"@hotmail.com> wrote:
>
>>SetEnvIfNoCase Referer "domain.ext" AllowedReferer
>
>
> Did you tried without the " around and using \. to escape the '.' ?
> AFAICS it should work, if it doesn't probably is because the Referer
> isn't matched in the SetEnvIf. Check what's in the Referer header
> value.
>
> Davide
>

Thank you for your reply. You're right, the referer is empty and seems
that this is due to the fact that it's a secure server and in these
cases the referer is empty (I didn't know this).
Moreover, I read that it's not secure to rely on http_referer, 'cause it
can be empty (!).

Well, have you an idea about how to let access those 2 files only by
'calling' from that specific https://domain.ext

By the way, I saw you're italian. Me too, and this stuff is about
communication with Banca Sella Gateway.

Saluti e grazie, Paolo

--
=====================

L'indirizzo riportato come reply non è valido. Per contattarmi in
privato rispondere al presente messaggio nel newsgroup, indicando
l'indirizzo a cui si desidera essere contattati.
 >> Stay informed about: .htaccess file 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Thu Sep 15, 2005 7:55 am
Post subject: Re: .htaccess file [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
 >> Stay informed about: .htaccess file 
Back to top
Login to vote
S_p_ike

External


Since: Sep 14, 2005
Posts: 3



(Msg. 5) Posted: Fri Sep 16, 2005 5:55 am
Post subject: Re: .htaccess file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi ha scritto:
> On 2005-09-15, S_p_ike <"s_p_ike[nospam]"@hotmail.com> wrote:
>

>>By the way, I saw you're italian. Me too, and this stuff is about
>>communication with Banca Sella Gateway.
>
>
> Did you tried asking them about this? Maybe they know something that we
> don't.
>
> Davide
>

I'll try, thanks

Paolo

--
=====================

L'indirizzo riportato come reply non è valido. Per contattarmi in
privato rispondere al presente messaggio nel newsgroup, indicando
l'indirizzo a cui si desidera essere contattati.
 >> Stay informed about: .htaccess file 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]