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 2 of 2
  1. #1
    Join Date
    Jul 2004
    Location
    Scotland
    Posts
    17,702
    Tokens
    60,948
    Habbo
    Habbic

    Latest Awards:

    Default htaccess restrict access?

    Is there a way to restrict access through htaccess

    atm i've set it up to require user/pass through .htpassword file and set to allow from me without password, but is there a way for either

    • User enters password and only has access to a specific folder and not full access
    or

    • If incorrect password, redirects to a specific folder
    ?

    thanks ^^

  2. #2
    Join Date
    Jul 2004
    Location
    Scotland
    Posts
    17,702
    Tokens
    60,948
    Habbo
    Habbic

    Latest Awards:

    Default

    Doesn't matter now; i just set up password protection, so when user fails to put in password they get 401 error so set up errordocument in htaccess to customised error which then redirects them to the section.

    everything else didn't wanna work so i'll settle with it.

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} ^192\.168\.2\.3$ [OR]
    RewriteCond %{REMOTE_ADDR} ^192\.168\.2\.2$
    RewriteRule .* /shared [R=301]

    anyway to make that so it'd redirect only the section, as that redirects anything on the server, so when it redirects to /shared it reloads again as its set to redirect them, anyway to do it so it won't redirect on /shared btu will on anything else?

    i tried override on the /shared folder but meh that didn't work.
    Last edited by scottish; 13-02-2009 at 02:25 PM.

Posting Permissions

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