- Messages
- 3,534
- Reaction score
- 196
- Points
- 63
As I understand it
due to the way FREE x10hosting's load balancer is setup....
assume IP 000.000.000.000 is bad guy
.htaccess file with this
Will NOT block the bad guys IP
my server that this .htaccess file is on
only sees the IP of the server that feeds it
Using PHP I can see - but AFTER the bad guy is inside
These hold the bad guys IP
$_SERVER[HTTP_X_FORWARDED_FOR]
$_SERVER[HTTP_X_REAL_IP]
$_SERVER[REMOTE_ADDR]
This holds the IP of the server that feeds our server
which is the IP that is tested in .htaccess
$_SERVER[SERVER_ADDR]
So how can I block the bad guys ????
Thanks
due to the way FREE x10hosting's load balancer is setup....
assume IP 000.000.000.000 is bad guy
.htaccess file with this
Code:
<Files *>
order deny,allow
deny from 000.000.000.000
</Files>
Will NOT block the bad guys IP
my server that this .htaccess file is on
only sees the IP of the server that feeds it
Using PHP I can see - but AFTER the bad guy is inside
These hold the bad guys IP
$_SERVER[HTTP_X_FORWARDED_FOR]
$_SERVER[HTTP_X_REAL_IP]
$_SERVER[REMOTE_ADDR]
This holds the IP of the server that feeds our server
which is the IP that is tested in .htaccess
$_SERVER[SERVER_ADDR]
So how can I block the bad guys ????
Thanks