Blocking IPs from accessing your site

Sushubh

Administrator
Messages
426,209
Location
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]
 
Messages
678
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
Messages
426,209
Location
Gurugram
well if we do not specify the last three digits, it covers a lot of possible users still :p
 


power

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

JSpectre

Newbie
Messages
10
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 ;)
Messages
2,316
Location
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.
 



Top