AndyB Robots

xF2 Add-on AndyB Robots 2.6

No permission to download

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,982
Points
823

Reputation:

LQD submitted a new resource:

Robots - Disallows robots from indexing your site unless explicitly allowed.

Description:

Disallows robots from indexing your site unless explicitly allowed.

(Robots link in Visitors tab)
View attachment 993
(Example of Robots page)
View attachment 994
(Example of Options page)
View attachment 995
(Example of User group permissions)
View attachment 996
Features:
  • All phrases start with robots_ for your convenience.
Installation:
  1. Download Andy-Robots-2.3.zip and unzip it.
  2. Copy the...

Read more about this resource...
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,519
Points
523

Reputation:

Using .htaccess to block bad bots​

If you would like to add additional bad bots, you add them on this line. Keep in mind that by having "bot" already entered, that will cover any bot with the work "bot" in the user agent.

SetEnvIfNoCase User-Agent "bot|crawler|fetcher|headlesschrome|inspect" bad_bot

Just add the | symbol followed by the name of the bad bot.

If you would like to add good bots, you add them on this line.

SetEnvIfNoCase User-Agent "bingbot|duckduckgo|googlebot|yahoo" good_bot

Just add the | symbol followed by the name of the good bot. Note that I prefer to remove the bingbot as I consider it a bad bot.

Code:
    #   Deny and Allow bots by User-Agent
    SetEnvIfNoCase User-Agent "bot|crawler|fetcher|headlesschrome|inspect|search|spider" bad_bot
    SetEnvIfNoCase User-Agent "duckduckgo|googlebot|yahoo" good_bot
    Deny from env=bad_bot
    Allow from env=good_bot

I suggest installing the following two add-ons. With them you can easily identify bad bots which might not be identified with the directives above. Once identified you can update the .htaccess bad bots directives.

  • Access Log
  • Broken Links
 
Top