QuickTopic (SM) free message boards QuickTopic (SM) free message boards
Skip to Messages
  Sign In to access your topic list  |New Topic |My Topics|Profile
Upgrade to Pro   Customize, show pictures, add an intro, and more:   QuickTopic Pro...and check out QuickThreadSM
Topic: FA:OSX / lazysearch.php
Printer-Friendly Page
All messages    << 11-13  10-10 of 13  1-9 >>
About these ads
Who | When
Messagessort recent-top    (not accepting new messages)
TheGS  10
09-28-2003 04:41 AM ET (US)
Edited by author 09-28-2003 04:51 AM
I finally installed it on my iBook and another machine (my main web server) and it works great.

For my iBook, I did made the changes in NetInfo by copying localhost and doing the usual. However, lookupd on the laptop is configured to consult cache, FF, DNS, then NetInfo. So, I also modified /etc/hosts just to be sure.

For the other machine, I wanted to share the functionality with all the other machines on my network, so I added a DNS alias, configured the virtual host appropriately. Then, since I was going to leave it exposed to the Internet, I modified the script to restrict the use of locate and top.

My modifications simply check if $_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR'] to see if we're being accessed from the same machine, and using in_array() to check if the $SEARCH_TYPE is in the restricted list. Not so complex that I feel the need to present a patch file.

Works like a charm.

Might I also suggest wp=>Wikipedia?
e.g. http://www.wikipedia.org/wiki/Steve_Jobs
RSS link What's this?
All messages    << 11-13  10-10 of 13  1-9 >>
QuickTopicSM message boards
Over 200,000 topics served
Learn more Frequently asked questions  Acknowledgements
What they're saying about QuickTopic
 Questions, comments, or suggestions? Contact Us
Read our use policy before beginning. We value your privacy; please read our privacy statement.
Copyright ©1999-2008 Internicity Inc. All rights reserved.