[thelist] .htaccess syntax when blocking links from a frame-based website [solved]

Jono jono at charlestonwebsolutions.com
Fri Sep 15 16:16:57 CDT 2006


Jono wrote:
>  - - - - - - - - - - - -
>
> RewriteEngine on
>
> # Block Specific Site
>
> RewriteCond %{HTTP_REFERER} (companyx\.com) [NC]
>   RewriteRule .* - [F]
>
>  - - - - - - - - - - - -
> ...
>
> 2.  If  companyx.com uses frames, do I need to add the url for the frame 
> that contains the referring link on companyx's site, or is the general 
> domain all I need?
>   
2. No. The above code works just fine - handles links form the domain 
and the frames equally.

Case closed.



More information about the thelist mailing list