Print Page | Close Window

Search results when not logged in

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14714
Printed Date: 12 April 2026 at 8:42pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Search results when not logged in
Posted By: jpullam2
Subject: Search results when not logged in
Date Posted: 16 April 2005 at 8:37am
I know this is probably the way it is designed, but I just discovered that someone can do a search and get the search results without having to login. This is a big problem for me because sometimes on our closed forums, the topic titles themselves include sensitive information.
 
What I'd like is for a search request to say "you aren't logged in" or "you don't have permission" or equivalent. (And hiding the button isn't good enough because a skilled user can fake the request.) Ideally a search request should only search those forums and topics which a user will have the authorization to read.
 
Can someone tell me how to do that ... perhaps a simple mod ???



Replies:
Posted By: dj air
Date Posted: 16 April 2005 at 8:52am
this is a performace reason. you can add to the SQL statement thats executed for the results to have a check on certain forums

between the WHERE and Order SQL statements add

if ingLoggedInUserID = 2 then strSQL = strSQL & " AND NOT ( strTablePrefix & "ForumID = forum number) "

you can duplicate the section in brackets using AND duplicated..

this is a MOD and better than doing a check on every forum.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net