Page 1 of 1
"Do not automatically parse URLs" disabled and non-functional
Posted: Sat Jun 04, 2016 7:29 pm
by barbaz
I had made a script to set "Do not automatically parse URLs" on by default when posting on this board, so that links to 3rd-party sites wouldn't automatically be linkified by default... but now "Do not automatically parse URLs" is being
disabled and checked
by the board, but URLs *are* automatically parsed?
Example of a "plain" URL, no tags or anything: https://easylist.github.io/
In order to get this not to linkify, it's needed to un-disable the checkbox for "Do not automatically parse URLs", and sometimes then:
- Un-check it
- Check it again
And even with that, URLs are back to automatically parsed on next preview.
Sure, I've automated the work-around in my script for now, but this still feels like excessive hackery. Can "Do not automatically parse URLs" please be restored? Thanks
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Sat Jun 04, 2016 7:46 pm
by LanikSJ
That was actually done on purpose. I've been working with smed79 to make that the default option. I'll let him explain what he's trying to do. The short is we don't want the links to be clickable.
I can restore the functionality for now but that's not going to stay that way for long.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Sun Jun 05, 2016 2:13 am
by barbaz
Working nicely now, thanks Lanik for the fast fix
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Sun Jun 05, 2016 4:49 am
by smed79
Lanik wrote:I'll let him explain what he's trying to do.
Already clear, big brother is watching us through the backlinks
https://en.wikipedia.org/wiki/HTTP_referer
& we don't want the links to be clickable by default
?&keywords=%22Don%27t+post+clickable+links%22
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Sun Aug 21, 2016 10:55 am
by fanboy
The other issue, do we stop bots from checking the site?
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Sun Aug 21, 2016 11:26 am
by smed79
I think this can be disabled from the admin panel.
Re: NSFW imgfantasy.com
Posted: Wed Mar 08, 2017 1:29 am
by gotitbro
Thanks for formatting the URL @smed79, I forgot that " Do not automatically parse URLs" was not turned on automatically. Will this be fixed @Lanik?
This reminds why don't we use something similar to Anonymous Redirect (https://github.com/AdguardTeam/AnonymousRedirect
) by Adguard.
Can this be done on phpBB @Lanik?
Re: NSFW imgfantasy.com
Posted: Wed Mar 08, 2017 1:46 am
by LanikSJ
gotitbro wrote: ↑Wed Mar 08, 2017 1:29 am
Thanks for formatting the URL @
smed79, I forgot that "
Do not automatically parse URLs" was not turned on automatically. Will this be fixed @
Lanik?
Probably not see below.
gotitbro wrote: ↑Wed Mar 08, 2017 1:29 am
This reminds why don't we use something similar to
Anonymous Redirect (
https://github.com/AdguardTeam/AnonymousRedirect
) by
Adguard.
Can this be done on phpBB @
Lanik?
I'm already using an extension for this:
https://www.phpbb.com/customise/db/extension/elonw/ and
https://github.com/RMcGirr83/elonw
Re: NSFW imgfantasy.com
Posted: Wed Mar 08, 2017 1:52 am
by gotitbro
@Lanik I see that these extensions force links to "Open in New Tabs" but do they also anonymise the click?
Also I don't understand why " Do not automatically parse URLs" does not work.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 2:14 am
by LanikSJ
"Do not automatically parse URLs" wasn't on by default me and @smed79 had to do a lot of hacky shit to make it work. If an extension can simulate the action of right click highlight URL and open in a new window I don't see any reason to repeat the same nightmare and risk possible update issues down the road.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 3:16 am
by gotitbro
If the extension is
anonymising the clicks on the links then why do we even need this rule:
https://forums.lanik.us/rules#links?
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 3:35 am
by smed79
gotitbro wrote:If the extension is anonymising the clicks on the links ...
Test here
https://www.whatismyreferer.com/
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 5:23 am
by LanikSJ
If you click
@smed79 link you'll see the refer is still sent.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 6:31 am
by gotitbro
Lanik wrote: ↑Wed Mar 08, 2017 5:23 am
If you click
@smed79 link you'll see the refer is still sent.
That is what I was asking in the first post do we have something similar as
Anonymous Redirect by Adguard for
phpBB? I just tested it on their forum and it works, I believe they use
Xenforo.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 8:06 am
by LanikSJ
I checked earlier and I haven't found anything yet.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 12:57 pm
by smed79
Lanik wrote:I checked earlier and I haven't found anything yet.
See
viewtopic.php?p=97176#p97176
Code: Select all
<meta name="referrer" content="no-referrer" />
<a href="https://www.whatismyreferer.com/" target="_blank">whatismyreferer.com</a>
test here
http://htmledit.squarefree.com/
PS:
Even if it works it is preferable to keep the rules#links and dont poste clickable links except for legitimate sites (e.g. images hosting sites).
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 6:40 pm
by gotitbro
smed79 wrote: ↑Wed Mar 08, 2017 12:57 pm
Even if it works it is preferable to keep the
rules#links and dont poste clickable links except for legitimate sites.[/i]
If something can be added to anonymize the clicks on links the rule wouldn't need to be enforced as strictly as is now, making it easier for everyone.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 08, 2017 7:20 pm
by smed79
gotitbro wrote:the clicks on links the rule wouldn't need to be enforced as strictly as is now,
The rules still simple and easy to follow
In addition... Honestly i dont like to boost traffic (via backlinks) to craps, advertising, warez or nsfw sites ...
Anonymous Redirect Solution
Posted: Wed Mar 15, 2017 6:32 am
by gotitbro
Hey @
Lanik,
I have been thinking that we should really have some solution for anonymous redirect. The main reason for the
link rule is the referrer problem and to solve this I asked for an answer over on the
Adguard forum (Their approach is very intuitive
https://github.com/AdguardTeam/AnonymousRedirect).
@
avatar said that this should work herein as well:
https://forum.adguard.com/index.php?threads/testing-adguard-anonymous-redirect.20027/
and suggested this:
Code: Select all
$(document).ready(function() {
$('a.externalLink').attr({
'referrerpolicy': 'no-referrer',
'rel': 'noreferrer'
});
$('a.externalLink').each(function() {
var href = $(this).attr('href');
if (href) {
href = 'https://adguardteam.github.io/AnonymousRedirect/redirect.html?url=' + encodeURIComponent(href);
$(this).attr('href', href);
}
});
});
Can you check if
Adguard Anonymous Redirect works here as well, you can check its source on
GitHub.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 15, 2017 1:22 pm
by smed79
Can replaced just by adding
<meta name="referrer" content="no-referrer" />
to the head of the page <head>...</head>
or adding
rel="noreferrer" to the external.
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 15, 2017 2:03 pm
by gotitbro
We can host the referrer anonymizing URL here as well. If what you suggest works good why not add that?
Re: "Do not automatically parse URLs" disabled and non-functional
Posted: Wed Mar 15, 2017 5:10 pm
by LanikSJ
I prefer not to manually edit files since that can present problems during major/minor upgrades. I haven't seen anything current from the extension DB @ phpbb.com that will have the same functionality.