Blocking IPs from accessing your site

  • Thread starter Thread starter Sushubh
  • Start date Start date
  • Replies Replies 5
  • Views Views 4,731

Sushubh

Admin
Staff member
Messages
408,332
Location
Gurgaon
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]
 
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
 
well if we do not specify the last three digits, it covers a lot of possible users still 😛
 
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
 
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.