org.dspace.statistics.util
Class SpiderDetector
java.lang.Object
org.dspace.statistics.util.SpiderDetector
public class SpiderDetector
- extends Object
- Author:
- kevinvandevelde at atmire.com, ben at atmire.com
|
Method Summary |
static void |
main(String[] args)
Creates a file containing spiders based on an apache logfile
by analyzing users of the robots.txt file |
static Vector<String> |
readIpAddresses(File spiderIpFile)
Reads the ip addresses out a file & returns them in a vector |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpiderDetector
public SpiderDetector()
main
public static void main(String[] args)
throws Exception
- Creates a file containing spiders based on an apache logfile
by analyzing users of the robots.txt file
- Parameters:
args -
- Throws:
Exception
readIpAddresses
public static Vector<String> readIpAddresses(File spiderIpFile)
throws IOException
- Reads the ip addresses out a file & returns them in a vector
- Parameters:
spiderIpFile - the location of our spider file
- Returns:
- a vector full of ip's
- Throws:
IOException - could not happen since we check the file be4 we use it
Copyright © 2009 The DSpace Foundation. All Rights Reserved.