Blocking IPs from accessing your site

Sushubh

Administrator
[OP]
Oct 29, 2004
413,682
12,756
Gurugram
Every server is different but one of these 2 chunk of codes inside your htaccess file should work:


order allow,deny
deny from 123.123.123.123
deny from 234.234.234.234
allow from all
[/b]
deny from 123.123.123.123
deny from 234.234.234.234[/b]
 

ultra vires

O.o
Regulars
Nov 28, 2004
679
0
don think that is an effective way, most people hav dynamic IP so they easily get thru that.Anyway to ban MAC address:blink: , though even it can be changed but still offers better blockin
 

Sushubh

Administrator
[OP]
Oct 29, 2004
413,682
12,756
Gurugram
well if we do not specify the last three digits, it covers a lot of possible users still :p
 


power

supersupersuper...
Regulars
Dec 19, 2004
1,349
4
Mac address cant be done bcoz the arp packerts do not p@$$ routers i think :)
 

JSpectre

Newbie
Aug 3, 2008
10
0
don think that is an effective way, most people hav dynamic IP so they easily get thru that.
Anyway to ban MAC address:blink: , though even it can be changed but still offers better blockin

True,You can use this method against noob but not experienced professional.

best regards,
Spectre
 

ghpk

Now Visible in NCR ;)
Regulars
Aug 4, 2008
2,318
590
India
If its a cPanel based server, you can use "IP Deny Manager" to specify a Single IP or the Entire Range you wish to block.