Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite

Use .htaccess rules to block unwanted bots, spiders and other UserAgents that don’t fetch, or that fetch and ignore robots.txt.

Blocking visitors by IP address filtering in .htaccess file:

# deny specific IP addresses, and allow all others
order allow, deny
deny from 123.45.6.7
deny from 123.45.6.8
deny from 123.45.6.9
allow from all


Block specific UserAgent using mod_rewrite

   # Block Google Images Bot from Indexing your Copyrighted Images
   # Hopefully someday Google will publish a "supported way" of
   # Disallowing the Google Image Bot when necessary, but until then...
   RewriteEngine on
   RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Image
   RewriteRule ^(.*)$ http://images.google.com/


The catch-22 with this method is that “sneaky” program developers can simply masquerade as “normal” visitors by using common web browser user agent strings. Reinforcing the fact that all three of these methods are USEFUL, but in no way a complete or secure solution even with the precise use of all three.


Also see:

  1. robots.txt
  2. Robots Meta Tag

Robots Meta Tag

meta-tags

Use an embedded meta tag on a specific page to instruct search engine spiders and robots what to index and disallow:

  1. Pages including “noindex, nofollow” indicate that they are NOT to be index, NOT to be included in listings, and NOT to be scanned for reciprocal links.
  2. Pages including “index, nofollow” indicate that they are to be indexed and listed, but not scanned for reciprocal links.
  3. Pages including “index, follow” indicate that they are to be fully index and scanned for all reciprocal links and included in all applicable listings.

DO NOT index, DO NOT include in listings, and DO NOT follow reciprocal links

<input name="robots" content="noindex, nofollow" />

Index, include in listings, but DO NOT follow reciprocal links

<input name="robots" content="index, nofollow" />

Index, include in listings, and follow reciprocal links

<input name="robots" content="index, follow" />

Also see:

  1. Robots.txt
  2. .htacess and mod_rewrite

Sitemap Generators: Automating Google Sitemap Creation for Search Engine Optimization

Server-side Programs

CMS and Other Plugins

Downloadable Tools

Online Generators/Services

Code Snippets / Libraries

A List of Major and Minor Search Engines with PageRank and Alexa Rank

Search Engine Page Rank Alexa Rank
Google 10/10 1
Alexa 7/10 N/A
WhatUSeek 7/10 28,871
Scrub The Web 6/10 12,154
Entireweb 6/10 16,913
Acoon.de 6/10 144,419
SearchSight 5/10 15,631
Infotiger 5/10 31,364
Websquash 5/10 38,821
FyberSearch 5/10 40,029
Aesop 5/10 93,220
FeedPlex 5/10 95,852
Walhello 5/10 125,261
Abacho 5/10 174,284
Search Luxembourg 5/10 368,225
Jayde 4/10 13,494
TowerSearch 4/10 42,542
Amfibi 4/10 55,399
Cipinet 4/10 57,721
Search Engine Page Rank Alexa Rank
Claymont 4/10 58,898
Burf 4/10 75,057
Acoon 4/10 147,124
Megaglobe 4/10 152,118
DinoSearch 4/10 194,222
GhetoSearch 4/10 338,592
SentenceSeek 4/10 408,247
Mojeek 4/10
The Lesson Finder 4/10 1,365,580
Search-O-Rama 3/10 33,199
AxxaSearch 3/10 62,737
SearchRamp 3/10 66,091
BigFinder 3/10 151,855
Super.info 3/10 190,141
SurfGopher 3/10 280,391
Myahint 3/10 366,402
Boitho 0/10 598,399
Famhoo 0/10 807,861

Free Search Engine Submission Services

AddPro.com

AddPro.com

AddPro.com provides a free service that performs a basic submission of your site to 18 of the top search engine providers:

Abacho FindOnce Splatsearch
Acoon Fybersearch Surfgopher
Aewi Google Burf
Cipinet Jayde Walhello
Entireweb Towersearch WotBox
ExactSeek ScrubTheWeb Searchit


Visit AddPro.com

AddMe.com

AddMe.com

AddMe.com also provides a free search engine submission service that auto-submits your website to the following Search Engines:

Google Scrub The Web FyberSearch
Burf.com Alexa BigFinder
LifeTips ExactSeek Nerdworld
InfoTiger FocusLook Walhello
Jayde EntireWeb AdmCity
SpiderMonkey MixCat Abacho
SearchSight WhatUSeek ESiteSecrets
Tower Search TyBit Burf.org.uk


Visit AddMe.com

FreeWebSubmission.com

FreeWebSubmission.com

FreeWebSubmission.com provides free manual and auto submission to the highest-rated, Free Internet Search Engines and Directories.

Google Yahoo! Search Bing
Open Directory ScrubTheWeb Cuil
ExactSeek SearchSight EntireWeb
LII Web World VieSearch
A1 Web Directory Skoobe Info Listings
IllumiRate Dramba Directory Storm
Arakne Links Wikidweb LinkSite
MavicaNet Link Centre My Directory Live
Domaining Pedsters Planet BusinessSeek
Ablaze Directory Info Tiger What U Seek
OneMillionDirectory SurfSafely World Site Index
Search Web World AMRAY CyberWebSearch
Finest 4 NewWebDirectory IS
IWD The Living Link SonicRun
Wondex Cipinet Mardox
NetInsert 01WebDirectory Web Directory
Clock Tower Studio TowerSearch


Visit FreeWebSubmission.com

Next Page »