# How to acces index link with username and password

**URL:** <https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037>\
**Category:** Help and Support\
**Created:** [May 30, 2022, 4:11pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037 "2022-05-30T16:11:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 30, 2022, 4:11pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/1 "2022-05-30T16:11:52Z")

</div>

#### What is the problem you are having with rclone?

I want download file from index link that has authentic username n password.  
The link look like this  
https ://index.naoindex.workers.dev/0: (this is example)

 ![image](https://forum.rclone.org/uploads/default/original/2X/b/b2681f81bc14f071e9860df7f6c447f1ff42e318.png)

I read about this one but idont know to make this password file

> **[Authentication - rclone serve http](https://rclone.org/commands/rclone_serve_http/#authentication)**
>
> Serve the remote over HTTP.

#### Run the command 'rclone version' and share the full output of the command.

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone lsd --http-url https://heavens.workers.dev/2: :http:

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [May 30, 2022, 4:29pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/2 "2022-05-30T16:29:31Z")

</div>

See

> **[HTTP Remote](https://rclone.org/http/#http-url)**
>
> Read only remote for HTTP servers

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 30, 2022, 5:09pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/3 "2022-05-30T17:09:12Z")

</div>

[https://user:pass@example.com](https://user:pass@example.com) i try this one before post it not work

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 30, 2022, 5:14pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/4 "2022-05-30T17:14:28Z")

</div>

normal lsd http

```auto
2022/05/31 01:11:11 ERROR : : error listing: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized
2022/05/31 01:11:11 Failed to lsd with 2 errors: last error was: error listing "": failed to readDir: HTTP Error 401: 401 Unauthorized

```

with username/password in link

````auto
2022/05/31 00:00:50 Failed to create file system for ":http:": parse : invalid port ":Heaven" after host```
````

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [May 30, 2022, 5:24pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/5 "2022-05-30T17:24:39Z")

</div>

If you like help, please post all the details.

> [@haris\_semeon](#):
>
> [https://user:pass@example.com](https://user:pass@example.com) i try this one before post it not work

Great. No idea what your setup is, version, rclone.conf what command you ran. Nothing at all.

The less you include, the harder it is to help.

You deleted the template and never fill stuff in and we get all this back and forth as you fight against the process and fill in as little information as possible.

If you'd like to share all the details in the template, please do so.

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 30, 2022, 5:35pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/6 "2022-05-30T17:35:59Z")

</div>

i dont think it necessary as i see remote for http url not really complicated,maybe im read it wrong but i think it can be done without a config.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 31, 2022, 10:44am UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/7 "2022-05-31T10:44:39Z")

</div>

> [@haris\_semeon](#):
>
> with username/password in link
> 
> ````auto
> 2022/05/31 00:00:50 Failed to create file system for ":http:": parse : invalid port ":Heaven" after host```
> 
> ````

This looks like you put the username and password after the host. it should go before the host

Tell us what you typed, but XXX out your username and password.

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 31, 2022, 11:51am UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/8 "2022-05-31T11:51:36Z")

</div>

rclone lsf --http-url "[https://username:password@heavens.workers.dev/1:/](https://username:password@heavens.workers.dev/1:/)" :http:

```auto
2022/05/31 19:47:52 Failed to create file system for ":http:": parse "https://username:password": invalid port ":password" after host

```

note:username n password consist of @ and also #

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 31, 2022, 12:28pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/9 "2022-05-31T12:28:28Z")

</div>

i try to do same index without password,maybe u can take a look. lsd dont output any file

[https://index.teamqbit.workers.dev/0](https://index.teamqbit.workers.dev/0)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 31, 2022, 2:15pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/10 "2022-05-31T14:15:20Z")

</div>

> [@haris\_semeon](#):
>
> note:username n password consist of @ and also #

Ah, I expect that is the problem. Try URL encoding the @

> <https://stackoverflow.com/questions/10050877/url-username-with>

---

<div class="post-metadata">

**Author:** ![haris\_semeon](https://forum.rclone.org/user_avatar/forum.rclone.org/haris_semeon/32/11187_2.png) [@haris\_semeon](https://forum.rclone.org/u/haris_semeon)\
**Post date:** [May 31, 2022, 4:08pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/11 "2022-05-31T16:08:05Z")

</div>

```auto
2022/06/01 00:03:26 Failed to create file system for ":http:": parse "https://username%40:password": invalid port ":password" after host``

```

try index without password at [qbit Mirrors](https://index.teamqbit.workers.dev/0) ,cant list lsd

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [June 30, 2022, 4:08pm UTC](https://forum.rclone.org/t/how-to-acces-index-link-with-username-and-password/31037/12 "2022-06-30T16:08:31Z")

</div>

Closed on June 30, 2022, 4:08pm UTC

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