Print Page | Close Window

Restricting Access

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=1569
Printed Date: 30 March 2026 at 2:45pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Restricting Access
Posted By: snatchby
Subject: Restricting Access
Date Posted: 03 April 2003 at 12:42am

is there a way to use this script to restrict other pages on the web site using the same login info?

thanks




Replies:
Posted By: dj air
Date Posted: 03 April 2003 at 1:50am

what version are you useing.... 6.34 or V7

this is for v7

ive implimented this feature on my site (members area)... what you need to do is add the common.asp to each page you want to restrict (make sure you make the paths in the common.asp file to virtual (use / )....

then include it in your page ... and then if you dont want to stop guest accessing the page

add this code below the common.asp file

if blnGuest = True then response.redirect "/forum/insafficiant_permissions.asp"

if you want the admin to only access this page use

if NOT blnAdmin = True then response.redirect "/forum/insafficiant_permissions.asp"

use the same for moderators exceopt change it to blnModerator

 

for v6.34 download this zip which had the permissions and common.asp and a read me file about it

http://www.breathofair.awsnet.co.uk/permissions.zip - zip file



Posted By: snatchby
Date Posted: 03 April 2003 at 3:55pm

so i copy the content from the common.asp to the top of the pages i want restricted??



Posted By: dj air
Date Posted: 04 April 2003 at 8:37am

yes but also add one of the following

if blnGuest = True then response.redirect "/forum/insafficiant_permissions.asp"

if you want the admin to only access this page use

if NOT blnAdmin = True then response.redirect "/forum/insafficiant_permissions.asp"

use the same for moderators exceopt change it to blnModerator

thats for must be a admin , moderator or guest .... also dont forget to make the paths to the include files virtual ie /frorum/



Posted By: xeerex
Date Posted: 04 April 2003 at 5:28pm

You don't have to copy all the content from common.asp. Just have it as on include on the page you want to restrict. Then add the "if statements" that DJ indicated above.

With DJ's help, I was able to implement this with v6.34 easily on one of my sites. The security for v7 should basically be the same just more groups to deal with if you make more than the default groups.



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: fernan82
Date Posted: 04 April 2003 at 7:17pm
or you can use http://forums.webwiz.net/forum_posts.asp?TID=843&PN=2 - this mod i made. It's basically the same as the common.asp, only i removed most of the code that's not needed so it won't affect performace much and also won't update the last date you visit the forum by just visiting a page on your site as it would if you just include the common.asp on every page.... also i've set it so you'll only have to edit which groups you want to be able to access the page and edit your db info.....read the readme file if you're gonna use it...

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: snatchby
Date Posted: 05 April 2003 at 10:57am

hey xeerex do you mind terribly telling me the exact line to put in and which file to put it in and where to put it in....thanks - cuz i dont know ASP.



Posted By: snatchby
Date Posted: 06 April 2003 at 3:34am
do all the pages i want restricted have to be ASP also??


Posted By: faubo
Date Posted: 06 April 2003 at 12:26pm

yep,

just rename the .htm to .asp



-------------
http://www.conhecerparaconservar.org - I don't know how to make you click here



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