403 Error on Mobile Only

.htaccess file code

DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 403 https://errors.infinityfree.net/errors/403/
ErrorDocument 404 https://errors.infinityfree.net/errors/404/



RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]


# Allow all traffic (Might not work on InfinityFree)
Order Allow,Deny
Allow from all
Satisfy any

Error Message

i deploy one project on infinityFree web hosting provider but this website load properly in computer (desktop) but when i try to open same website in mobile that time getting 403 error.

What is the website’s domain name or URL?

8 Likes

What does the 403 error look like? Are you redirected to our 403 page or do you see a different error?

I don’t see anything in your .htaccess rules that would explain why it works on your desktop but not on my phone, so my first guess is that your mobile operator may be blocking access to your website.

Blocking or allowing specific traffic like this does work on our hosting, but all traffic is allowed by default on your website.

Unless the traffic is blocked by us on the server level, but then you cannot configure exceptions to it.

8 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.