Banning someone's IP from my website

5 posts Page 1 of 1
Contributors
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Hey I've problems recently with someone who managed to use a c99 script on my website, it's fixed now. However, I have part of his IP address from the website's chat but the last part is .xxxx, using .htaccess how can I deny him if I don't have the entire IP address? is it possible?
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

yes you can
but you have to access this .ht file for
you can block anything with that.
but im not sure if you block that they always fine a way to come back even with a other ip.
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

I was going to use this:

order allow,deny
deny from hisip.xxxx
allow from all

but I don't know the last 4 digits so do I leave it as x or take it out?
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

If you want to block a range you just need to leave the digits blank.
You could use something like this:

deny from 192.168.1
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Thanks Mandai
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
5 posts Page 1 of 1
Return to “Tutorials”