epicfail Posted September 16, 2009 Share Posted September 16, 2009 is there away to make it so that some 1 has to register there email before they run my script so it sends there email addy to my email or something. Also would i be able to make it once they register they get emailed a code frommy email and have to enter that code in to start? codes different 4 every email? Link to comment Share on other sites More sharing options...
Cheez Posted September 16, 2009 Share Posted September 16, 2009 To be honest if you can't write something to do this, you haven't got something worth protecting. However, there are a couple of options: 1. Hardcode passwords into the script and hand the script out and give passwords with the script. Anyone knowing the password(s) could hand it out with the script. 2. Write some sort of algorithm that links an email to a password (like XORing them then transforming that with something to produce an expected result). Someone could share both details and the script. Or someone could deduce the algorithm and replicate it. 3. Have some sort of authoritative server, each time the script is run, it sends the credentials to the server which then sends an expected result result back if the credentials are correct. Most secure, especially if combined with #2 and include some anti-replay-attack code (XOR all data with a session-id or something similar). Link to comment Share on other sites More sharing options...
epicfail Posted September 16, 2009 Author Share Posted September 16, 2009 im not really trying to protect the script. I just want to make it so i have the email of the people using my program so i can send them emails when i have updates or emails saying anything. I wanted to have the code thing so people dont put in random emails if there is that code then there is more chance people put in there real email. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 You need a server. Do you have one? github.com/jvanegmond Link to comment Share on other sites More sharing options...
epicfail Posted September 16, 2009 Author Share Posted September 16, 2009 u mean like a webpage server? yeah i have one there is heaps of free ones on the net. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 Cool. You'll need one that supports a server language like PHP. Do you have that? github.com/jvanegmond Link to comment Share on other sites More sharing options...
epicfail Posted September 16, 2009 Author Share Posted September 16, 2009 yeah sure do Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 Then the AutoIt script will do this: $email = InputBox("","Enter your email") InetGet("http://yourwebsite/regmail.php?email=" & $email) Then the PHP file regmail.php will do this: $email = $_GET['email']; $fh = fopen("mails.txt", 'a'); fwrite($fh, $email . '\n'); // not sure about this newline but whatever lol fclose($fh); github.com/jvanegmond Link to comment Share on other sites More sharing options...
epicfail Posted September 16, 2009 Author Share Posted September 16, 2009 thanks. How would i make it so they need to enter in a code that my email sends them after they put in there password. or a activate link or something like that. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 (edited) AutoIt script stays the same. PHP file: // Determine type of request // Process email store request // Generate random activation number // Store email and activation number in database // Send mail message containing activation link // Process email activation request // Match the activation number with an email address // Mark the email address as valid // Output to user that subscription was success Edited September 16, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
epicfail Posted September 16, 2009 Author Share Posted September 16, 2009 i dont really understand that sorry Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 The most important thing that you need to be as a programmer (and entrepreneur) is a do-er. Someone that is not afraid to try new things out. So go ahead and learn PHP and MySQL. Find some tutorials on Google, and get going!! Just go out and build it. Good luck! github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now