|
|
||||
Using DShield's Data Feeds |
|||||
|
Be proactive. You can incorporate DShield summaries in your own web pages so your page can also display the "Current Most Active Attacking IP" or the Current Most Scanned Port". Also see the Link Back page for DShield banner graphics. How to do itThere are several methods you can choose from. The general idea is that you use some code that can read from one of the summary data files that we supply at http://feeds.dshield.org, parse the records into data fields and then display the data fields you choose surrounded by whatever explanatory text you want. See the sample code section, below. "Live" Graphics
This graphic is updated once an hour with the latest top attacker information. Use this code to display the above graphic. (But if you are a high traffic site, please download the graphic from a cron job once an hour.)
Data files in http://feeds.dshield.orgThe data files are tab delimited. They are ASCII files with each data record on a separateline. Each field is delimited with a TAB (ASCII 9) character. This makes it easy to separate the fields with a split command. See the sample code, below, for examples. Field numbers start at 0. Current Most Active Attacking IPs 0 = IP Address Current Most Scanned Ports
0 = Short Description RSS Format Summary data in .RSS format. Links to information about RSS.
Sample PHP codeTo have your page display Current most scanned port from Virginia Tech DShield is 47808 udp(17) include this code in your page. Adjust to taste. You probably should add better error checking. (It doesn't handle "file not found" too gracefully.)
To display the Current Most Attacking IP, use the same code, but substitute top10.txt for topports.txt. To display the entire list, modify the code to loop through the entire data file, rather than just reading the first record. Have it your way. Your web server must support PHP. See http://www.php.net for more information, including excellent on-line documentation. |
|||||
|
[ Home | Login | What's New | Intro | Submit | Clients | Web Submission | All Reports | Links | About | Privacy ] |
|||||
|
last update: 07/Nov/2009 07:29 DShield is a Servicemark of Euclidian Consulting |