IP BAN ????
Posted by: Bilal (---.upc-f.chello.nl)
Date: March 12, 2006 09:08PM


I have a question,

how do I ban IP adresses from my server ???

I have a guy that keeps visiting my site,
but i don't want him to visit on my site, because
he keeps trying to break into my server...

How do I ban his ip adress from my server ???

I already got his IP adres....

Somebody please ???

Thanks in advance,
Bilal

Options: ReplyQuote
Re: IP BAN ????
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 12, 2006 11:46PM

this is an easy one.... You need to place a file in your www folder called .htaccess Useing the deny from setting, you can block IP addresses, IP blocks, and even certiain websites.

To deny an IP address, use:

order allow,deny
deny from 123.45.6.7
allow from all


To deny an IP block, use:

order allow,deny
deny from 123.45.6.
allow from all


If you want to ban a website, use this format:

order allow,deny
deny from .somedomain.com
allow from all


After you have written your .htaccess file, save it, and restart apache. Also, make sure Windows does not save the file as htaccess.txt, or it will not work.



Post Edited (03-12-06 23:50)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: IP BAN ????
Posted by: Bilal (---.upc-f.chello.nl)
Date: March 13, 2006 01:34PM

Thanx a lot man,

this guy keeps fucking up my website !!!

And if i want to ban more ip adresses ??

I have to put them behind each other separated by a comma ???


Thank again !!!



Post Edited (03-13-06 13:36)

Options: ReplyQuote
Re: IP BAN ????
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 13, 2006 03:25PM

use a new deny from line for each ip address:

order allow,deny
deny from 123.45.6.7
deny from 234.56.7.8
allow from all

Options: ReplyQuote


Sorry, only registered users may post in this forum.