The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error 403 Forbidden

Discussion in 'General Discussion' started by Carlos Alberto, Jun 9, 2016.

  1. Carlos Alberto

    Carlos Alberto Registered

    Joined:
    Jul 6, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Good morning everyone, I have the following problem in cpanel.

    I have a User that al access his site hosted on our server and installed cpanel, you receive the error message 403 forbidem, but only for him and your internet connection, if it uses another connection access is normal and error, ask someone can help solve this?
     
  2. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Make sure that his IP address is not added in deny list in cPanel and check .htaccess file as well.
     
  3. Carlos Alberto

    Carlos Alberto Registered

    Joined:
    Jul 6, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Thankyou, ip not blocked, see my .htacces;

    Code:
    ##
    # @package  Joomla
    # @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.
    # @license  GNU General Public License version 2 or later; see LICENSE.txt
    ##
    
    ##
    # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
    #
    # The line just below this section: 'Options +FollowSymLinks' may cause problems
    # with some server configurations.  It is required for use of mod_rewrite, but may already
    # be set by your server administrator in a way that disallows changing it in
    # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
    # beginning of line), reload your site in your browser and test your sef url's.  If they work,
    # it has been set by your server administrator and you do not need it set here.
    ##
    
    ## No directory listings
    IndexIgnore *
    
    ## Can be commented out if causes errors, see notes above.
    Options +FollowSymlinks
    
    ## Mod_rewrite in use.
    
    RewriteEngine On
    
    ## Begin - Rewrite rules to block out some common exploits.
    # If you experience problems on your site block out the operations listed below
    # This attempts to block the most common type of exploit `attempts` to Joomla!
    #
    # Block out any script trying to base64_encode data within the URL.
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
    # Block out any script that includes a <script> tag in URL.
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL.
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL.
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Return 403 Forbidden header and show the content of the root homepage
    RewriteRule .* index.php [F]
    #
    ## End - Rewrite rules to block out some common exploits.
    
    ## Begin - Custom redirects
    #
    # If you need to redirect some pages, or set a canonical non-www to
    # www redirect (or vice versa), place that code here. Ensure those
    # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
    #
    ## End - Custom redirects
    
    ##
    # Uncomment following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root).
    ##
    
    # RewriteBase /
    
    ## Begin - Joomla! core SEF Section.
    #
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    #
    # If the requested path and file is not /index.php and the request
    # has not already been internally rewritten to the index.php script
    RewriteCond %{REQUEST_URI} !^/index\.php
    # and the requested path and file doesn't directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn't directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the index.php script
    RewriteRule .* index.php [L]
    #
    ## End - Joomla! core SEF Section.
    
    
     
  4. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    It seems that you are using Joomla. Make sure that your IP address is not blocked by any Joomla security plugin. also, do you see any error message in your apache error logs?
     
  5. Carlos Alberto

    Carlos Alberto Registered

    Joined:
    Jul 6, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Hello see my logs apache errors:

    Code:
        [Thu Jun 09 14:44:26 2016] [error] [client 157.55.39.13] client denied by server configuration: /home/acacs12/public_html/agenda
        [Thu Jun 09 14:44:26 2016] [error] [client 157.55.39.13] client denied by server configuration: /home/acacs12/public_html/403.shtml
        [Thu Jun 09 14:44:34 2016] [error] [client 173.252.112.112] File does not exist: /home/someusr/public_html/403.shtml
        [Thu Jun 09 14:45:04 2016] [error] [client 66.249.66.131] File does not exist: /home/someusr/public_html/403.shtml
        [Thu Jun 09 14:45:31 2016] [error] [client 69.30.198.242] File does not exist: /home/alberto/public_html/robots.txt
        [Thu Jun 09 14:46:19 2016] [error] [client 69.30.198.242] File does not exist: /home/alberto/public_html/robots.txt
        [Thu Jun 09 14:46:28 2016] [error] [client 200.142.79.143] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:46:57 2016] [error] [client 208.115.111.68] client denied by server configuration: /home/acacs12/public_html/robots.txt
        [Thu Jun 09 14:46:57 2016] [error] [client 208.115.111.68] client denied by server configuration: /home/acacs12/public_html/403.shtml
        [Thu Jun 09 14:47:41 2016] [error] [client 8.37.70.135] File does not exist: /home/someusr/public_html/robots.txt
        [Thu Jun 09 14:47:44 2016] [error] [client 66.249.66.131] File does not exist: /home/someusr/public_html/403.shtml
        [Thu Jun 09 14:48:37 2016] [error] [client 157.55.39.176] File does not exist: /home/sintius/public_html/energia_240610.htm
        [Thu Jun 09 14:49:42 2016] [error] [client 40.77.167.41] client denied by server configuration: /home/acacs12/public_html/noticias-boletins-lista.asp
        [Thu Jun 09 14:49:42 2016] [error] [client 40.77.167.41] client denied by server configuration: /home/acacs12/public_html/403.shtml
        [Thu Jun 09 14:50:16 2016] [error] [client 177.101.44.248] File does not exist: /home/maxbr12/public_html/arquivo, referer: Tinta Spray Automotiva Prata Na Cor Do Carro + Verniz - R$ 49,90
        [Thu Jun 09 14:50:26 2016] [error] [client 66.249.66.139] File does not exist: /home/someusr/public_html/403.shtml
        [Thu Jun 09 14:50:33 2016] [error] [client 207.46.13.120] File does not exist: /home/rdiegues/public_html/passeio-melhor-idade.php
        [Thu Jun 09 14:50:33 2016] [error] [client 207.46.13.120] File does not exist: /home/rdiegues/public_html/404.shtml
        [Thu Jun 09 14:51:19 2016] [error] [client 188.37.238.78] client denied by server configuration: /home/acacs12/public_html/, referer: Google
        [Thu Jun 09 14:51:19 2016] [error] [client 188.37.238.78] client denied by server configuration: /home/acacs12/public_html/403.shtml, referer: Google
        [Thu Jun 09 14:51:19 2016] [error] [client 188.37.238.78] client denied by server configuration: /home/acacs12/public_html/favicon.ico, referer: http://www.example.com/
        [Thu Jun 09 14:51:19 2016] [error] [client 188.37.238.78] client denied by server configuration: /home/acacs12/public_html/403.shtml, referer: http://www.example.com/
        [Thu Jun 09 14:51:48 2016] [error] [client 8.37.70.81] File does not exist: /home/someusr/public_html/robots.txt
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:52:22 2016] [error] [client 201.0.255.31] File does not exist: /home/someusr/public_html/img, referer: http://example.com.br/
        [Thu Jun 09 14:53:08 2016] [error] [client 66.249.66.135] File does not exist: /home/someusr/public_html/403.shtml
         
     
    #5 Carlos Alberto, Jun 9, 2016
    Last edited by a moderator: Jun 9, 2016
  6. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeah, this looks like a security plugin for sure.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Try uploading a test HTML file to the account and see if it loads successfully. It it loads, it suggests the issue is with your PHP application, as mentioned in the previous posts.

    Thank you.
     
Loading...

Share This Page