Presentation Screenshots Download Support Development Forum    
   

Welcome to the Community Forum.

Here you can discuss with other users or with the author, suggest new features, report bugs, ask for filters creation or correction, etc. Select the forum you wish to read or post below :

Forum
Forum > Wishlist, Feature request > Mediafire

Pages : [1] Add a reply
User info Mediafire
Lax
Avatar
Mar 23 2012, 6:56 am
I want to create a domain filter for mediafire.com but mediafire links are like this:

http://205.196.123.114/ezvc7b4j3vxg/2m379r08fceefyh/filename

where other than filename changes randomly including the ip

I tried different matches but couldn't do it. Help me out here pls.
Post #1
Edit
Cyan
Avatar
Mar 23 2012, 12:09 pm
Hi,

You want to filter only based on "mediafire", or also on filename?



1) If you only want to create a filter based on the website:

You could check the domain from the page's URL :
Quote :
http://www.mediafire.com/?abcdef123456
instead of the file's URL.
Quote :
http://205.196.123.114/ezvc7b4j3vxg/2m379r08fceefyh/filename


The file's domain is always different, but the webpage always contain "mediafire" in it.

By default (if you didn't change the settings), Automatic Save Folder is checking both domain when filtering (first the file's domain, then if it didn't match it check the active website's domain).
You can verify that Automatic Save Folder is correctly configured to check both domains:

Preferences>Options>Page 2>While filtering> Verify that the input field contain the 5th type. If not, add it to look like this: 1,5

Now you can create your filter:
Filters Domain
All    
= Regexp.
File name
All    
= Regexp.
Local folder


Pro:
- Easy to create the filter.
Cons:
- You need to have Mediafire's page active when the download is initiated. (but it's usually active because you need to click on the button to download the file).
- ASF checks the filter's multiple time (slightly slower if you have a lot of filters, but you shouldn't notice it).


2) If you want to create a filter based on the file's URL:

You can use the URL's format
Quote :
http://205.196.123.114/ezvc7b4j3vxg/2m379r08fceefyh/filename
to create a filter.


You need to use regular expression to filter based on the URL's format.
Quote :
http://\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/[^/]+/[^/]+/filename

Filters Domain
All    
= Regexp.
File name
All    
= Regexp.
Local folder


You need to enable filtering on the full file's URL:
Preferences>Options>Page 2>While filtering> Verify that the input field contains the 3rd type. If not, add it to look like this: 1,5,3 (or any other order, it can be 5,3,1)


Pro:
- You can change the active tab before the download is initiated (before you see "what should Firefox do with this file?" dialog).
Cons:
- it matches all download originating from an URL in the form of http://IP/xxxx/yyyy/filename
(but, I guess it's very rare, only mediafire will trigger such filters).





3) Cons with mediafire:
The problem with Mediafire is that all files are stored on IP instead of domain name, and the new Firefox 7.0.1+ "site-by-site" feature is not working great as the IP are always different, thus making the lastDir folder not remembered correctly.

You need to set a filter to force the path change to the folder you want.
If you don't use a filter, it will try to reopen the last used folder for that domain, which might be non-existent.


4) tips

You can try to use the Referer's domain instead of the file or website's domain.
Instead of "mediafire", use the domain's name which linked the file, and use domain type 6 in the preferences. (only available on latest beta).
1,3,5,6
Post #2
Edit / Delete
Pages : [1] Add a reply

Return to top