Closed Thread
Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By descalzo

Thread: cPanel Request

  1. #1
    merlintm's Avatar
    merlintm is offline x10Hosting Member merlintm is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    7

    cPanel Request

    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.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: cPanel Request

    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 by descalzo; 07-11-2011 at 03:19 PM.
    merlintm likes this.
    Nothing is always absolutely so.

  3. #3
    merlintm's Avatar
    merlintm is offline x10Hosting Member merlintm is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    7

    Re: cPanel Request

    Quote Originally Posted by descalzo View Post
    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.

  4. #4
    merlintm's Avatar
    merlintm is offline x10Hosting Member merlintm is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    7

    Re: cPanel Request

    You can close this support request. Thank you.

Closed Thread

Similar Threads

  1. request for cpanel password
    By donald_jfe2630 in forum Free Hosting
    Replies: 1
    Last Post: 06-07-2011, 03:11 AM
  2. Request assistance to log into cpanel
    By abridutoit94 in forum Free Hosting
    Replies: 2
    Last Post: 08-27-2010, 08:08 AM
  3. request for cpanel log in
    By eezeee in forum Free Hosting
    Replies: 1
    Last Post: 06-24-2010, 01:33 PM
  4. CPanel Password - reset request
    By redminer7 in forum Free Hosting
    Replies: 0
    Last Post: 01-30-2010, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers