Results 1 to 1 of 1

Thread: how to use rewrite rule in lighttpd

  1. #1
    Join Date
    May 2012

    Unhappy how to use rewrite rule in lighttpd

    He guys,

    i have a little problem with rewrite rules, i want to limit the viewers of site to a specific referrer, in apache, i had used htaccess rules below, but i donno how to use them in lighttpd.

    can anybody help me

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http: //(.+.)?SPECIFIC.DOMAIN/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http: //(.+.)?SPECIFIC.DOMAIN$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|avi|mkv|rmvb|mp3|mp4|rar |zip|pdf|exe)$ REDIRECT.DOMAIN [R,NC]

    in this rule, any viewer that came from a site except SPECIFIC.DOMAIN was redirected to REDIRECT.DOMAIN

    would be glad if anyone can help me
    Last edited by downloade; 05-05-2012 at 04:23 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts