Wednesday, February 3, 2016

Enabling local "file:///"-links from remote websites in Firefox

When you have a MediaWiki at work, maybe you already know how annoying it is that Firefox protected their browser from local file links on remote webpages. For example, if you try to open a "file:///" or "file://///" URL from a page that was accessed over "http://", like often on a company MediaWiki-site (usually run from a NAS), Firefox will just silently do nothing. There's no error output, no popup, no page opening, nothing...

While this can be semi-solved with some extensions like LocalLink or Local Filesystem Links, these add-ons don't really give you expected functionality. You will probably still have to right click the links and select a menu added by the add-on, and left-clicking the links still won't do anything.

If you are one of those people that's like me and hates this handicap, you'll be looking for other ways of removing it, one that gives back full functionality like they were normal links again.
This is how I eventually did it in 5 easy steps:

1. Make sure any open window of Firefox is closed and Firefox is not running !!


2. Go to your Firefox profile-directory.

   (Should be something like: "C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default")

  If you can't find your profile-directory, do the following:

  - Open Firefox;
  - Open the Menu that's to the right of the search bar;
  - Click the '?';
  - Click 'Troubleshooting information';
  - Under 'Application Basics' you will see 'Profile Folder';
  - Click the 'Show Folder'-button;
  - Make sure to close Firefox again !

3. Locate 'Prefs.js' and open it with notepad.

4. Add these 3 lines to it. (You might want to turn of 'Word Wrap' in notepad and add them alphabetically, but no pressure. ;p):

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://www.example.com");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

Of course you will need to replace "http://www.example.com" with the website you want this to work on. This can also be either the WINS name or the domain name of a NAS or a local webserver (ex.: "http://myserver" and "http://home.local").

If you want to add more than 1 url, just seperate them with spaces. Something like:

user_pref("capability.policy.localfilelinks.sites", "http://www.example.com http://myserver http://home.local");

This one will enable local file links natively on
 - www.example.com
 - myserver
 - home.local

5. Save and close the "Prefs.js" and start Firefox...

The links will now act like any other link on the chosen websites...
On any other page, the links will still remain dead, so as long as you do this only to sites you trust 100%, there's no security risk involved. ;)

Enjoy! ;)

Greetings,
     ~ Doctor N.

Wednesday, November 20, 2013

Bypass blocks put on certain websites by your ISP...

For some time now, Internet Service Providers (ISP's) have been blocking more and more internet sites from their customers. Recently this has included sites as: KickAss Torrents, The Pirate Bay, Fenopy and other major torrent-sites. I can't help but feel cheated out of parts of the internet. Torrents are one of the latest P2P technologies, so quite a big part too, actually. First I thought they had blocked the IP's. When you ask the ISP's themselves, they'll usually also confirm this, but then I tried changing DNS servers, and to my amazement I could get on all the previously blocked sites! And thus I wanted to share this information with the world, of course. ;p

So, if you know your way around pc's, all you have to do is change your settings to use Google's DNS-service instead of your ISP's.

And of course, if you don't, I'll give a little HowTo. ;p (There's also a little video showing it at the bottom, if you want...)


=> The HowTo:


     => For Windows XP (nm my XP is skinned red ;p) :

1. Find the 'Connected' icon in your System Tray (the icons at the bottem right). It should look something like this:

2. Right click on it and select: "Open Network Connections".
3. In the window that opens, you'll see all of your network connections (Like Wifi, cable,...). Right click on the one you use to connect to the internet (usually there'll be only one) and select Properties.

4. In that Properties window (scroll down if you have to) and select "Internet Protocol (TCP/IP)", then click Properties below it to the right.

These will probably be your settings:




5. Change these settings to use Google's DNS servers:
    Primary: 8.8.4.4
    Alternate: 8.8.8.8

Confirm everything and close the Network Connections window. You should now be able to go to any blocked site. ;)

     => For Windows 7

1. Find the 'Connected' icon in your System Tray (the icons at the bottem right). It should look something like this:

2. Right click on it and select: "Open Network and Sharing Center".

3. In the Network Sharing center at the left side, click "Change adapter settings".



4. In the window that opens, you'll see all of your network connections (Like Wifi, cable,...). Right click on the one you use to connect to the internet (usually there'll be only one) and select Properties.

5. In that Properties window (scroll down if you have to) and select "Internet Protocol Version 4 (TCP/IPv4)", then click Properties below it to the right.

These will probably be your settings:


6. Change these settings to use Google's DNS servers:
    Primary: 8.8.4.4
    Alternate: 8.8.8.8


Confirm everything and close the Network Connections window. You should now be able to go to any blocked site. ;)

Here's the video, btw:



Enjoy! ;)

 Greetings,
     ~ Doctor N.