ServerAdmin webmaster@localhost
DocumentRoot /var/www
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from 192.168.111.0/24
#
# www.smythies.com access controls 2014.03.09. Updated 2014.08.05
#
# enable rewriting
RewriteEngine on
# Block a dickhead that doesn't use robots.txt
RewriteCond %{HTTP_USER_AGENT} EasouSpider
RewriteRule .* /~doug/rewriterules/badbot_norobots\.txt [PT]
# Block a dickhead that doesn't use robots.txt
RewriteCond %{HTTP_USER_AGENT} LinkpadBot
RewriteRule .* /~doug/rewriterules/badbot_norobots\.txt [PT]
# Block the dickheads that do the weird GETs
RewriteCond %{HTTP_REFERER} http://www\.smythies\.com/
RewriteCond %{HTTP_REFERER} !doug
RewriteCond %{REQUEST_URI} /~doug/strange_get\.html
RewriteRule .* /~doug/rewriterules/forged\.txt [PT]
# Block the dickheads from AppEngine-Google
RewriteCond %{HTTP_USER_AGENT} AppEngine-Google
RewriteRule .* /~doug/rewriterules/appenginegoogle\.txt [PT]
# Block the dickheads from semalt.com
RewriteCond %{HTTP_REFERER} semalt\.com
RewriteRule .* /~doug/rewriterules/banned\.txt [PT]
# Block the dickhead from LightspeedSystems
RewriteCond %{HTTP_USER_AGENT} LightspeedSystems
RewriteRule .* /~doug/rewriterules/banned\.txt [PT]
# Block the dickhead from 61.191.62.7
RewriteCond %{REMOTE_ADDR} 61\.191\.62\.7
RewriteRule .* /~doug/rewriterules/foff\.txt [PT]
# Block the possibly innocent people using stolen content
RewriteCond %{HTTP_REFERER} dequeindia.site11\.com
RewriteRule .* /~doug/rewriterules/content\.txt [PT]
# The next rule