How to block an IP address?

Tshepo

Active member
Joined
May 18, 2013
Messages
72
Points
8
My website is being spammed by a IP adress, how can I block it?

Please share me any simple ways? Thanks
 

SenseiSteve

Web Hosting Sensei
Hosting Provider
Registered
Joined
Nov 11, 2015
Messages
275
Points
28
You can block this visitor via a .htaccess file. For example, to block a specific IP address while allowing all other IP addresses:

# allow all except those indicated here
<Files *>
order allow,deny
allow from all
deny from xxx.xxx.xxx.xxx
</Files>

Where xxx.xxx.xxx.xxx is the offending IP address.
Hope this helps.
 
Older Threads
Replies
9
Views
5,212
Replies
1
Views
2,024
Replies
7
Views
4,042
Newer Threads
Replies
6
Views
2,456
Replies
2
Views
3,610
Replies
4
Views
2,520
Replies
14
Views
5,003
Replies
26
Views
11,757
Latest Threads
Replies
1
Views
29
Replies
0
Views
197
Replies
1
Views
42
Replies
2
Views
84
Recommended Threads
Replies
2
Views
555
Replies
3
Views
2,384
Replies
8
Views
3,820
Replies
5
Views
4,188

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top