Apache2 Termux : Make Your Website Live with Ngrok

In My previous post, I wrote about how you can Install Apache2 Webserver in your Termux and make a Website on your Localhost, But that website was on your local network and only you can access it. So in this post, I am gonna tell you how you can make your website live using Ngrok,  using this method you will be able to make a sharable link and you can share that link to anyone and they will be able to access your Private website.👾


What is Apache2 and Ngrok in Termux?

The Apcahe2 web server is an Open source software that helps you to create and run your webserver on almost any device. The Real name of this software is apache HTTP Server. Almost 40% of websites on the internet are still running using the Apache webserver.

Apache2 Termux : Make Your Website Live with Ngrok

Ngrok is a Cross-platform application that allows you to expose your local server to the internet with simple Steps. It is one of the most famous tools in hacking, most of the phishing page use Ngrok to perform phishing on public IPs. You can install Ngrok in termux to make a URL of your Local Webserver. And People can actually use this URL to Visit your Private site which is hosted on your Termux.

If you like to visit the official apache Webserver website then here is the link: Apache.org and if you want to know more about Ngrok then you can visit the official Site of Ngrok @Ngrok.com.



Make Your Website Live with Ngrok :

This is the Step By Step Process to make your Termux apache server live. Before doing these steps make sure you already have an apche2 webserver in your Termux. If you don't have a Running web server then Please read this post first : [Apache2 Termux : Install and Use Apache2 Server in Termux].

Setup Ngrok in Termux:

To make a Live URL of our website we will need to install and setup the Ngrok in Termux for that you just have to follow 3 simple steps. 


Step 1:

First of all, We need to install the Ngrok bash file in Termux, we can do it manually but using the below command you will be able to directly download it in your termux app. Just paste the below command in Termux and wait till it finishes.
 pkg install wget -y && wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
Apache2 Termux : Make Your Website Live with Ngrok


Step 2:

Now, If you type ls you will be able to see the zip file of ngrok and we need to extract it. For that, we will use unzip command in termux. Unzip does not comes preinstalled in termux so we also need to install it before we unzip the file. Just paste the below command it will be done automatically.

unzip ngrok-stable-linux-arm.zip

Apache2 Termux : Make Your Website Live with Ngrok


Step 3:

The installation is done but we have to authenticate our Ngrok with a Ngrok token, For that you just have to follow these 3 simple steps.

1 :

Open the below link and it will open the Ngrok Sign-up page. Just login with your Google account (it is completely safe). [Ngrok Signup Page Link].

How To install and use ADVPhishing Tool in Termux - 2020

After SignUp, you will see your Dashboard of the Ngrok.




2 :

Now on the website, you see an authentication token line, Copy the full like I have shown in the below picture.

Apache2 Termux : Make Your Website Live with Ngrok




3 :

Now The Authotoken is copied on your phone and you just have to paste it on your termux app where we have the ngrok bash file.

Apache2 Termux : Make Your Website Live with Ngrok

And as soon as you Enter the Auth-token, the setup will be completed.


Create Live Web server URL with Ngrok in Termux:

Step 1:

Run Your apache webserver, If you already don't have apache webserver in your phone read this post [Apache2 Termux : Install and Use Apache2 Server in Termux]. use the below command to start the apache webserver in termux.
apachectl

Apache2 Termux : Make Your Website Live with Ngrok


Step 2:

Start the ngrok using the below command at port 8080, and it will create a sharable link, which you can share with anyone and te will be able to access your page. Before Running this command Please Turn on Your Hotspot or it won't work. 
./ngrok http 8080
Apache2 Termux : Make Your Website Live with Ngrok


Step 3:

Copy the Forwarding link created by Ngrok and send it to your friend or just open it in a browser.

Apache2 Termux : Make Your Website Live with Ngrok

And Now when you will paste the Link in a Browser you will see the index.html page in your webserver, Make sure you edit to make it look like a decent website. Below you can see I copied the Source code of the Blogger profile page and it is looking perfect.

Apache2 Termux : Make Your Website Live with Ngrok

Using this method you can create your own live static website in your Termux app.


Conclusion:

This method is helpful in the understating of web Servers. Since we can only port forward one port we can make static pages only But it can be helpful to make fake webpages. Above you can see that i have copied the source code of the blogger profile page and you can do that too, and after editing your name and images you can send the link of your edited pages which is hosted in the Termux apache server, They will think this is your blog😝. You can also Copy Wikipedia pages if you understand this method of making your server live then there are unlimited possibilities. If you like this post then check out how you can [Downlaod Youtube Videos With Termux]. If you have any Ideas or Questions make sure you comment down below. Thanks for Reading Guys, Stay Inspired and as always Stay Ethical👾.

Post a Comment

2 Comments

Popup Image