Jump to content


Shuting Site Down


8 replies to this topic

#1 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 01 October 2006 - 06:06 PM

Hi, well I was wondering how to do a site shut down like P2L did for hammer time so that you couldn't get on the forums, home page, images etc. Is there an easy way to do this?

Thanks,

dEcade

#2 ProjectWhat

    Young Padawan

  • Members
  • Pip
  • 75 posts

Posted 01 October 2006 - 06:13 PM

Dunno, never really had this problem. If you dont have alot of files you could back them up.

#3 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 01 October 2006 - 07:24 PM

View PostdEcade, on Oct 2 2006, 12:06 PM, said:

Hi, well I was wondering how to do a site shut down like P2L did for hammer time so that you couldn't get on the forums, home page, images etc. Is there an easy way to do this?

Thanks,

dEcade

No help to you but when Dan done that he allowed us in via our IP address, unsure how he done it, thought it was pretty neat as we could see everything whilst you guys were out in the hallway.

#4 l3lueMage

    Wanna Be Moderator

  • Publishing Betazoids
  • PipPipPipPip
  • 4,596 posts
  • Gender:Male
  • Location:San Francisco Bay Area

Posted 01 October 2006 - 08:15 PM

decade if its just you seeing the site, maybe you can just set it so no admin and stuff can read so set all folders to 000 or something...with permissions, I think its 000 or is it 111 XD I forget but yea just set permissions to none. Easiest way to do it. Dunno if you will be able to see the site yourself though lol.

Or have a test directory?...and when everything is setup in the test directory just reupload to the main directories or something.

#5 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 01 October 2006 - 10:16 PM

We did it using .htaccess. As Donna said, we denied everyone from the website apart from admins IPs.

unless you are using a sub-directory for your new site, users will get a 403 Forbidden error because even the 403.htm file is blocked. But you can add the 403 html directly into the .htaccess file like we did for Hammertime.

#6 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 02 October 2006 - 01:38 AM

On lostphotograph I currently have setup an array of 'allowed' IP addresses. Check their IP, if it matches do nothing, if the IP isn't in the array move them to a page. I tried doing it with .htaccess but then had issues with all of the mod rewrite links I have.

Matt

#7 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 02 October 2006 - 06:50 PM

Thanks, this really helps :P I will just have to figure out how to use .htaccess to do this. Also I noticed I spelt shutting wrong lol.

dEcade

#8 Devilman

    Young Padawan

  • Members
  • Pip
  • 24 posts

Posted 03 October 2006 - 07:48 AM

Simple really if you don't want people to view the site place a .htaccess file in the main directory and simply allow only your I.P address or others I.P's too. Give users an error like Site Under Construction so they don't think the sites down!
 If you have a custon 403 error page, it is a good idea to have it stored off your site. Because when the blcoked party tries to access your site, it will redirect him/her to the 403 error page. Now if that page is stored on the same server that the person is blocked there will be some confliction.

If you want to deny all users and allow just certain ips do this:

deny from all
allow from 00.000.00.00

allow from 00.000.00.00
Hope that helps.

#9 dEcade

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 1,850 posts
  • Gender:Male
  • Location:Saskatoon, Saskatchewan
  • Interests:Guitar, Programming, Storm Chasing, Games (Designing and playing), Hockey, Photography

Posted 04 October 2006 - 04:49 PM

Thanks, I figured it out already. I guess you guys can close this :biggrin:

dEcade





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users