cPanel Request

Status
Not open for further replies.

merlintm

New Member
Messages
7
Reaction score
0
Points
1
It would be nice if you would consider adding the standard IP Deny Manager under the Security section in cPanel, so that we could block spammers who attempt to flood our web sites with numerous logins.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
All cPanel does is add a "deny" line in .htaccess .

The problem is that in the current x10 loadsharing setup, this does not work (the IP .htaccess sees is the IP of the loadbalancing server, not the IP of the request).

Manually, you can add lines like:

Code:
RewriteCond %{HTTP:X-Forwarded-For}     ^130\.65\.11\.68$  [OR]
RewriteCond %{HTTP:X-Forwarded-For}     ^110\.95\.14\.62$  
RewriteRule ^(.*)$ sorry-but-you-are-blocked.html [L]
 
Last edited:

merlintm

New Member
Messages
7
Reaction score
0
Points
1
All cPanel does is add a "deny" line in .htaccess .

The problem is that in the current x10 loadsharing setup, this does not work (the IP .htaccess sees is the IP of the loadbalancing server, not the IP of the request).

Manually, you can add lines like:

Code:
RewriteCond %{HTTP:X-Forwarded-For}     ^130\.65\.11\.68$  [OR]
RewriteCond %{HTTP:X-Forwarded-For}     ^110\.95\.14\.62$  
RewriteRule ^(.*)$ sorry-but-you-are-blocked.html [L]


Hello descalzo,

Thanks for the explanation. I will edit my .htaccess file using your suggested format.
 
Status
Not open for further replies.
Top