Print Page | Close Window

Page and Directory protection

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=11825
Printed Date: 09 April 2026 at 1:16am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Page and Directory protection
Posted By: Yeltum
Subject: Page and Directory protection
Date Posted: 15 September 2004 at 5:48pm

Hi,

Sorry, I have a few questions !

I am using the following code to enable me to only allow registered users of the forum to see 'normal' asp pages:

<!--#include virtual="\forum/common.asp" -->

<!--#include virtual="\forum/functions/functions_date_time_format.asp" -->

<%

' If user is not logged in (and has Guest status), redirect to the log in page

If intGroupID = 2 Then

Response.Redirect("/forum/login_user.asp?FID=0")

End If

%>

This works fine to not allow guests access to these pages, but how can I modify it to allow registered members and members in private groups access, but not guests ?

I wondered if it is possible to protect an entire directory of files (that are available for download) and not just the page(s) that link to them. I am on a windows server.

I haven't installed the Web Wiz mailing list yet, but is it compatable with the forum: i.e. can a member modify their choosen email lists preferences by just being a member of the forum ? (Currently I am using a category of my forum for an email list !).

Thanks for your help,

Regards




Replies:
Posted By: FreeMen
Date Posted: 16 September 2004 at 7:30am

You could write this:

<% If intGroupID = 2 Then %>

Content for nonmembers

<% Else %>

Content for members

<% End If %>



-------------
http://www.tomtom-user.dk - TomTom-User.dk
Running WWF SQL with more than 32.000 members...



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