Home > Blockchain >  403 Error with all URLs end only with .com
403 Error with all URLs end only with .com

Time:08-24

In our website we have domains lookup, made on laravel, we are facing 403 error in Google Webmaster only those URLs which end .com

Example :

https://v2.domainsanalytics.com/allheartweb.com

Result in webmaster

Failed: Blocked due to access forbidden (403)

Another URLs have no issue

Example :

https://v2.domainsanalytics.com/allheartweb.net

Result in webmaster

Time
18 Aug 2022, 20:52:53
Crawled as
Googlebot smartphone
Crawl allowed?
Yes
Page fetch
Successful
Indexing allowed?
Yes

My htaccess file is

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

       # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
    
    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (. )/$
    

</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

CodePudding user response:

.com as a file extension is a Windows Command file. Those executable scripts are often used to distribute malware. Your URL that ends in .com looks like a malware download. There is likely a rule on some web server, CDN, or firewall that is blocking those URLs.

I'd suggest adding a trailing slash to your URLs:

  • https://v2.domainsanalytics.com/allheartweb.com/
  • https://v2.domainsanalytics.com/allheartweb.net/

For reference see When should I use a trailing slash in my URL?

  • Related