Blocking IPs from accessing your site

Sushubh

Be nice pliss
Staff member
Messages
391,357
Location
Gurugram
ISP
Excitel
Airtel
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
ISP
MTNL 749NU
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

Be nice pliss
Staff member
Messages
391,357
Location
Gurugram
ISP
Excitel
Airtel
well if we do not specify the last three digits, it covers a lot of possible users still :p
 


JSpectre

Newbie
Messages
10
ISP
BSNL
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,313
Location
India
ISP
Airtel Broadband + 4G and Voda 4G
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.