PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

PHP header in Search_Template.html

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP header in Search_Template.html

    We have a custom php header used to secure our pages. It
    checks to see if a user is logged in, has auth to view the
    page and, if they don't, forwards them to a login screen.

    Is it possible to use this php header on the search page?
    The indexer is indexing sensitive information that we do not
    want people searching unless authorised. (eg. if we do as suggested in
    http://www.wrensoft.com/zoom/support/faq_ssi.html people can still "fumble" upon the search page and access the info)

    We use offline indexing and upload the files via ftp.

    If you need any more information, just reply back and I'll
    get back to you ASAP.

  • #2
    Using the methods recommended in the FAQ will work, except if you worry that people will be able to somehow gain knowledge on the hidden location of the search.php file (which wouldn't be possible unless they have access to your web server and/or can see the source code to your PHP page).

    An alternative would be to add your custom PHP header to the "search.php" file itself. You can do this by clicking on "Templates" -> "Modify search script source code (Advanced)" in the menu.

    Note however, that modifications made to the search script can not be supported if anything goes wrong. We recommend making a backup of the original script, so that you can revert to the original should your changes affect the functionality of the script.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...
    X