Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7

Thread: A Script

  1. #1
    Join Date
    Jun 2007
    Location
    Kent
    Posts
    4,101
    Tokens
    981

    Latest Awards:

    Default A Script

    that i can only view a page, but others get re-directed to the maintainace page..?

    +Rep

  2. #2

    Default

    I can think of two ways to do this but it relys on a static IP. You could make a script in PHP that checks your IP to the one set in the file if not redirect else show the page. Otherwise you can deny/allow certain ip's via the htaccess file. I'd presume the PHP script would be easiest.

    Edit: The other way and most common is using a password that only you know again can be achieved by the simple authentication htaccess / htpasswd etc. files or by making a PHP script same condition applies, PHP would be easiest I'd presume.
    Last edited by Iszak; 30-01-2009 at 04:15 PM.

  3. #3
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    If you want a simple, temporary, easy solution.. that doesn't require too much about security..

    Just set a cookie on the page, load it up in your browser and let it set it.. then remove the set cookie code, and replace it with a simple script to check the cookie.

    If the cookie doesn't exist.. redirect and exit, otherwise display the site.

    You can put this in a config file and have it across the entire site. Simple.

  4. #4
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Do an IP check, if its an IP for someone thats allowed in then load the page, else redirect? Slightly simpler than calebs idea but more of a pain if people have dynamic IPs.


    www.fragme.co = a project.

  5. #5
    Join Date
    Jun 2007
    Location
    Kent
    Posts
    4,101
    Tokens
    981

    Latest Awards:

    Default

    What about a password protect page?
    And code for it?

  6. #6
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    You can do it via Cpanel.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  7. #7
    Join Date
    Jun 2007
    Location
    Kent
    Posts
    4,101
    Tokens
    981

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    You can do it via Cpanel.
    I know that, but i get this error:

    Warning:
    Due to Frontpage Extensions currently being installed and enabled, password protected directories will not work. If you wish to use this feature instead of Frontpage, please disable the Frontpage extensions.

    You can use Frontpage directly to create password protected directories just like you normally can here. Alternatively, you can disable frontpage extensions and still use Frontpage to publish the site design via Webdav or FTP.
    Edit: Done now!
    Last edited by RyanDOT; 31-01-2009 at 10:26 AM.

Posting Permissions

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