Amaethwr
said
:
Lil Indecent said :
I'm not yet sure how to handle duplicate domains but I think I can work out something
Nice timing with your post. I've just been working on the whitelist and getting it to work with the blacklist.
Here's an answer (I hope). Simply adding "reddit.com/r/runescape" to your whitelist means only content from the runescape reddit will be embedded/linkified. The rest of reddit will be ignored by RS Linkify so no need to add reddit to the blacklist.
I'm writing it in such a what that the blacklist takes priority over the white list. So if you were to add "reddit.com/r/runescape" to the whitelist and "reddit.com" to the blacklist no reddit embedding/hyperlinking will occur.
Since whitelist is for allowing and blacklist is for blocking I have made it that blocking takes priority because that only strengthens security, the other way weakens it.
It also means you can whitelist a domain and block parts of it if you wish. You could allow all of reddit by whitelisting it and then the add a single subreddit to your black list.
Example: Allows all of reddit except for one (or more) sub reddit(s)
Whitelist: reddit.com
Blacklist: reddit.com/r/evilstuff
Trying to make it as modular as possible, thus url paths rather than domain names.
Sounds good!
Lil Indecent said :
I'm not yet sure how to handle duplicate domains but I think I can work out something
Is there a way to make exceptions for more specific URLs? Like if "reddit.com" was blacklisted (for whatever reason) but "reddit.com/r/runescape" was whitelisted, then that specific one would generate a link
Or a way to prioritise the whitelist over the blacklist, so..
• Linkify checks the page for "reddit.com/r/runescape" because it's on the whitelist
• Linkify linkifies the link
• The blacklist sees "reddit.com", but, since the whitelist has already worked on it, does nothing
I think a situation like that would be quite uncommon, but I suppose someone could do it
And no concerns here
Or a way to prioritise the whitelist over the blacklist, so..
• Linkify checks the page for "reddit.com/r/runescape" because it's on the whitelist
• Linkify linkifies the link
• The blacklist sees "reddit.com", but, since the whitelist has already worked on it, does nothing
I think a situation like that would be quite uncommon, but I suppose someone could do it
And no concerns here
Nice timing with your post. I've just been working on the whitelist and getting it to work with the blacklist.
Here's an answer (I hope). Simply adding "reddit.com/r/runescape" to your whitelist means only content from the runescape reddit will be embedded/linkified. The rest of reddit will be ignored by RS Linkify so no need to add reddit to the blacklist.
I'm writing it in such a what that the blacklist takes priority over the white list. So if you were to add "reddit.com/r/runescape" to the whitelist and "reddit.com" to the blacklist no reddit embedding/hyperlinking will occur.
Since whitelist is for allowing and blacklist is for blocking I have made it that blocking takes priority because that only strengthens security, the other way weakens it.
It also means you can whitelist a domain and block parts of it if you wish. You could allow all of reddit by whitelisting it and then the add a single subreddit to your black list.
Example: Allows all of reddit except for one (or more) sub reddit(s)
Whitelist: reddit.com
Blacklist: reddit.com/r/evilstuff
Trying to make it as modular as possible, thus url paths rather than domain names.
11-May-2017 13:02:04 - Last edited on 11-May-2017 13:19:35 by Lil Indecent