Old 11-11-2010, 05:55 AM   #1 (permalink)
Banned
 
Join Date: May 2009
Posts: 26
ChrisDavis is on a distinguished road
Default Blocklist location?

Where is the file, with blocked items, located?

We would like to import lots of extra items in it but don't feel like doing it 1 by 1.

Hopefully people on forums are more helpful then on IRC..

Last edited by ChrisDavis; 11-11-2010 at 06:19 AM..
ChrisDavis is offline  
Old 11-11-2010, 05:59 AM   #2 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,013
dbunyard is on a distinguished road
Default

There isn't a file, they are stored in the database.

In version 8 (due out here very shortly) there is an import button on the GUI of the ad blocker. I would suggest you wait until then rather than try to monkey with the raw database.
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-11-2010, 06:27 AM   #3 (permalink)
Untangle Ninja

 
WebFooL's Avatar
 
Join Date: Jan 2009
Location: Sweden (Eskilstuna)
URLs submitted: 57
Posts: 3,873
WebFooL is on a distinguished road
Send a message via MSN to WebFooL
Default

ChrisDavis,

The irc channel is for DEV questions.
There are no "Forum" irc Channel.

But as dbundyard say the information is stored in the DB.

The Import button can only do so much.
To import the format has to be in Json and with the right string.

I have done some work of creating some generators to make json import files to some module but not the AD blocker.

Is this a great demand? if so i am sure i can create on for it as well.

(http://untangle.nu/gen/)
WebFooL is offline  
Old 11-11-2010, 07:14 AM   #4 (permalink)
Banned
 
Join Date: May 2009
Posts: 26
ChrisDavis is on a distinguished road
Default

Wow, Thanks for the quick and informative replies!

No need to be hasty on implementing that feature WebFool, we are in testing phase overhere and just trying Untangle if it can do things the way we want.

So we can wait till version 8 comes out.

Thanks again!
ChrisDavis is offline  
Old 02-07-2011, 07:37 AM   #5 (permalink)
Master Untangler
 
boyan.sharic's Avatar
 
Join Date: May 2009
Location: Banja Luka, Bosnia and Herzegovina
URLs submitted: 3
Posts: 111
boyan.sharic is on a distinguished road
Default

WebFooL, is it possible for You ti make a converter that would convert this file (for example) https://easylist-downloads.adblockplus.org/easylist.txt into .json compatible with Ad Block module of Untangle?
That way, anyone could select any Ad Block subscription and import it into their UT box.
boyan.sharic is offline  
Old 02-07-2011, 09:40 AM   #6 (permalink)
Untangle Ninja

 
WebFooL's Avatar
 
Join Date: Jan 2009
Location: Sweden (Eskilstuna)
URLs submitted: 57
Posts: 3,873
WebFooL is on a distinguished road
Send a message via MSN to WebFooL
Default

Boyan.sharic,
It seams like there license model would allow it.

I will look in to it but it should not be that hard.

Just do a loop and take the value form each line and print out
"
{"string":"$Value","javaClass":"com.untangle.uvm.n ode.StringRule","live":true}
"
WebFooL is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:21 PM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2