Access Control.pdf

(780 KB) Pobierz
Mailing List
Dynamic Content
1
Access Control
& Mailing Lists
Access control lets you apply security to your website, either
to restrict access to specific pages or to control user access to
forums, blogs, and other Serif Web Resource features. In
WebPlus, this is managed with a User List Smart object.
Another useful function of the User List Smart object is the
ability to quickly create mailing lists.
In this tutorial, we’ll show you how to:
Set up access control.
Configure, manage, and edit user groups.
Suspend and block IP addresses and users.
Create a mailing list.
This tutorial assumes that you have already
registered for a Serif Web Resources
account. If you are unsure how to do this, see
the tutorial Counters & Polls or see online Help.
690946228.009.png
2
Dynamic Content
Access Control & Mailing Lists
Access Control & Mailing Lists
The User List Smart object has two modes— access control and mailing list .
The access control mode allows you to
easily control who can access the pages
of your site, forums, blogs and other
objects.
In mailing list mode, the User List object
allows website visitors to sign up to
newsletters, party confirmations,
information requests, and many more.
Lists can be controlled manually or by
self-subscription.
In this tutorial, we’ll look at both modes, starting with access control.
To access the Smart
objects ,you need to log in to
Serif Web Resources . If you
don’t have a valid username and
password you must first create a
Serif Web Resources account -
see online Help or the Counters &
Polls tutorial if you are unsure
how to do this.
Setting up access control
There are often times when you want to restrict access to certain pages
within your site. Perhaps you have personal photo galleries that you only
want friends and family to see, or you want to be able to monitor and
control who uses your web forum. This is where the User List Smart
object can help.
The User List - Access Control mode lets you apply security across
your site (typically to specific pages of your site). In this exercise, we’ll set
up an Access Control Smart object to set security on our gallery page.
Once we’ve done that, we can reuse the access control for our Forum in
the next tutorial.
To set up access control
1 Start a new site, or alternatively, open the scuba.wpp file from the
Workspace folder.
2 On the Web Objects toolbar, click the
Smart Object Tool and
log in to Serif Web Resources.
3 In the Smart Objects dialog, click New .
Workspace folder
In a standard installation, you’ll find this folder in the following
location:
C:\Program Files\Serif\WebPlus\X4\Tutorials\Workspace
690946228.010.png 690946228.011.png
Dynamic Content
3
Access Control & Mailing Lists
4 In the Create Smart Object dialog,
select the User List option and click
OK .
5 In the Create Smart Object dialog,
name your access control object.
If you want to create an on-the-page
user login, set the properties of the
text, buttons, background, and
border.
6 Click Create . Your new Smart object is
listed in the Smart objects Library.
Adding users to the User List
Access control is based around a user list (i.e. a complete list of users who
are registered on your site) and one or more user groups. Users can be
added to the user list in two ways:
Automatically - when a visitor registers or signs up on your site or
forum.
Manually - by adding a user in the Manage dialog. This is most useful
when you want to restrict access to certain pages on your site and you
have a dedicated list of people to add immediately.
As we are going to password protect our Gallery page, we’ll start by
manually adding some users to the list. Let’s do this now.
To manually add a user to the User List
1 In the Smart
object library,
select your User
List - Access
Control Mode
object and click
Manage .
The Users
section already
contains one
user—this is
your Serif Web
Resources login
email address.
690946228.012.png 690946228.001.png 690946228.002.png
4
Dynamic Content
Access Control & Mailing Lists
2 In the Add New User pane, type
the user email address into the Email
field.
3 Leave the default settings
(recommended) and click Add User .
The user is
added to the
list and will
receive a
confirmation
email with their
login details.
4 Add any other users.
If you clear the Require Activation check
box, the user will is automatically activated.
They will be able to log in to the page with
access control immediately.
Configuring access control
Now that we’ve created a new User List Access Control object, the next
step is to configure our users and groups.
To create user groups
1 Click the Smart Object Tool .
2 In the Smart Objects Library, select your User List - Access
Control Mode object and click Manage .
3 In the Manage dialog, click the Groups tab.
Currently, the list of groups is empty. As we are going to set security
on our gallery page, let’s create a ‘Gallery access’ group.
4 Under Create New Group :
Type ‘ Gallery access ’ in
the Group Name box.
Ensure that the Add new
users on signup option
is cleared.
690946228.003.png 690946228.004.png 690946228.005.png 690946228.006.png 690946228.007.png
Dynamic Content
5
Access Control & Mailing Lists
Click Create Group .
5 The Group
Management panel
displays the settings that
you’ve just created. For
now, click Done .
6 In the User Group
Management pane, the
Group drop-down list
displays the name of your
new group.
Notice that the group list
is empty. Let’s now add some users.
To manually add users to a group
1 On the Groups tab, ensure that your new group is selected.
2 To add users one at time:
In the Users section, click to select a user name from the list.
Click Add .
- or -
To add all users in the list, click Add All .
3 Once added to the group, the users appear in the group list.
4 Click Exit .
Now that your ‘Gallery access’ control group is created, we can set up the
page security on our photo gallery page. Let’s do this now.
690946228.008.png
Zgłoś jeśli naruszono regulamin