Tuesday, February 20, 2018

Won't be able to stream on twitch in 2018

I have promised many of my friends to start streaming Hearthstone on twitch.tv, in fact, I even bought a gaming laptop to do that and even tried to test stream once on YouTube:


However, after doing some research it turns that the current restrictions of my Tier-4 visa in the UK prevent from 'being an entertainer' and streaming myself into gaming could fall into a category.

According to 'Guidance on application for UK visa as Tier 4 student', you cannot be 'be employed as an entertainer' and streaming on twitch could fall into that category. At worst, this could be undertaking self-employment in the UK which is not allowed:



I would have loved to stream Hearthstone as my passion for that game never cease to end. I do play 1-2 hours daily and have bought many packs already.

After consulting a law firm the UK, they have advised me not to stream until I am either outside the UK or switched to a visa that allows me to do that.

It is expected that I stay in the UK until September 2018 unless I find a job opportunity or pursue further academic studies in the country. 
Share:

Sunday, February 11, 2018

How To Disable Directory Listing in Apache on Ubuntu 14.04

I found this very good tutorial on a Chinese blog, so it has been translated and reproduced here:

What you see in the picture below Directory Listing in Apache server settings. And this is turned on by default.



To check if you have this problem, try to visit a directory in your apache server location with a browser, such as localhost/someFolder and you will see the contents of this folder. Webmasters and website owners generally don't want this activated because they don't want strangers to browse the contents of their website.

If you see something similar to the above photo, you got this problem as well.

While it might not be a huge security problem to your site, it certainly makes you not comfortable, and it is also not a very pleasant experience for users to crash into your directory like this.

However, it is actually very easy to turn it off in Ubuntu, here is how.

1. Navigate to /etc/apache2

2. From there, you will find a file named :

   apache2.conf

3.  Open apache2.conf with your favourite text editor. If you don't know how to edit a text file on a server, find some help on Google.

4. Find this line: ( there are actually two lines of these, one's under <Directory /var/www/>, and another one is under <Directory /srv/>, for now, we will work on the former one since that's where our website is in.)

    Options Indexes FollowSymLinks

5. Remove 'Indexes' from this line, so that it will look like this

    Options FollowSymLinks

6. Save the file, open a terminal then restart apache.

    sudo service apache2 restart

And we are done, try to visit a directory under your web var/www in a browser, and you will get a 403 forbidden error.
Share: