Paul Williams wrote: > > ------------------------------------------------------------- > AuthUserFile /dev/null > AuthGroupFile /dev/null > RewriteEngine On > RewriteCond %{HTTP_REFERER} !^http://www.myserver.com [NC] > RewriteCond %{HTTP_REFERER} !^http://myserver.com [NC] > RewriteRule /* http://www.myserver.com/error.mv [R,L] > ------------------------------------------------------------- > > My question is, instead of a RewriteRule that returns a page, how do i > write it so it returns either A) nothing or, B) some text like "Not > Found"? >
Hi Paul, maybe you want to tell the user, that it is forbidden to use a page of your site coming from outside. So use as last rule: RewriteRule .* - [F] This will send the standard forbidden status (403) to the user. See: http://httpd.apache.org/docs/misc/rewriteguide.html But do NOT rely on the HTTP_REFERER, because some browsers don't send it: http://websiteowner.info/articles/pages/hotlinking.asp Ernest -- ********************************************************************* * VIRTUALITAS Inc. * * * * * * European Consultant Office * http://www.virtualitas.net * * Internationales Handelszentrum * contact:Ernest Lergon * * Friedrichstraße 95 * mailto:[EMAIL PROTECTED] * * 10117 Berlin / Germany * ums:+49180528132130266 * ********************************************************************* PGP-Key http://www.virtualitas.net/Ernest_Lergon.asc