.htaccess help

Discussion in 'Install/Configuration' started by Spunkie, Sep 25, 2011.

  1. Spunkie

    Spunkie New Member

    About two days ago we switched over to litespeed on our server and ever since then one of my .htaccess has been broken. What its supposed to 403 everyone unless the referring url was from one of my game servers. This was working fine on apache but now it gives 403's for everyone even those referred from the proper url. Is there anyways to get this to work on litespeed?


    Code:
    Referer: hl2://72.9.230.249:27015
    Code:
    SetEnvIfNoCase Referer ^hl2://72\.9\.230\.249 allow_download
    Order Deny,Allow
    Allow from env=allow_download
    Deny from all
    
    Options +Indexes
    IndexOptions -FancyIndexing
    
    *Example IPs used

    Thanks for the help
    ~Spunkie
  2. NiteWave

    NiteWave Administrator

    lsws not support SetEnvIf/SetEnvIfNoCase. please use following rewrite rule instead:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^hl2://72\.9\.230\.249
    RewriteRule .* - [L,F]

Share This Page