dcole.ath.cx Posted August 24, 2006 Share Posted August 24, 2006 I host my own website on my own server and I'm looking for a way that a script could login to dyndns.com and update my ip address for me.I would run it in cron and everything would be automated... any ideas? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 24, 2006 Share Posted August 24, 2006 if you use everydns.net (must own your own domain though (unless you can change dcole.ath.cx away from dyndns nameservers to ns1.everydns.net, etc) it gives you a PERL or Windows script to use to update your dns.I set the Windows script as a scheduled task and my dns is updated every hour Link to comment Share on other sites More sharing options...
justsomeguy Posted August 24, 2006 Share Posted August 24, 2006 If they don't provide an automated way to do it, you would probably want to get a program to monitor the HTTP headers you are sending, like Proxomitron or something like that. Go through the login process and update your IP, and make a note of all the headers that get sent in the different steps. Then you can write a script that just sends the same headers. Link to comment Share on other sites More sharing options...
Little Goat Posted August 25, 2006 Share Posted August 25, 2006 just use a form that automatically submits to the same place the other form submits using javascript, and fill in the correct values using php. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 25, 2006 Author Share Posted August 25, 2006 Sounds good... I will try making a form that does it. Since the program only works on the server... and there's more than one account (since I don't manage other people stuff) Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 <script>onload=function submitForm(){ document.formName.submit(); setTimeout(submitForm,3600); //submits every hour}</script> Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 25, 2006 Author Share Posted August 25, 2006 I went with: <script language='javascript'><!--setTimeout('document.myForm.submit()',5);//--></script> anyway, I have to go to a login page and submit a form, then another page with the IP address form... How would I made it so I stay on my site, or go back to my site? Do I want it to open in a frame? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 Have the forms in there own iframes. Set the main page to refresh every 10 minutes or something so it reloads the forms int he ifrmaes Link to comment Share on other sites More sharing options...
justsomeguy Posted August 25, 2006 Share Posted August 25, 2006 Also, the second parameter to SetTimeout is in milliseconds, so a value of 5 will submit the form 200 times every second and probably get your IP banned. Link to comment Share on other sites More sharing options...
SFB Posted August 25, 2006 Share Posted August 25, 2006 Also, the second parameter to SetTimeout is in milliseconds, so a value of 5 will submit the form 200 times every second and probably get your IP banned.think if you submitted to a guestbook 200 times ever second. man they would have one cloged up server. banning of dcole's ip would not be good because it is the same as the ip to his server. that would mean that his site and mine would go down Link to comment Share on other sites More sharing options...
aspnetguy Posted August 25, 2006 Share Posted August 25, 2006 oops thats right it should be 3600000 instead of 3600 in my script to make it every hour Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted August 26, 2006 Author Share Posted August 26, 2006 I'm a smart person... I have the script check to see if my site is down before it even goes to there site... so then I can check it often with out them getting mad. Also since it's php it uses my user-agent so they will no know it's a automated script. Link to comment Share on other sites More sharing options...
SFB Posted August 26, 2006 Share Posted August 26, 2006 I'm a smart person... I have the script check to see if my site is down before it even goes to there site... so then I can check it often with out them getting mad. Also since it's php it uses my user-agent so they will no know it's a automated script.too bad your server got hacked. 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