# deny access for Indy Library a Tester $HTTP["useragent"] =~ "Indy" { url.access-deny = ( "" ) } # deny access for a hydrocodone containing refer $HTTP["referer"] =~ "hydrocodone" { url.access-deny = ( "" ) }
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Using HTTP conditions and url.access-deny to have Lighttpd block some user agents and referers (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Socket conditional example (... in lighttpd conditionals ssl
» My lighttpd php-fastcgi conf... in php fastcgi lighttpd
» Automatic sub-domains with l... in lighttpd virtualhosting subdomains mod_evhost
» Typo under lighttpd in lighttpd ruby rails typo ruby-fcgi
» Lighttpd proxy with Tracd sp... in lighttpd trac tracd proxy vhost
» lighttpd as a startup item o... in lighttpd osx mac
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails