I'm having issues posting to this page for some reason so I'm hoping that maybe a shorter post will help. Please check this pastebin page for the information about my question. I'm keeping my fingers crossed this post goes through.....

UPDATE:
I'm thinking that it was maybe some of my html tags I was using in the process of creating my post or maybe it was just too long as it was my very first post on this forum and I just registered 10 minutes ago. Probably a spam prevention measure I would think

Following content appended from paste bin by GrandFather

Hello Monks,
This is my first time here on your forums and I have absolutely no perl experience what-so-ever but I was hoping that someone could answer a question for me. I am working on creating a blacklist to block tor exit nodes to help thwart some of the attacks that I've been seeing take place on my website. I found a post with a perl script that will download the list of exit nodes and place them each on a new line. I'm always cautious about running a script on my machine that I have absolutely no idea what it does so I wanted someone to see if they could tell me if this is the case or not.

found is a list of all the tornodes updated every half an hour. This list SHOULD include the exit,entries and bridge nodes used to connect and browse through tor
use this perl script to gather the ips from a downloaded webpage
perl -lne 'print $& if /(\d+.){3}\d+/' downloadedwebpage.html > listof +ips.out
it will give you a list of ips, one per line. i have tried to find something that will do this without Perl script but after many hours searching i could not find one. hope this helps

I also found this link from the page referenced above that has the list of ips exactly how I want them to come through.

Does this seem like a reasonable solution to anyone? I would have to think there should be another way to do this but if this works they way the poster states then I might just use it. Anyone care to look at that code real quick and see if it would be safe and/or offer up a suggestion on a different solution to this. I'm trying to get the exit mode list downloaded every 30 minutes and have it update my systems banlist accordingly. I can handle the second part of this but I wanted some input as to getting the data onto my machine in the first place in a format that can be used for my banlist.

Thank you in advance for your assistance,

Bob

In reply to Question about a perl script by Aspec

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.