Skip to content
WJunction - Webmaster Forum

Is it possible for a script to do this?

Status
Not open for further replies.

blkhtr007

Established Member
440
2013
129
Is it possible to make a script that auto detects down files, changes the checksum value and then reuploads them to filehost and then puts the new link on the wordpress post?

What kind of direction should I look in order to make such a script?
 

3 comments

looks doable, but considering you asked that kind of question you'll have long and fun time making it (unless you pay someone to do it ofc)

I personally would do something like this (have in mind that i'm still a newb, and i'm talking about bash programming here):

1) have a list of URLs
2) get the filehost web page of the file with curl, grep some keywords like "this file has been removed" or similar
3) if there's a match, reupload (can also be done with curl)
4) replace the download link, I guess directly in the mysql, but dunno how things work there with wordpress
 
If you wanted the script efficiently you would have to have the option to get it to change the MD5 as well. Sounds like a great idea.
 
If you wanted the script efficiently you would have to have the option to get it to change the MD5 as well. Sounds like a great idea.

that's like 1 line of code

Code:
echo 0 >> file.rar

works just fine, it was mentioned somewhere on this forum. however filehosts often ban filenames too, so it should be renamed, probably to some random string
 
Status
Not open for further replies.

About the author

B
Established Member · Joined
440
Messages
129
Reactions
156
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom