Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Blocking Everyone .htaccess

 
Lifelesspeople.com Forum Index -> Web Architects' Abode
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
Scott
tutorialtoday.com


Joined: 24 Mar 2005
Posts: 2632
Location: Mississauga, Ontario

PostPosted: Mon Apr 28, 2008 7:39 pm    Post subject: Blocking Everyone .htaccess Reply with quote

How can I block everyone from viewing my site (and automatically show a certain page) except allow me to view it normally, by specifying my IP. I have done this before but I can't remember how I did it.
_________________
Tutorial Management Script - Version 1.4 Released
TutorialToday - Up and running, submit your tutorials!
Linux Tutorials - Coming Soon
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 3980
Location: A particular geographic area

PostPosted: Tue Apr 29, 2008 6:32 pm    Post subject: Reply with quote

Using Allow, Deny and ErrorDocument directives should work. Something like this perhaps:
Code:
ErrorDocument 403 /403.html
Deny from all
Allow from youriphere

_________________
Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img]
Back to top
 
ruyss
Proud 2 B lifeless


Joined: 08 Jul 2004
Posts: 2618
Location: Belgium

PostPosted: Thu May 01, 2008 11:17 am    Post subject: Reply with quote

Does the solution by ClickFanatic work? And if it does, would it be possible to allow multiple ip's, so you can create a private site just for you and a couple of friends? I'm a total noob when it comes to .htacces so forgive me for my stupid questions Very Happy .
_________________
.// Proud to be Lifeless for more then 4 years \\.
Back to top
 
LP-SolidRaven
Dictator of the Dump


Joined: 06 Jun 2004
Posts: 7182
Location: The cheese is made out of moon

PostPosted: Thu May 01, 2008 12:14 pm    Post subject: Reply with quote

ruyss wrote:
Does the solution by ClickFanatic work? And if it does, would it be possible to allow multiple ip's, so you can create a private site just for you and a couple of friends? I'm a total noob when it comes to .htacces so forgive me for my stupid questions Very Happy .

If you want it to work with logins you could just use cpanel's web access manager I guess.
_________________
Quote:

<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 3980
Location: A particular geographic area

PostPosted: Thu May 01, 2008 5:51 pm    Post subject: Reply with quote

ruyss wrote:
Does the solution by ClickFanatic work? And if it does, would it be possible to allow multiple ip's, so you can create a private site just for you and a couple of friends? I'm a total noob when it comes to .htacces so forgive me for my stupid questions Very Happy .

You can allow multiple IP addresses, but if you want to build a private site I would recommend setting up HTTP authentication. You can do this in cPanel (Web Protect, under Site Management).
_________________
Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img]
Back to top
 
ruyss
Proud 2 B lifeless


Joined: 08 Jul 2004
Posts: 2618
Location: Belgium

PostPosted: Fri May 02, 2008 5:09 am    Post subject: Reply with quote

Thanks guys, I'll try this out. If I run into problems I'll just ask again Smile .
_________________
.// Proud to be Lifeless for more then 4 years \\.
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4709
Location: Down Under

PostPosted: Fri May 02, 2008 7:02 pm    Post subject: Reply with quote

ruyss, to use multiple IPs, just add more "allow" lines, e.g.

Code:
Deny from all
Allow from ip1
Allow from ip2
Allow from ip3
[...]
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 3980
Location: A particular geographic area

PostPosted: Sat May 03, 2008 6:18 am    Post subject: Reply with quote

You can also put multiple IP addresses and/or (partial) hostnames on a single line. Separate them using spaces.
_________________
Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img]
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Web Architects' Abode All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com