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

General forum information, announcements, news, questions and suggestions.

Moderator: EasyList authors

Post Reply
barbaz
Postaholic
Postaholic
Posts: 204
Joined: Mon Sep 15, 2014 12:55 am
Reputation: 0

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

Post by barbaz » Sat Jun 04, 2016 7:29 pm

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
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Sat Jun 04, 2016 7:46 pm

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
Reputation: 0

Post by barbaz » Sun Jun 05, 2016 2:13 am

Working nicely now, thanks Lanik for the fast fix :D

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Sun Jun 05, 2016 4:49 am

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
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

User avatar
fanboy
EasyList Author
EasyList Author
Posts: 9667
Joined: Wed Sep 05, 2007 8:17 pm
Reputation: 16

Post by fanboy » Sun Aug 21, 2016 10:55 am

The other issue, do we stop bots from checking the site?

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Sun Aug 21, 2016 11:26 am

I think this can be disabled from the admin panel.
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

gotitbro
Postaholic
Postaholic
Posts: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » 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?

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
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Wed Mar 08, 2017 1:46 am

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: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » Wed Mar 08, 2017 1:52 am

@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
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Wed Mar 08, 2017 2:14 am

"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: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » 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?

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Wed Mar 08, 2017 3:35 am

gotitbro wrote:If the extension is anonymising the clicks on the links ...
Test here https://www.whatismyreferer.com/
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

User avatar
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Wed Mar 08, 2017 5:23 am

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: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » Wed Mar 08, 2017 6:31 am

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
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Wed Mar 08, 2017 8:06 am

I checked earlier and I haven't found anything yet.
"If it ain't broke don't fix it."

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Wed Mar 08, 2017 12:57 pm

Lanik wrote:I checked earlier and I haven't found anything yet.
See https://forums.lanik.us/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.
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

gotitbro
Postaholic
Postaholic
Posts: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » Wed Mar 08, 2017 6:40 pm

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
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Wed Mar 08, 2017 7:20 pm

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 ...
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

gotitbro
Postaholic
Postaholic
Posts: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » Wed Mar 15, 2017 6:32 am

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
Liste AR Author
Liste AR Author
Posts: 11680
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 92
Location: EasyList Forum

Post by smed79 » Wed Mar 15, 2017 1:22 pm

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.
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

gotitbro
Postaholic
Postaholic
Posts: 735
Joined: Sat Jul 09, 2016 8:33 pm
Reputation: 4

Post by gotitbro » Wed Mar 15, 2017 2:03 pm

We can host the referrer anonymizing URL here as well. If what you suggest works good why not add that?

User avatar
Lanik
Site Owner
Site Owner
Posts: 1365
Joined: Thu Feb 15, 2007 7:44 am
Reputation: 22
Location: /dev/null

Post by Lanik » Wed Mar 15, 2017 5:10 pm

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."

Post Reply