Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: Ultimate anti-leech, anti-proxy, anti-bot, CAPTCHA works, link does not (code included)

by BrowserUk (Pope)
on Apr 21, 2013 at 07:24 UTC ( #1029727=note: print w/replies, xml ) Need Help??


in reply to Re^5: Ultimate anti-leech, anti-proxy, anti-bot, CAPTCHA works, link does not (code included)
in thread Ultimate anti-leech, anti-proxy, anti-bot, CAPTCHA works, link does not (code included)

If I could add the UNLINK feature of File::Temp to this, I'd be set!

Just one thought.

If you've ever had a long download interrupted just before it completes, and then discovered that the link became immediately invalid as soon as the download was interrupted thus preventing you from just completing the partial download and forcing you to start the whole process over from scratch, you might consider your users and abandon that idea.

I remember having to restart a 400MB download from IBM, 8 times before it completed properly. Given I was using a 56kb modem and it always seemed to get to around the 350MB mark before aborting, it was intensely frustrating.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^6: Ultimate anti-leech, anti-proxy, anti-bot, CAPTCHA works, link does not (code included)

Replies are listed 'Best First'.
Re^7: Ultimate anti-leech, anti-proxy, anti-bot, CAPTCHA works, link does not (code included)
by Anonymous Monk on Apr 21, 2013 at 08:09 UTC

    I remember having to restart ...

    I've been there, but a lot of the good anti-leech ... will let you resume with a new link, well using wget anyway (since it does its bytes/range getting based on filename/filesize, not url)

      but a lot of the good anti-leech ... will let you resume

      Did you read the bit I quoted?

      I wasn't suggesting the OP should drop anti-leaching; just his notion to have the temporary file or link disappear as soon as the script ends.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029727]
help
Chatterbox?
[choroba]: Low-end is defined as the Perl that generates millions of income
[choroba]: sorry, that's high-end, of coursse
[choroba]: low end, in my talk, will be code that "we don't touch because it works" and noone knows why
[choroba]: I want to present the most bizzare bugs and misfeatures I met when working for a large financial institution
[choroba]: I already gave a similar talk to my friends in a pub and at an internal conference at work and people liked it, so maybe...
[choroba]: LanX: That's the heritage, I can't do anything else
[RonW]: Sounds like some system my employer has "It does exactly what we need it to do and can't afford to risk anything we can't prove is 100% compatible"
[marto]: choroba sounds interesting
[RonW]: james28909 Why not write a Perl program to do the task?
[choroba]: RonW Yes, but then, one day, they needed to switch from FTP to SFTP, and... but I can't give the whole talk away here :)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-05-22 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?