Passwort protected page

HI all,
I am brand new to Freeway Express and web design, and want to protect some pages of my homepage with a login and password. (I have no programming skills or such). After some searching, I found this link
http://www.zubrag.com/scripts/password-protect.php
where I would need to upload this password-protect.php file to the server, and then only have to add one line of PHP code to the page source.
Question - does Freeway Express have an option to show the code and let me add the line?

Or are there even simpler ways to protect certain areas of my homepage?

Your help is much appreciated,

Many thanks
Frank


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Or are there even simpler ways to protect certain areas of my homepage?

You cannot protect areas of your home page but you can protect web pages.

The easiest way to do this - and it requires no coding at all - it is to use a server feature called Password Protect Directories.

Have a look in your hosting Control Panel for it. With this you can assign username/password combinations to any folders on your site.

All you need to do in FW is put the pages you wish to protect within a folder in your FW site construction.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

since I use ipage as my host, I need to go to that site to the control panel and look there for Password Protect Directories?

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I need to go to that site to the control panel

Yes - most hosting providers provide this option.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Not sure if it works in Express, but the theory of this is:

  1. All your “to protect pages” need as file-ending .php (instead of .html Freeway creates by default) so just overwrite html with php.

  2. Choose: Page → HTML MarkUp… within that appearing new dialog window choose from the picker the very, very first entry: “before html (<>)” and insert this line of "<?php include … into the window.

  3. The path to the script. This is one of the biggest challenge cause each host (hosting-services) has a very specific “file organization”. This is something you have to figure out (or share a link to your current page).

As I said: it is the Pro way and it wouldn’t make me wonder if Express does not share the point 2.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Absolutely Thomas - but if you dont want to get your code feet wet then the easiest way is to do it through your cPanel interface.

And by making your page a .php page you also lose the ability to preview locally.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And by making your page a .php page you also lose the ability to preview locally.

D

HI, apolagies no hijack intended but feel this may be relavent for some at this point…

A way around this I find is to duplicate the page in question e…g. (index.html)

And change the extension to .php

you then have both an index.html & index.php

The .php is the one you want, so link evrything to this page etc…

The .html page is purely for local preview abilty! remember ANY changes you make to the .php page will NOT be viewable locally, unless they are applied to it’s MASTER page…

When you come to publishing the site, upload everything to server expect the pages you don’t need if you do it manually, or delete the .html page(s) you don’t need once you are happy with your site!

Viola!

Otherwsise making changes to the .php page & then deleting it will result in all links being lost, especially if this was a index.php page (BIG NO NO!!)

I’ve found saving every 5 mins as you work a great habbit, & making copies & major stages in builds eg V1, V2, V3 also helps in reverting back to stages in the build, reference only or if you make a major mistake that you can’t undo…

just pick up latest version & away you go…

Downfall of this… eats memory on your harddrive! ( so purchase external harddrive!)

Benefits, never loose your work! Ability to go back change, review & modify workings at major stages in your build! Has been a life saver for me in times gone past!

Worm


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Or, you can simply add a line to your htaccess file on your server, keep everything in .html, and have PHP interpret all of your html pages. (There is a very slight – possibly unmeasurable, depending on how studly your server is – delay imposed by this.)

Open up your .htaccess file in your cPanel or use Transmit to edit it directly. Add the following line near the top:

AddType application/x-httpd-php .php .html

Save the file, and visit any page in your site to test. If you don’t get a 500-series error, you’re good. You should be able to mix html and php within an .html file and have the whole thing Just Work™.

Walter

On Jun 13, 2012, at 7:07 AM, Mr worm wrote:

A way around this I find is to duplicate the page in question e…g. (index.html)

And change the extension to .php

you then have both an index.html & index.php

The .php is the one you want, so link evrything to this page etc…

The .html page is purely for local preview abilty! remember ANY changes you make to the .php page will NOT be viewable locally, unless they are applied to it’s MASTER page…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options