Redirects are designed to help you keep the flow of your website while redirecting users and search
engines to the new location for content that has moved. Here you can specify a redirect in the form,
http://domain.com/redirectname that will instantly take you to any web address you specify.
A temporary redirect is used for content that may have moved to a new location, but isn't going to
be there forever. This sort of redirect generates a 302 (resource has moved temporarily). It doesn't
much matter to end users, but this code tells search engines not to update the resource location
with the new URL. A permanent redirect (which generates a 301 code) tells search engines that
the new location is permanent and they should update their records and stop linking to the old
URL for that resource.
Hotlink Protection: Stop People from Stealing Content
If you run a website where digital content (pictures, files, and so on) is your livelihood, then you
may want to turn on this feature. Hotlink protection will stop people on other websites linking
directly to your files unless they have approval from you.
To turn this on you need to define:
• The list of domains that are permitted to link to your files. cPanel will automatically
add any of your own domains to the list of approved domains but feel free to edit
these as needed.
• The list of file extensions (JPG, MP3, and so on) that you want to protect. cPanel
will automatically add a list of common file extensions but feel free to edit these
as needed.
• A URL to redirect people to if they try to hotlink to your files (typically a page on your
site that says Sorry, you can't access this file unless you are a member of my site.)
• If you want to allow people who manually type an address pointing to one of the
files on your website to access the file or if you want them redirected to the same
URL you entered above. To allow direct links, click the checkbox just above the
Activate button.
Click Activate to turn on hotlink protection. Click Deactivate to stop using hotlink protection.
Do not try to use this feature if you have FrontPage extensions installed (it won't work).
If you use FrontPage extensions, you need to use Microsoft FrontPage itself to manage
hotlink protection.
Password-Protect Directories
Do you have content in your website that you would like to restrict access to? cPanel makes the
process fairly painless. The first thing you have to do is to create a directory inside your
public_html directory that will contain your protected content. You can name it whatever you
like. You can use your FTP client to create this directory or you can use cPanel's file manager described earlier. Now come back to the Password Protection area. You will see a list of every
directory inside your public_html directory and a link for the current folder (which is your
public_html directory in this case). If you click the small icon of a folder next to the directory's
name, you will be able to see any directories nested inside that one. This way you can choose to
protect a nested directory. If you click on the actual name of the directory, you will be taken to the
security and account creation screen.
There are actually two separate things to do on this screen. The top half of this screen turns security
on and off for this directory. If you want security to be on, then click the checkbox next to the
Directory requires a password to access via the web item. Below that is where you can enter a short
name or phrase that will appear in the dialog box that pops up asking you for your username and
password. This item is purely optional, but it is a nice touch so that your users know what area they
are trying to log into, in case there is more than one secured area. If you are done you can click Save
and security will be set for that folder/directory.
You also need to create at least one authorized user or no one will be able to access the files in this
directory unless they log in as the administrator via FTP. To create a username and password, just
type them into the appropriate boxes and then click the Add New User button next to the Username
field,. This user will now appear in the Active Users list, which means they now have access to this
directory. Create as many users as you need. If you need to change the password of a user that has
already been created, then just type the user's exact username and then type in a new password and
then click the button next to the password field, Change Password.
You will then be notified that the
password for that user has been changed. When you are all done, then you can click Save to commit
all the changes you made. If the directory has been successfully secured, you will see a small lock
icon next to the folder icon for that directory. You cannot password-protect the public_html
directory via this feature in cPanel.
Do not try to use this feature if you are using the FrontPage extensions. FrontPage
handles page security through those server extensions rather than using the standard
directory protection feature. If you have password protection set in cPanel and you install
the FrontPage extensions, then all of your settings for password protection will be deleted
and you will need to use FrontPage to manage security until you remove the FrontPage
extensions, at which time you will have to re-enter all password protection information
into cPanel. |