"Do not automatically parse URLs" disabled and non-functional

General forum information, announcements, news, questions and suggestions.
Locked
barbaz
Postaholic
Postaholic
Posts: 204
Joined: Mon Sep 15, 2014 12:55 am

"Do not automatically parse URLs" disabled and non-functional

Post 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 :)
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

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.
"If it ain't broke don't fix it."
barbaz
Postaholic
Postaholic
Posts: 204
Joined: Mon Sep 15, 2014 12:55 am

Post by barbaz »

Working nicely now, thanks Lanik for the fast fix :D
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

Lanik wrote:I'll let him explain what he's trying to do.
Already clear, big brother is watching us through the backlinks :mrgreen: 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
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
User avatar
fanboy Verified
EasyList Author
EasyList Author
Posts: 12249
Joined: Wed Sep 05, 2007 8:17 pm

Post by fanboy Verified »

The other issue, do we stop bots from checking the site?
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

I think this can be disabled from the admin panel.
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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?
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

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
"If it ain't broke don't fix it."
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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.
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

"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.
"If it ain't broke don't fix it."
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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?
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

gotitbro wrote:If the extension is anonymising the clicks on the links ...
Test here https://www.whatismyreferer.com/
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

gotitbro wrote: Wed Mar 08, 2017 3:16 am If the extension is anonymising the clicks on the links then why do we even need this rule: https://forums.lanik.us/rules#links?
If you click @smed79 link you'll see the refer is still sent.
"If it ain't broke don't fix it."
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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.
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

I checked earlier and I haven't found anything yet.
"If it ain't broke don't fix it."
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

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).
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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.
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

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 ...
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post 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.
User avatar
smed79 Verified
Liste AR/FR Author
Liste AR/FR Author
Posts: 15839
Joined: Sun Jan 17, 2010 4:00 am
Location: EasyList Forum

Post by smed79 Verified »

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.
•► Read RULES / Use forum Search
••► Don't post clickable links
•••►Upload screenshots at imgbb.com
gotitbro
Postaholic
Postaholic
Posts: 866
Joined: Sat Jul 09, 2016 8:33 pm

Post by gotitbro »

We can host the referrer anonymizing URL here as well. If what you suggest works good why not add that?
User avatar
LanikSJ Verified
Site Owner
Site Owner
Posts: 1812
Joined: Thu Feb 15, 2007 7:44 am
Location: /dev/null

Post by LanikSJ Verified »

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.
"If it ain't broke don't fix it."
Locked