Go Back  HTML Forums - Free Webmaster Forums and Help Forums > TOOLS OF THE TRADE > Software and Hardware Info
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 05-17-2008, 01:25 PM
  #1
jwretallack
Novice (Level 1)
 
Join Date: May 2008
Posts: 2
iTrader: (0)
jwretallack is an unknown quantity at this point
denying access from specific IP's

Hello, new member here...
Question: On an apache server how can I deny access to people coming from certain IP's without using a password for everyone. I have used an .ht access file before to set a password but this time I just want to deny access to certain IP's. Possible?
John
jwretallack is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-17-2008, 04:17 PM
  #2
Thirsty Ferret
Yo1nk!
 
Thirsty Ferret's Avatar
 
Join Date: Apr 2006
Location: Reading, UK
Posts: 2,205
iTrader: (0)
Thirsty Ferret will become famous soon enough
Hi there, and welcome!

Yes it's certainly possible. I can't remember off the top of my head, but a little googling came up with a nice solution on this website: http://home.golden.net/htaccess.html (scroll down to the section entitled Restricting by IP address)

You can do two methods, ban everyone then allow certain individuals through and only ban certain people.

I believe there were some htaccess generators on those google results too, you may find them useful
__________________
Thirsty Ferret is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-17-2008, 11:06 PM
  #3
jwretallack
Novice (Level 1)
 
Join Date: May 2008
Posts: 2
iTrader: (0)
jwretallack is an unknown quantity at this point
It Works!

I added my own IP to the .htacess file and got blocked. Removed it and got access. Perfect. Many Thanks!
jwretallack is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
« Previous Thread | Next Thread »


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 11:07 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.