Skip to content

Commit

Permalink
New bots, detection and stability
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Grimaud committed Apr 20, 2015
1 parent 7616735 commit 5f0544a
Show file tree
Hide file tree
Showing 11 changed files with 210 additions and 51 deletions.
2 changes: 1 addition & 1 deletion release/doc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2 title="net.pieroxy">net.pieroxy.*</h2>
<!-- -->
</a><code>public&nbsp;static&nbsp;final&nbsp;java.lang.String</code></td>
<td><code><a href="net/pieroxy/ua/detection/UserAgentDetector.html#VERSION">VERSION</a></code></td>
<td class="colLast"><code>"2015.04.12.08.04.GMT"</code></td>
<td class="colLast"><code>"2015.04.20.21.55.GMT"</code></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion release/doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ <h2 class="title">U</h2>
<dd>&nbsp;</dd>
<dt><a href="./net/pieroxy/ua/detection/UserAgentDetector.html" title="class in net.pieroxy.ua.detection"><span class="strong">UserAgentDetector</span></a> - Class in <a href="./net/pieroxy/ua/detection/package-summary.html">net.pieroxy.ua.detection</a></dt>
<dd>
<div class="block">This is the documentation for the version 2015.04.12.08.04.GMT of the library.</div>
<div class="block">This is the documentation for the version 2015.04.20.21.55.GMT of the library.</div>
</dd>
<dt><span class="strong"><a href="./net/pieroxy/ua/detection/UserAgentDetector.html#UserAgentDetector()">UserAgentDetector()</a></span> - Constructor for class net.pieroxy.ua.detection.<a href="./net/pieroxy/ua/detection/UserAgentDetector.html" title="class in net.pieroxy.ua.detection">UserAgentDetector</a></dt>
<dd>&nbsp;</dd>
Expand Down
19 changes: 17 additions & 2 deletions release/doc/net/pieroxy/ua/detection/BotFamily.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,21 @@ <h3>Enum Constant Summary</h3>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/BotFamily.html#HIDDEN_BOT">HIDDEN_BOT</a></strong></code>
<div class="block">A robot that hides as a regular browser.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/BotFamily.html#ROBOT">ROBOT</a></strong></code>
<div class="block">A generic robot.</div>
</td>
</tr>
<tr class="rowColor">
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/BotFamily.html#SPAMBOT">SPAMBOT</a></strong></code>
<div class="block">A spam bot.</div>
</td>
</tr>
<tr class="altColor">
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/BotFamily.html#UNKNOWN">UNKNOWN</a></strong></code>
<div class="block">Unknown type of bot</div>
</td>
Expand Down Expand Up @@ -233,6 +238,16 @@ <h4>SPAMBOT</h4>
<div class="block">A spam bot.</div>
</li>
</ul>
<a name="HIDDEN_BOT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HIDDEN_BOT</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/BotFamily.html" title="enum in net.pieroxy.ua.detection">BotFamily</a> HIDDEN_BOT</pre>
<div class="block">A robot that hides as a regular browser. There are considered to be nefarious (because they hide.)</div>
</li>
</ul>
<a name="CRAWLER">
<!-- -->
</a>
Expand Down
78 changes: 57 additions & 21 deletions release/doc/net/pieroxy/ua/detection/Brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,29 +142,35 @@ <h3>Enum Constant Summary</h3>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#AMAZON">AMAZON</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#APPLE">APPLE</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#APACHE">APACHE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ARCHOS">ARCHOS</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#APPLE">APPLE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ASK">ASK</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ARCHOS">ARCHOS</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ASUS">ASUS</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ASK">ASK</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#AVANT">AVANT</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ASUS">ASUS</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BAIDU">BAIDU</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#AVANT">AVANT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BANANAFISH">BANANAFISH</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BAIDU">BAIDU</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BANANAFISH">BANANAFISH</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BE">BE</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#BOULANGER">BOULANGER</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#CHROMIUM">CHROMIUM</a></strong></code>&nbsp;</td>
</tr>
Expand Down Expand Up @@ -415,48 +421,51 @@ <h3>Enum Constant Summary</h3>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#SONY">SONY</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#SUN">SUN</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#SRWARE">SRWARE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#TENCENT">TENCENT</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#SUN">SUN</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#TOSHIBA">TOSHIBA</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#TENCENT">TENCENT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNIXLIKE">UNIXLIKE</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#TOSHIBA">TOSHIBA</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNKNOWN">UNKNOWN</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNIXLIKE">UNIXLIKE</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNKNOWN_ANDROID">UNKNOWN_ANDROID</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNKNOWN">UNKNOWN</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UTSTARCOM">UTSTARCOM</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UNKNOWN_ANDROID">UNKNOWN_ANDROID</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#VIVALDI">VIVALDI</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#UTSTARCOM">UTSTARCOM</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WEBIN">WEBIN</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#VIVALDI">VIVALDI</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WIKO">WIKO</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WEBIN">WEBIN</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WINDOWS">WINDOWS</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WIKO">WIKO</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YACI">YACI</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#WINDOWS">WINDOWS</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YAHOO">YAHOO</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YACI">YACI</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YANDEX">YANDEX</a></strong></code>&nbsp;</td>
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YAHOO">YAHOO</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#YANDEX">YANDEX</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../net/pieroxy/ua/detection/Brand.html#ZTE">ZTE</a></strong></code>&nbsp;</td>
</tr>
</table>
Expand Down Expand Up @@ -690,6 +699,15 @@ <h4>ILEGEND</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> ILEGEND</pre>
</li>
</ul>
<a name="BOULANGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BOULANGER</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> BOULANGER</pre>
</li>
</ul>
<a name="LINKEDIN">
<!-- -->
</a>
Expand Down Expand Up @@ -1158,6 +1176,15 @@ <h4>KYOCERA</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> KYOCERA</pre>
</li>
</ul>
<a name="SRWARE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SRWARE</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> SRWARE</pre>
</li>
</ul>
<a name="ALCATEL">
<!-- -->
</a>
Expand Down Expand Up @@ -1311,6 +1338,15 @@ <h4>OPENSOURCE</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> OPENSOURCE</pre>
</li>
</ul>
<a name="APACHE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>APACHE</h4>
<pre>public static final&nbsp;<a href="../../../../net/pieroxy/ua/detection/Brand.html" title="enum in net.pieroxy.ua.detection">Brand</a> APACHE</pre>
</li>
</ul>
<a name="VIVALDI">
<!-- -->
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2 title="Class UserAgentDetector" class="title">Class UserAgentDetector</h2>
<pre>public class <span class="strong">UserAgentDetector</span>
extends java.lang.Object
implements <a href="../../../../net/pieroxy/ua/detection/IUserAgentDetector.html" title="interface in net.pieroxy.ua.detection">IUserAgentDetector</a></pre>
<div class="block">This is the documentation for the version 2015.04.12.08.04.GMT of the library.</div>
<div class="block">This is the documentation for the version 2015.04.20.21.55.GMT of the library.</div>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion release/doc/net/pieroxy/ua/detection/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h1 title="Package" class="title">Package&nbsp;net.pieroxy.ua.detection</h1>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../net/pieroxy/ua/detection/UserAgentDetector.html" title="class in net.pieroxy.ua.detection">UserAgentDetector</a></td>
<td class="colLast">
<div class="block">This is the documentation for the version 2015.04.12.08.04.GMT of the library.</div>
<div class="block">This is the documentation for the version 2015.04.20.21.55.GMT of the library.</div>
</td>
</tr>
</tbody>
Expand Down
Binary file modified release/user-agent-detector.jar
Binary file not shown.
4 changes: 4 additions & 0 deletions src/net/pieroxy/ua/detection/BotFamily.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public enum BotFamily { /**
*/
SPAMBOT("Spam bot",true ),
/**
* A robot that hides as a regular browser. There are considered to be nefarious (because they hide.)
*/
HIDDEN_BOT("Hidden bot",true ),
/**
* A robot used to crawl the web (Google's crawler, Bing's crawler, etc.)
*/
CRAWLER("Web Crawler",false ),
Expand Down
3 changes: 3 additions & 0 deletions src/net/pieroxy/ua/detection/Brand.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public enum Brand { HAOSOU("Haosou", "http://www.haosou.com"),
TENCENT("Tencent Holdings Limited", "http://www.tencent.com/en-us/index.shtml"),
CLOUDMOSA("CloudMosa Inc", "http://www.cloudmosa.com/contact"),
ILEGEND("iLegendSoft, Inc.", "http://www.ilegendsoft.com"),
BOULANGER("EssentielB", "http://www.essentielb.fr/"),
LINKEDIN("LinkedIn", "http://www.linkedin.com"),
BANANAFISH("Bananafish Software", "http://bananafishsoftware.com"),
WEBIN("Webin", "http://webinhq.com"),
Expand Down Expand Up @@ -74,6 +75,7 @@ public enum Brand { HAOSOU("Haosou", "http://www.haosou.com"),
DELL("Dell", "http://www.dell.com"),
COMPAQ("Compaq", "http://www.compaq.com"),
KYOCERA("Kyocera", "http://global.kyocera.com"),
SRWARE("SRWare", "http://www.srware.net/en"),
ALCATEL("Alcatel", "http://www.alcatelonetouch.com/global-en"),
FUJITSU("Fujitsu", "http://www.fujitsu.com"),
LOGICOM("Logicom", "http://www.logicom-europe.com"),
Expand All @@ -91,6 +93,7 @@ public enum Brand { HAOSOU("Haosou", "http://www.haosou.com"),
LUNASCAPE("Lunascape", "http://www.lunascape.tv"),
CHROMIUM("The Chromium Project", "http://www.chromium.org"),
OPENSOURCE("An Open Source Project"),
APACHE("Apache Software Foundation", "https://www.apache.org"),
VIVALDI("Vivaldi Technologies", "https://vivaldi.com"),
KDE("KDE", "http://www.kde.org"),
ACCESSCO("Access Co. Ltd.", "http://www.access-company.com"),
Expand Down
Loading

0 comments on commit 5f0544a

Please sign in to comment.