# How to remove ?i=1 from the website?

**URL:** <https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663>\
**Category:** Hosting Support\
**Created:** [July 20, 2025, 12:17pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663 "2025-07-20T12:17:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohamedBilal7](https://forum.infinityfree.com/letter_avatar/mohamedbilal7/32/6_22734026db12803ebb3e059622ac3534.png) [@MohamedBilal7](https://forum.infinityfree.com/u/MohamedBilal7)\
**Post date:** [July 20, 2025, 12:17pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/1 "2025-07-20T12:17:59Z")

</div>

### Website URL

[sapplusplus.ru](http://sapplusplus.ru)

---

<div class="post-metadata">

**Author:** ![wasik405](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wasik405/32/55080_2.png) [@wasik405](https://forum.infinityfree.com/u/wasik405)\
**Post date:** [July 20, 2025, 12:26pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/2 "2025-07-20T12:26:01Z")

</div>

It is not possible to remove that on free hosting.

> [@Why do I see ?i=1 at the end of a URL](https://forum.infinityfree.com/t/why-do-i-see-i-1-at-the-end-of-a-url/49356):
>
> Don’t worry, this is normal! When you visit your website, you might notice ?i=1 added to the end of your URL. Here’s what’s happening and why. What is the ?i=1 suffix? The ?i=1 is a security check that protects your website from bots and malicious traffic. Our system needs to verify you’re using a real web browser before letting you access your site. Why does it appear? When you first visit your website, our security system: Sends a small test to your browser Checks if your browser can store…

> [@Browser Security System - Features and Limitations](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree uses a security system on all free hosting accounts to ensure your website is accessed by real web browsers, not bots or automated scripts. While this protects your site from malicious traffic, it can affect certain types of access. How the security system works The system checks that visitors can execute JavaScript and accept cookies: features that all modern web browsers support. This verification happens automatically and most website visitors will never notice it. You may occa…

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [July 20, 2025, 1:53pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/3 "2025-07-20T13:53:14Z")

</div>

If you want to remove it, you’ll need to upgrade to premium in order to remove that. It’s part of the security system

---

<div class="post-metadata">

**Author:** ![MohamedBilal7](https://forum.infinityfree.com/letter_avatar/mohamedbilal7/32/6_22734026db12803ebb3e059622ac3534.png) [@MohamedBilal7](https://forum.infinityfree.com/u/MohamedBilal7)\
**Post date:** [July 20, 2025, 3:17pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/4 "2025-07-20T15:17:48Z")

</div>

I saw someone in similar topic saying that the following file should be add to solve the problem, but what the path of this file?

File: .htaccess  
Content of this file:  
RewriteEngine On  
RewriteCond %{QUERY\_STRING} ^(.)i=[^&]+(.)$ [NC]  
RewriteRule ^(.\*)$ /$1?%1%2 [R=301,L]

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [July 20, 2025, 3:18pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/5 "2025-07-20T15:18:52Z")

</div>

That won’t work, It was a loop hole previously but as I understand it it was patched

---

<div class="post-metadata">

**Author:** ![MohamedBilal7](https://forum.infinityfree.com/letter_avatar/mohamedbilal7/32/6_22734026db12803ebb3e059622ac3534.png) [@MohamedBilal7](https://forum.infinityfree.com/u/MohamedBilal7)\
**Post date:** [July 20, 2025, 3:20pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/6 "2025-07-20T15:20:03Z")

</div>

Are you sure about that?

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [July 20, 2025, 3:23pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/7 "2025-07-20T15:23:06Z")

</div>

Well, it didn’t work when i tried it. The automated sweeper deleted .htaccess files that try and override the i=1

---

<div class="post-metadata">

**Author:** ![MohamedBilal7](https://forum.infinityfree.com/letter_avatar/mohamedbilal7/32/6_22734026db12803ebb3e059622ac3534.png) [@MohamedBilal7](https://forum.infinityfree.com/u/MohamedBilal7)\
**Post date:** [July 20, 2025, 3:24pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/8 "2025-07-20T15:24:00Z")

</div>

Thank you for confirmation.

---

<div class="post-metadata">

**Author:** ![redsusvn](https://forum.infinityfree.com/letter_avatar/redsusvn/32/6_22734026db12803ebb3e059622ac3534.png) [@redsusvn](https://forum.infinityfree.com/u/redsusvn)\
**Post date:** [July 23, 2025, 8:53am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/9 "2025-07-23T08:53:31Z")

</div>

try my script:

```auto
RewriteEngine On
# remove ?i=whatever number in here like ?i=1 ?i=69420
RewriteCond %{QUERY_STRING} (^|&)i=\d+(&|$)
RewriteRule ^(.*)$ /? [R=301,L]

```

it work perfect with [my site](https://geminicute.ct.ws/), doesnt have the loop or anything

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [July 23, 2025, 9:18am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/10 "2025-07-23T09:18:05Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/9/4/94cc8296a816108274c6a076a3223b006d814980.png)  
I think your browser may be hiding it from you. this is what I get when visiting your site

---

<div class="post-metadata">

**Author:** ![redsusvn](https://forum.infinityfree.com/letter_avatar/redsusvn/32/6_22734026db12803ebb3e059622ac3534.png) [@redsusvn](https://forum.infinityfree.com/u/redsusvn)\
**Post date:** [July 23, 2025, 9:18am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/11 "2025-07-23T09:18:31Z")

</div>

oh hell nah chrome is trolling me

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [July 23, 2025, 9:19am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/12 "2025-07-23T09:19:06Z")

</div>

Chrome is a sod for that 😕

---

<div class="post-metadata">

**Author:** ![redsusvn](https://forum.infinityfree.com/letter_avatar/redsusvn/32/6_22734026db12803ebb3e059622ac3534.png) [@redsusvn](https://forum.infinityfree.com/u/redsusvn)\
**Post date:** [July 23, 2025, 9:20am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/13 "2025-07-23T09:20:17Z")

</div>

why ms edge also not show the ?i=1  
i think bill gate is also trolling me

---

<div class="post-metadata">

**Author:** ![Gazmos](https://forum.infinityfree.com/letter_avatar/gazmos/32/6_22734026db12803ebb3e059622ac3534.png) [@Gazmos](https://forum.infinityfree.com/u/Gazmos)\
**Post date:** [July 23, 2025, 9:42am UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/14 "2025-07-23T09:42:58Z")

</div>

I understand that the `?i=1` feature is part of the security system designed to stop bots from getting to your website, but why would they prevent hiding of the `?i=1` once the security system has done its job? If your website is served, it means that you’ve passed the aes.js security test.

Besides, in answer to the OP’s question, you can hide it by using client-side JS to redirect to the the correct URL if `?i=1` is present. Using plain PHP also works, something like this (perhaps prepended to all files)

```auto
<?php
if(isset($_GET['i'])){
    $url = strtok($_SERVER['REQUEST_URI'], '?');
    parse_str($_SERVER['QUERY_STRING'], $queryParams);
    if (isset($queryParams['i'])) { unset($queryParams['i']);};
    if (!empty($queryParams)) {
        $newQString = http_build_query($queryParams);
        $url .= '?' . $newQString;
    }
    header("Location: $url");
    exit();
}
?>

```

---

<div class="post-metadata">

**Author:** ![MohamedBilal7](https://forum.infinityfree.com/letter_avatar/mohamedbilal7/32/6_22734026db12803ebb3e059622ac3534.png) [@MohamedBilal7](https://forum.infinityfree.com/u/MohamedBilal7)\
**Post date:** [July 23, 2025, 2:20pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/15 "2025-07-23T14:20:32Z")

</div>

@Gazmos  
Hello, thank you for your support,  
Please explain the steps to do that for wordpress websites in terms of the file name for the code and the path of this file and so on.  
Best regards

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 23, 2025, 5:13pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/16 "2025-07-23T17:13:03Z")

</div>

> [@Gazmos](#):
>
> but why would they prevent hiding of the `?i=1` once the security system has done its job?

I’m not sure if the system keeps a log of who passed the test server side, so the parameter is how the system knows you passed. If you remove it, a redirect is required which would trigger the security system and add it back in again.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 30, 2025, 5:13pm UTC](https://forum.infinityfree.com/t/how-to-remove-i-1-from-the-website/113663/17 "2025-07-30T17:13:49Z")

</div>

Closed on July 30, 2025, 5:13pm UTC

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