# Accessing wabpages with HTTPClient in C#

**URL:** <https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280>\
**Category:** Hosting Support\
**Created:** [March 18, 2024, 4:28pm UTC](https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280 "2024-03-18T16:28:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon99197083](https://forum.infinityfree.com/letter_avatar/anon99197083/32/6_449c533f586939b6e5f246632a46421f.png) [@anon99197083](https://forum.infinityfree.com/u/anon99197083)\
**Post date:** [March 18, 2024, 4:28pm UTC](https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280/1 "2024-03-18T16:28:55Z")

</div>

### Website URL

Applies on all sites, but I can give you my url: [http://site-mm.rf.gd/v/getFiles.php](http://site-mm.rf.gd/v/getFiles.php)

### Error Message

I want to get information with a C# program (C# → .exe) from my website. Normally, it just works with HttpClient, but when I do that on InfinityFree, I get as output this (error that HttpClient doesn’t support JavaScript):

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
### Other Information

The output should be “0.1.5”, but it is that error message. How can I, using C#, get something that I can edit (0.1.5)?

---

<div class="post-metadata">

**Author:** ![anon99197083](https://forum.infinityfree.com/letter_avatar/anon99197083/32/6_449c533f586939b6e5f246632a46421f.png) [@anon99197083](https://forum.infinityfree.com/u/anon99197083)\
**Post date:** [March 18, 2024, 4:39pm UTC](https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280/2 "2024-03-18T16:39:58Z")

</div>

I just noticed the error was in HTML format so it didn’t show the text. This is the error:

```auto
<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("d694f893a12ecccb55de7751353e9c76");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://site-mm.rf.gd/v/getVersion.php?i=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>

```

Also, the PHP in getVersion.php\* (Its [getVersion.php](http://site-mm.rf.gd/v/getVersion.php), not getFiles.php) is this, really simple (directly accessing version.txt didn’t work either):

```auto
<?php
$fileContents = file_get_contents('version.txt');
echo $fileContents;

```

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [March 18, 2024, 7:22pm UTC](https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280/3 "2024-03-18T19:22:42Z")

</div>

The response you’re seeing is the result of this security system:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

Unfortunately, this means that you cannot use free hosting for this application.

---

<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:** [March 25, 2024, 7:23pm UTC](https://forum.infinityfree.com/t/accessing-wabpages-with-httpclient-in-c/91280/4 "2024-03-25T19:23:10Z")

</div>

Closed on March 25, 2024, 7:23pm UTC

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