Results 1 to 8 of 8

Thread: Passwording a page

  1. #1
    Junior Member
    Join Date
    Apr 2015
    Posts
    3

    Default Passwording a page

    There should be a simple password protected page feature that people can access a page only if they have the password. Not a user signup and choose a password that is there now but just a secure page as mentioned. This would be very useful for an organization that wants to give their members access to a "Members only" page within a public site.

  2. #2
    Senior Member franko's Avatar
    Join Date
    Apr 2010
    Location
    Tasmania Australia
    Posts
    2,642

    Default

    This is very easy to do using an .htaccess file. Most hosts provide for password protecting pages through their control panels (which makes creating a .htaccess file automatic).

  3. #3
    Junior Member
    Join Date
    Apr 2015
    Posts
    3

    Default

    Thanks for the tip... I will check it out.

  4. #4
    Senior Member Since_v4's Avatar
    Join Date
    Mar 2014
    Location
    Caribbean
    Posts
    674

    Default

    Quote Originally Posted by franko View Post
    This is very easy to do using an .htaccess file. Most hosts provide for password protecting pages through their control panels (which makes creating a .htaccess file automatic).
    Hi there,

    The most frequently used is cPanel on Unix servers.
    With .htaccess you can also block certain IPs from visiting your web site.

    John
    John - I am born to tease, not to please.
    For NOF beginners: read everything here and practice on mock web sites first.
    Before asking a question, search to see if it has not been asked and answered already.

  5. #5
    Senior Member Since_v4's Avatar
    Join Date
    Mar 2014
    Location
    Caribbean
    Posts
    674

    Default

    Quote Originally Posted by Since_v4 View Post
    Hi there,

    The most frequently used is cPanel on Unix servers.
    With .htaccess you can also block certain IPs from visiting your web site.

    John
    Here is a sample of how the .htaccess file blocking specific IPs looks like

    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    deny from xx.xx.xxx.x - xx.xx.xxx.x
    deny from xx.xx.xxx.xxx
    deny from xxx.xxx.xxx.x/xx
    deny from xxx.xxx.
    deny from xx.xx.

    <Limit GET HEAD POST>
    order allow,deny
    allow from all
    </LIMIT>

    The .htaccess file must be uploaded to the root directory.

    Believe me, there is information (patents, copyrights and the likes) which some top people (web site owners) do not want to be seen in x, y, z countries.
    Last edited by Since_v4; 06-06-2015 at 02:12 PM.
    John - I am born to tease, not to please.
    For NOF beginners: read everything here and practice on mock web sites first.
    Before asking a question, search to see if it has not been asked and answered already.

  6. #6
    Junior Member Jonrub's Avatar
    Join Date
    Jun 2016
    Location
    Spain
    Posts
    3

    Default

    Hi Since , would you know indicate how you should place a range of IP correctly? I ask because I'm afraid to block the Ips of real users. Thanks in advance
    Thanks Alot

  7. #7
    Senior Member Since_v4's Avatar
    Join Date
    Mar 2014
    Location
    Caribbean
    Posts
    674

    Default

    Quote Originally Posted by Jonrub View Post
    Hi Since , would you know indicate how you should place a range of IP correctly? I ask because I'm afraid to block the Ips of real users. Thanks in advance
    Hi there,

    Look at xx.xx.xxx.x - xx.xx.xxx.x
    What do you think it does?


    Same for xxx.xxx.xxx.x/xx

    xxx.xxx. blocks all IPs with numbers that start with xxx.xxx.
    John - I am born to tease, not to please.
    For NOF beginners: read everything here and practice on mock web sites first.
    Before asking a question, search to see if it has not been asked and answered already.

  8. #8
    Senior Member Since_v4's Avatar
    Join Date
    Mar 2014
    Location
    Caribbean
    Posts
    674

    Default

    Go to http://whatismyipaddress.com/

    and play with the numbers in the .htaccess file.
    You shall soon figure it out how it behaves.
    John - I am born to tease, not to please.
    For NOF beginners: read everything here and practice on mock web sites first.
    Before asking a question, search to see if it has not been asked and answered already.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •