/go/bots: bots from the Command Line

/go/bots shows which bots have visited your server, good and bad. It: This command changes the bot list. It is not a read-only report. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/bots

Options

None. Any arguments you pass are ignored.

Examples

# Show bot visits
/go/bots

# List every bot currently flagged for blocking
sqlite3 /var/lib/sqlite/bot.db "select Name from Bot where Block=1"

# Stop flagging a bot that was marked by mistake
sqlite3 /var/lib/sqlite/bot.db "update Bot set Block=0 where Name='ExampleBot'"

Output

The output is a table with three columns, sorted by visits from lowest to highest, so the most active bots are at the bottom.

Column Meaning
BOT Bot name, as found in the user-agent field of the access log
Visits Number of times the name appears in the access log
Blocked 1 if the bot is flagged for blocking, 0 if not

Example (names and numbers are illustrative):

BOT Visits Blocked
------ ------ -------
ExampleBot 12 1
SomeCrawler 240 0
OtherSpider 1850 0

Bots with no visits in the access log are not shown. Each run also adds a line to /var/log/go/bots.log.

See the full reference at /go/bots and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *