Skip to content

YOURLS/dont-log-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Don't Log Bots Listed in Awesome YOURLS!

Plugin for YOURLS 1.6+.

Description

Ignore bot hits in your stats (both click count as seen in the main admin page and in detailed stats).

Installation

  1. In /user/plugins, create a new folder named dont-log-bots.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins.php ) and activate the plugin.
  4. Have fun!

License

YOURLS' license, aka "Do whatever the hell you want with it". YOURLS - MIT License

More

The list of bot user agent strings has been compiled from one of my own YOURLS setup: user-agents looking like bots with more than 100 hits. There is no reliable way to determine if a client is a bot or not.

To check user agents on your own setup, you can try this query:

SELECT DISTINCT `user_agent` as ua, COUNT(*) as c FROM `yourls_log` GROUP BY ua ORDER BY c DESC

About

Ignore bot hits in your stats (both click count as seen in the main admin page and in detailed stats)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages