Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

block spam bots via htaccess

Featured Replies

What is the best way to block spam bots via an htaccess file? Is there a catch all code or does the refer traffic have to be listed individually? Currently I have semalt, buttons for websites, and 7makemoneyonline listed - which seems to be working - until I notice another one. Did I miss anything important?

 

Thoughts?

# block visitors referred from semalt.com
RewriteEngine on
RewriteCond %{HTTP_REFERER} semalt\.com [NC]
RewriteRule .* – [F]
# End semalt block

# block referer spam buttons for website
RewriteEngine On
RewriteCond %{HTTP_REFERER} buttons\-for\-website\.com
RewriteRule ^.* - [F,L]
# End buttons for website block

# BLOCK SITE REFERRERS
RewriteEngine on
 RewriteCond %{HTTP_REFERER} 7makemoneyonline\.com [NC]
RewriteRule .* - [F]
# End
  • Author

The traffic from the above 3 named sites are working. However, traffic from darodar.com is not. Has anyone else had success in blocking traffic from that site?

SetEnvIfNoCase Referer darodar.com spambot=yes
Order allow,deny
Allow from all
Deny from env=spambot

This http://www.blackmoreops.com/2014/12/19/darodar-com-referrer-spam/ says the spam referrers manipulate Google Analytics and never actually visit your site, so blocking them is pointless. Google Analytics offers filtering if you want to mitigate fake site hits.

what about this?

 

 

BrowserMatchNoCase "Baiduspider" bots
BrowserMatchNoCase "HTTrack" bots
BrowserMatchNoCase "Yandex" bots

Order Allow,Deny
Allow from ALL
Deny from env=bots
  • 3 weeks later...

at one of my site htaccess file was blocking all urls and sitemap... google indexing goes "NIL".. I just upload a blank htaccess file.. the problem solved... is it ok or dangerous... please guide

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.