Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Page and Directory protection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Page and Directory protection

 Post Reply Post Reply
Author
Yeltum View Drop Down
Newbie
Newbie


Joined: 15 September 2004
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Yeltum Quote  Post ReplyReply Direct Link To This Post Topic: Page and Directory protection
    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

Back to Top
FreeMen View Drop Down
Groupie
Groupie


Joined: 19 November 2003
Location: Denmark
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote FreeMen Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2004 at 7:30am

You could write this:

<% If intGroupID = 2 Then %>

Content for nonmembers

<% Else %>

Content for members

<% End If %>

TomTom-User.dk
Running WWF SQL with more than 32.000 members...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.