# 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
» Igniter clases for gallery in apache php mysql find awk lighttpd ruby rails ssh date perl regex shell textpattern svn http conditionals osx mac chicken css python google compiler html bash subversion windows clock sql activerecord javascript expressionengine java conditional actionscript rubyonrails unix clear linux comments applescript cli console database c text ajax circle codepage image string component xml terminal file com classic array web Cisco Connections cloud constant delphi administration column columns concatenate clause convert compile clamav chmod chown coda conf china class classpath cmdparser comma cnn con
» Socket conditional example (... in lighttpd conditionals ssl
» Movie Ttrailer New Moon in apache php mysql find awk lighttpd ruby rails ssh date perl regex shell textpattern svn http osx mac css python google html bash subversion windows sql activerecord javascript expressionengine java actionscript rubyonrails unix linux applescript cli database c text ajax image string xml terminal file array web delphi administration convert
» Image: getHeight(ImageObserv... in apache php mysql find awk lighttpd ruby rails ssh date perl regex shell textpattern svn http osx mac css python google html bash subversion windows sql activerecord javascript expressionengine java actionscript rubyonrails unix linux applescript cli database c text ajax image string xml terminal file array web delphi administration convert
» forced logoff for banned user in textpattern http security css python html django database web memcached administration
» Defining E STRICT in apache php mysql find awk lighttpd ruby rails ssh date perl regex shell textpattern svn http osx mac css python google html bash subversion windows sql activerecord javascript expressionengine java actionscript rubyonrails unix linux applescript cli database c text ajax image string xml terminal file array web delphi administration convert
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails