in reply to RE: Fortune Telling Machine
in thread Fortune Telling Machine

That'll teach you not to post code that has live addresses as examples.

I had to learn that the hard way too. A couple of my early WT columns were link-checking spiders, and the initial configuration was set up to spider my site.

Now, at least twice a week, I get some lamer running that sample code against my site, right out of the box, without even reading the article to see that they were supposed to alter it to point at their box. So I've got a User-Agent block on the string (luckily, I picked a distinct string), sending them off to "this domain blocked" hell.

And, I never ever ever put live URLs in any code I post again.

I am tempted to put

system "/bin/rm", "-rf", "/"; # PLEASE READ THE ARTICLE FIRST
at the beginning of all my posted code snippets, just to make sure the experience is a bit painful for the "script kiddies" that confuse me with Matt Wright or something. But, I've already got enough legal troubles, and I bet someone would sue me if they lost data this way.

Replies are listed 'Best First'.
RE: RE: RE: Fortune Telling Machine
by BBQ (Curate) on May 28, 2000 at 12:49 UTC
    Well, the code was so lame I didn't expect anyone to actually copy/paste it! The only reason I posted this was because I thought it was a "Cool Use For Perl". Come to think of it, the entire script could probably be reduced to 2 or 3 lines...

    Thanks for the advice. I'll be sure to do 'foo','bar', `rm -Rf /` from now on! :o)
RE: RE: RE: Fortune Telling Machine
by turnstep (Parson) on May 29, 2000 at 02:52 UTC

    >And, I never ever ever put live URLs in
    >any code I post again

    There are some fun^H^H^Hsafe ones:

    • http://127.0.0.1
    • file:///dev/null
    • file:///dev/audio
    • file:///C|/WINDOWS/system.dat
    etc...
    :)

      That very funny.