You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by switch grass <ap...@gmail.com> on 2006/04/25 06:24:53 UTC

[users@httpd] mod_rewrite block self

how would i block my own site from its files?
i can use mod_rewrite to prevent hotlinking from other sites, but when i try
to block myself it doesn't work.
what i am trying to do is use my first site(site1.com) to host images that
only my second site can access(site2.com).
is this possible?

Re: [users@httpd] mod_rewrite block self

Posted by Joshua Slive <jo...@slive.ca>.
On 4/26/06, switch grass <ap...@gmail.com> wrote:
> its just a normal-
> RewriteCond %{HTTP_REFERER} !yoursite\.com [NC]
>
> cannot not fing the access log atm.

> On 4/25/06, Joshua Slive <jo...@slive.ca> wrote:
> >
> On 4/25/06, switch grass < apachegroup@gmail.com> wrote:
> > how would i block my own site from its files?
> > i can use mod_rewrite to prevent hotlinking from other sites, but when i
> try
> > to block myself it doesn't work.
> > what i am trying to do is use my first site( site1.com) to host images
> that
> > only my second site can access(site2.com).
> > is this possible?
>
> Show the exact config you are using along with some lines from your
> access_log (in extended format).

Sorry, but you haven't provided nearly enough information to start
helping you.  The config you supply is incomplete and doesn't match
your problem report (if you must obscure hostnames, at least do it
consistently!).  And without info from the access_log and RewriteLog,
debugging mod_rewrite problems is a near hopeless exercise.

To find the access log, look in httpd.conf for the CustomLog directive.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_rewrite block self

Posted by switch grass <ap...@gmail.com>.
its just a normal-

RewriteCond %{HTTP_REFERER} !yoursite\.com [NC]

cannot not fing the access log atm.




On 4/25/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 4/25/06, switch grass <ap...@gmail.com> wrote:
> > how would i block my own site from its files?
> > i can use mod_rewrite to prevent hotlinking from other sites, but when i
> try
> > to block myself it doesn't work.
> > what i am trying to do is use my first site( site1.com) to host images
> that
> > only my second site can access(site2.com).
> > is this possible?
>
> Show the exact config you are using along with some lines from your
> access_log (in extended format).
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] mod_rewrite block self

Posted by Joshua Slive <jo...@slive.ca>.
On 4/25/06, switch grass <ap...@gmail.com> wrote:
> how would i block my own site from its files?
> i can use mod_rewrite to prevent hotlinking from other sites, but when i try
> to block myself it doesn't work.
> what i am trying to do is use my first site( site1.com) to host images that
> only my second site can access(site2.com).
> is this possible?

Show the exact config you are using along with some lines from your
access_log (in extended format).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org