.htaccess rule to block access to backed-up files
(Requires mod_rewrite)
RewriteEngine on RewriteRule ~$ - [F]
11381 users tagging and storing useful source code snippets
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
RewriteEngine on RewriteRule ~$ - [F]
./blacklist_builder.py > .htaccessevery week or so...
""" blacklist_builder.py Get the entries from a blacklist and print them to standard output """ latest = urllib2.urlopen("http://www.unknowngenius.com/blog/blacklist/") str = '' begin = "RewriteCond %{HTTP_REFERER} ^.*" for line in latest: str+= begin+ re.sub('(\s#:url:|\s#:regex-url:|\s#:rbl:)', ".*$ [OR]\n",line) return str
RewriteCond %{HTTP_REFERER} ^.*zpics.net.*$ [OR] RewriteCond %{HTTP_REFERER} ^.*zt148.com.*$ [OR] RewriteCond %{HTTP_REFERER} ^.*zum-bestpreis.de.*$ [OR] RewriteCond %{HTTP_REFERER} ^.*zxyzxy.com.*$ [OR] RewriteCond %{HTTP_REFERER} ^.*fondos-pantalla..*$ [OR] RewriteCond %{HTTP_REFERER} ^.*.kucko.com.*$ [OR] RewriteCond %{HTTP_REFERER} ^.*.gogof-ck.com.*$ [OR] .....