Forum Moderators: phranque
# block ip addresses
# https://httpd.apache.org/docs/2.2/howto/access.html
# https://httpd.apache.org/docs/2.2/mod/mod_authz_host.html
deny from 64.79.100.24 # webcrawler.link
deny from 64.79.100.28 # webcrawler.link
deny from 64.79.100.11 # webcrawler.link
deny from 64.79.100.16 # webcrawler.link
deny from 64.79.100.44 # webcrawler.link
deny from 64.79.100.50 # webcrawler.link
deny from 64.79.100.58 # webcrawler.link
deny from 64.79.100.63 # webcrawler.link
deny from 81.144.138.34 # wotbox.com
deny from 81.144.138.40 # wotbox.com
deny from 90.199.136.222 # semalt
deny from 177.207.16.134 # semalt
deny from 179.211.155.20 # semalt
deny from 186.236.187.225 # semalt
allow from all deny from 64.79.100 # webcrawler.link deny from 64.79.100 # webcrawler.link
Comments may not be included on the same line as a configuration directive.
deny from 64.79.100
the 39 I actually want to block
If I block the bad referrer at the public_html/.htaccess level, will it work for all addon domains?
If I edit the .htaccess of one of my not popular addon domain and add my own internet provider. Will I see a 403 error ?
wait to see (rather not seen) in the raw access log
RewriteCond %{HTTP_REFERER} (buttons|gratis|semalt|website) [NC,OR]
If your website is about widgets and I use a non-HTTPS search engine to look for "widgets gratis" or "widgets website" and I click on a result from your site, I'll be blocked.
^http://[\w.]+(--|xx)
which means "only lock them out if the offending text is part of the referring domain name". (It now occurs to me it should be https? but I guess referer spam never bothers about security. That's an actual line from my real htaccess, meaning it was inspired by some real-life offending visitor.) The next step would then be ^http://[^?]+(--|xx)
meaning "anywhere in the path" but still not in the query (which is where search terms, if visible, would go).