Hi David,<br><br>Yes I should have mentioned I had to provide a http proxy so lynx could get the start file from the lynx website.<br><br>Do you know how I can change lynx so it resolves the provided IP locally?<br><br>Pete
<br><br><div><span class="gmail_quote">On 18/05/06, <b class="gmail_sendername">David Goodwin</b> <<a href="mailto:david@codepoets.co.uk">david@codepoets.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
pete graham wrote:<br>> I am setting up some PHP scripts that will be called by cron. Since I<br>> have PHP installed as an apache module I was planning to use lynx to<br>> load the PHP file.<br>><br><br>Do you have a $http_proxy set?
<br><br>> I am testing this on my dev server first, however I have found that Lynx<br>> seems to ignore the Virtual Hosts that I have specified in /etc/hosts<br>> file, and therefore cannot connect to any of the sites on my Dev server.
<br><br>It's always respected ip/hostname mapping from /etc/hosts before for me.<br><br>> Does anyone know how this can be fixed or an alternative method that I<br>> can use?<br><br>I think you're probably using a http proxy somewhere, which is doing the
<br> dns lookup, instead of your local machine.<br><br>><br>> In case anyone is interested I am checking that the client IP is the<br>> same as the server IP in the files for security reasons, so only the<br>> server itself can call the cron pages.
<br><br>You could just use a .htaccess (or similar) in Apache to restrict access<br>to a cron.php file based on IP address etc.<br><br>David.<br><br>--<br>David Goodwin<br><br>[ david at codepoets dot co dot uk ]<br>[ <a href="http://www.codepoets.co.uk">
http://www.codepoets.co.uk</a> ]<br><br>_______________________________________________<br>Phpwm mailing list<br><a href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a><br><a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm">
https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><br></blockquote></div><br>