obviscating python code for distribution

Chris Angelico rosuav at gmail.com
Wed May 18 14:37:30 EDT 2011


On Thu, May 19, 2011 at 4:31 AM, Dotan Cohen <dotancohen at gmail.com> wrote:
> The python code should not be concerned with DDoS, that is what
> iptables is for. Remember, never do in code what Linux will do for
> you.

In general, yes. Denial of service is a fairly broad term, though, and
if there's a computationally-expensive request that a client can send,
then it may be worth rate-limiting it. Or if there's a request that
causes your server to send out inordinate amounts of data, and you're
running it on a typical home internet connection, then that's a DOS
vector too. So it's not only an iptables issue.

But yes. The "system" is the entire system, not just the Python code
you're writing.

ChrisA



More information about the Python-list mailing list