Protect a Page

Hello

with this code I can hide the menu point "HOT OFFER" linked to the hotoffers.php page, so ONLY connected the user can see it, BUT when NOT connected the user gives the url in the browser xxxx.com/hotoffers.php, he can see the page without connection, then how can I solve this in a simple way

< div id = "Visibility" >

< nav >

< ul >

< li > < a href = "index.php" > HOME < /a > < /li >

< li > < a href = "aboutus.php" > ABOUT US < /a > < /li > ""

< li > < a href = "services.php" > SERVICES < /a > < /li > ""

< li > < a href = "#" > ACCOMMODATIONS < /a > < /li >

< li > < a href = "#" > OUTSOURCING < /a > < /li >

<? PHP if (isset($_SESSION['MM_Username'])) {? > < li > < a href = "hotoffers.php" > HOT OFFER < /a > < /li > <? ' "} PHP}? >

< li > < a href = "#" > CONTACT < /a > < /li >

< /ul >

< / nav >

< / div >

Thank you

Top of the page put this over another PHP block:

<>

If (! isset {session_start() ;})

If (! isset ($_SESSION ['MM_Username'])) {}

Header ('Location: path_to_login_page.php "");

"exit";

}

?>

[CODE CORRECTED AFTER SUBMISSION]

Tags: Dreamweaver

Similar Questions

  • Excel password protect each Page/tab/sheet

    Is it possible to password protect each page/tab on in an excel file? I have many representatives of sales that day private offers data via this file reports and fear that others might pass this info here if they every left organization.

    Thank you

    You can use the button to 'protect the worksheet' Review tab to protect each sheet changes, but someone capable of opening the file could post pages.

    You should consider alternatives such as:

    1. Office 365, SharePoint, a personalized list of configuration and restrict who can reach the content based on their assigned areas or this sales
    2. A file Excel separate for each person with different passwords on each, all stored in the same folder, so you can easily combine them back into a single file if necessary.
  • Adding the feature of research on firewall protected Intranet Page built with Dreamweaver

    Adding the feature of research on firewall protected Intranet Page built with Dreamweaver

    My company uses Dreamweaver to publish a Handbook of 'owner '. The author's site uses static HTML and Dreamweaver CS6 to create its content. There are about 100 web pages. We are looking to add a search function for all pages can search the entire site for key words of text.

    • I do not have to rebuild the site and with the help of PHP and database search is possible;
    • We can not use external services such as a link to Google Search the nature delicate and confidential of the content;
    • The use of JavaScript on each page to search text is not useful (the last page contains not only "a lot of text" is simply to find the appropriate final page that is troublesome.) Thus, at the time where ever you get to the end page, info you need are clear. It happened on this last page that takes too much digging right now, which is the impulse to our desire to add a search function that helps to reduce users 'conjecture' down to a few options, rather than "many" that we have.

    Two results I hope that the community can help us with is: is such a feature of search, even possible with HTML contained static? And if so, and suggestions would be most appreciated.

    In a nutshell, we are looking for an option search strings in a private website so that we can reduce the clickable users options based on the keywords they enter into a search box.

    Thank you.

    PS: We use Dreamweaver CS6

    Watch the Wrensoft Zoom.

    Manual indexing runs entirely on your end.  Ideal for sites Intranets closed, CDs, etc...

    Nancy O.

  • Password protect a Page in Muse

    I want to password protect a page on Muse and have implemented a secure British Colombia area. I can't find where you can set the user name and password. Can do you it alone using a registration form where the user selects a user name and password? Any help would be appreciated. Thank you.

    In Business Catalyst, you can add the user to the client tool and then you can subscribe them to the secure area.

    They will receive an email sent to them to confirm and implement a password.

    You can also do it by using a form, that the person meets.

    bcgurus.com has some excellent video tutorial on Security Zones.

  • How to password - protect a page? Try encrypted password script, worked once, don't now...

    I need a script to database password - protect a page on the website of our company. There's nothing that needs to be protected, but would introduce more professional if it was only the employees who could access it. I do not want to use any kind of server-security - if it is possible to do it with a simple script, it would be preferable.

    I tried this: http://www.dynamicdrive.com/dynamicindex9/password.htm

    It worked the first time - I entered the name of user/pw and it took me to the right page. Then I tried again, and it just redirected me to the same login page. After trying a few times, it doesn't even recognize the user name and pw - I could type anything in and it would be just just refresh the page.

    -I just started to use dreamweaver, so please keep it simple...

    Hello

    If you really must use a simple javascript to protect, try http://www.javascriptkit.com/script/script2/loginpass2.shtml.

    PZ

  • BlackBerry Smartphones Blackberry Protect Web page problem

    I installed Blackberry Protect on my 9800 a few months ago.  I tested it by going to the web site from Blackberry.com/Protect by clicking on the link to the current location of the view.  This great worked as did all the other options on the page.

    Today I lost the phone home and decided to try the strong ring feature and I'm having a problem.  It seems that by clicking on ONE of the options (view location, strong ring, display a Message) will cause the computer screen go dim and a timer starts turning in the center of the page containing the word Loading... beside him.  Now, it has been so for about 30 minutes, with no sign of ever stopping.

    I found my phone at the same time, but it raises the question of what is happening with the web page?  I don't me remember the last time I tried that there was a problem with a long timeout.  The page does not show my phone correctly and identifies by my phone number, so it isn't a problem with not recognized.

    Any ideas what is happening or how to fix this?  The app is pretty useless without it.

    Mode of compatibility in Internet Explorer v9 solved the problem.

  • Password protect a page on my site

    How can I add a protection password to a page on my site?

    If you have Linux hosting, connect to C-Panel your server to create a password protected folder on your remote server.  Download page (s) on this issue.  IIs hosting, ask your webhost to help you to win.

    Nancy O.

  • Password protect a page on Muse

    I did a site in Adobe Muse and would like to password protect pages. Ideally, having to type a password every time the URL is available (i.e. If someone copy/pastes the link, they would still have to type the password). Also, I would another user name and passwords for each page. If anyone knows how to create a directory in Muse also, that might solve all my problems.

    Here's where I came up short so far:

    -First Solution: Use the htaccess and htpasswrd

    Muse has created all its pages with no subdirectory and no option to create a subdirectories. This is how most of the forums described the problem. When I downloaded the files "htaccess" and "htaccess" in the area, it caused an error on the home page.

    -Second solution: use the Widget of Muse - Themes.com
    http://widgets-musethemes.BusinessCatalyst.com/tb005.html

    I'm willing to give up some money to download this, however, this widget requires a password by clicking on the link. It does not actually protect the url itself. This means that anyone can copy and paste the URL into a browser and it will load without security.



    NOTES

    -It doesn't have to be super safe, but would like to make is not readily available to the public URL.
    -The pages will have links to a DropBox, that will all change a few months. Which means I'll have to make updates on the site. Would prefer to have only update my Muse file when this happens.

    Let me know if you need more information, I hope that I made this semi clear. Any help is greatly appreciated!

    Hello

    Muse is a design software. To create a secure login page, you need a database to store the data of the clients. For the database, you need a server. You need to create the authentication feature, etc.. The Muse aims to design Web sites. Type of secure connection feature, please contact your hosting provider. If you are hosting the site in British Colombia, you can use the secure area of the province of British Colombia according to your site map.

    Kind regards

    Aish

  • disables the State protection of pages without argument running session

    Hi all



    Components shared = > Security = > authentication schemes = > Application Express - current

    I did the steps of folowwing:

    Components shared = > Security = > Protection of the State of Session = > button Set Protection
    in the screen folowwing press Enable followed by next
    in the next screen, tap the Protections of State Session enable



    in the page components shared > Session State Protection > Protection of the Session State by Page

    the two page 0 and 1 are unrestricted

    STIL, I can't start my application

    page error 1:
    No checksum has been provided to show the processing of a page that requires a checksum when one or

    ask more, clear the cache, or argument values are passed as parameters.


    page 0 and 1 have no element

    Page 1 has a region of the type list
    and uses the list available on page 0, but using a list template override od Pull Down Menu with

    Image of the same list on page 0 has a model list of Menu DHTML with sublist



    I am at a loss of the EUL solutions is the protection of the session off all State





    Help, please

    KR
    Martin

    It's a quirk in how the login page is called using the deep link, created by the manufacturer. To work around this problem, you can set page 101 to Unrestricted so that no amount of control is necessary.

    Scott

  • How to use mode live view in Dreamweaver CC with protect pages.

    Sorry I'm french how to use mode live view in Dreamweaver CC with a protect page. display live, tell me it's unable to connect. So I need to protect my pages

    Thank you

    Ok.  Keep .htaccess on your remote server.

    In the site local files Panel, F2 (rename) to the old.htacess.htacess.

    Which will disable the file .htacess on your local computer only.

    Nancy O.

  • How to password protect page (s) in Muse

    Hello world

    I need to password protect pages in Muse for an important customer.

    They say 10 portals to customers on their Web site.

    I spent 2 days on this now and not later.

    Before make us any other please DO NOT recommend those password widgets because they are unnecessary and not at all sure.

    Please see what I just wrote in my 123reg provider hosting (Apache Web server).


    I've set up a test page on my own website - password - test.html, downloaded from my site from Adobe Muse via FTP again and then the password file test.html in a folder called password.

    First, I tried the following:

    http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/

    Note: I put the .htpasswd file (it's encrypted) in the root public_html not for 2 reasons:

    1) the author says he's more sure.

    2) I had no idea how to write the path if she was in the password file in the public_html.

    However, it is not good that my client needs multiple pages to be protected on their site, all different usernames and passwords.

    I used the following link and it worked it is to say I was invited for the user name and password and I could connect but instead of the test page I had set up I had my 500 custom error page.

    advanceconsult.co.uk/Password/password-test.html

    Realizing that put in the root would work for my needs, I then removed root .htpasswd and moved the folder password in the public_html and modified the .htaccess and then retested but that did not request username and password he comes to open 500 error page.

    Then, I deleted my .htaccess and .htpasswd in the password file and used your own password instead. It worked it is to say he asked me my username and password but I have not had the 500 error page only a load of headers etc. ie not the password test page.

    So, all I can think is that when the password test html page is moved to the folder that it loses its links with all the other files it calls to create the page.

    To be clear so I want to password protect say 10 different pages on the site with 10 names of distinct users and passwords (encrypted) and I need to be able to download the site of Muse to my host via FTP.

    I need an urgent resolution on this IE before Monday as I come to the client.

    Thank you all

    Mike

    Before go us any other please DO NOT recommend these password widgets because they are unnecessary and not at all safe.

    None are to some extent .htaccess and such things. I'm afraid you have a fundamental misunderstanding here. The simple answer is that what you want can be done with HTML simply and no access to the back-end server. What you have is simply a set of rules for the file and access to records, but without real authentication or encryption. Seriously, you need to consider using a dynamic interface.

    Mylenium

  • How can I set up a password protected Muse Web page?

    I was asked to password protect an area of a Web site, so that only users who have the password can enter and watch or download the PDF files here

    Hello

    Please see the links below who have suggestions for the same question.

    https://forums.Adobe.com/message/4406164

    Can I create a password protected for members only page?

    https://forums.Adobe.com/thread/1044919

    Password protect a page on Muse

    Concerning

    Vivek

  • Can I create a password protected for members only page?

    Can I create a password protected for members only page?

    Muse does not support this natively, but you could password protect the page with a simple cut and paste javascript - see this article: http://www.javascriptkit.com/script/cut10.shtml

    That should allow you to lock certain pages, and you can then provide a password for your users. You could also change the password every month, protect the directories/different sections of the site and so on.

  • How to create an entry page protected password for a site of muse?

    I created a site in the Muse and the client wants that it is password protected for the moment... the usual Javascript between the head and body tags does not work.  Any ideas?

    Hello

    Please check previous password protection:

    Can I create a login/password in the Muse for a HTML5 page or two?

    http://forums.Adobe.com/message/4406164

    There are several ways you can perform password protection, but as noted Cristian, there is no native way to do this in the Muse...

    The only way to password protect Muse pages today would be to implement of the secure areas of the coast accommodation of the House. If you host on Adobe Business Catalyst is quite possible, but requires a good knowledge of all BC content management system. You can get a quick idea of what it would take to set up such a secure area in this BC knowledge base article.

    Others have succeeded with services such as AuthPro.com, JavaScript password protection, or to implement protection of password files and folders in the control panel cpanel/control of their web hosting provider. This creates the so-called "http authentication". Here is an article on how to create the .htaccess and .htpasswd files to password protect your pages or directories using basic http authentication: password protect your Pages with htaccess

    Best regards

    Corey

  • Setting up a Web page password protection.

    Hi all

    I'm working on a proposal to set up an area of protcted password of the customer site (containing a list of the members) and understand there are different ways to do this.

    As I understand the simplest way, and one that I have done, is to password protect a directory on the server host. The disadvantage with this, seems, is that there is a universal user name and password that have been assigned to the directory, each user has to use. In other words, they cannot choose their own username and different password for everything everyone elses.

    So my question is, what are the other options to password protect a page or a directory on a site? I don't consider myself a great expert so simple would certainly be better for me.

    Thank you

    John.

    Look at safety Assist from WebAssist

    • PHP 5.2 +.
    • MySQL 5

    http://www.WebAssist.com/Dreamweaver-extensions/SecurityAssist/default.php

    Nancy O.


Maybe you are looking for