Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Spammers sometimes bumble across real addresses by randomly creating names in a way similar to yours. They don't care if it's a low-yield enterprise, as long as it's not a zero-yield enterprise. You may be slowing their spiders, but are you assisting their name guessing?

Your legit-spider check is a multiple line regex without the /x modifier. Are you sure you're matching what you think you're matching? And what happens when spammers adjust their spiders to spoof a friendly google spider?

Tiny nit: your comment says you're choosing 1000 words but you pick 2000 instead. Don't include any magic numbers in comments, they're just prone to become stale as you adjust the code. This falls along the lines of my maxim, "Strategy in comments, tactics in code." The code snippet in question is already near-literate, so why babble? Save the comments for things that aren't visually obvious: the setup is heavy with comments but the main loop needs a little help.

--
[ e d @ h a l l e y . c c ]


In reply to Re: Can-o-Raid v1.0 by halley
in thread Can-o-Raid v1.0 by hacker

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-18 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found