NSFW pornhub.com

This is where you should report issues arising from the subscription filters.

Moderator: EasyList authors


papadoc
Senior Member
Senior Member
Posts: 78
Joined: Sat Nov 01, 2014 11:41 am
Reputation: 0

Post by papadoc » Sat Feb 03, 2018 2:54 pm

How do I whitelist data-images blocked by a csp filter?

Code: Select all

*$csp=script-src 'self' * data: 'unsafe-inline' 'unsafe-eval',domain=pornhub.com|xhamster.com|youporn.com
I'm guessing it's that one, but it's definitely a filter. I'm using the mobile version, and it actually blocks the data-images for Chrome's native html5 player (the pause/play/mute/fullscreen buttons). Also blocks the arrow data-images in my custom scrollbars. Just looking to whitelist data-images if possible.

intense
Contributor
Contributor
Posts: 7566
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 99

Post by intense » Sat Feb 03, 2018 3:08 pm

Where did you see that filter ? adblocker ? provide an example page with blocked images .

papadoc
Senior Member
Senior Member
Posts: 78
Joined: Sat Nov 01, 2014 11:41 am
Reputation: 0

Post by papadoc » Sun Feb 04, 2018 2:12 am

It's any video page if you're using the mobile layout. I often switch the UA string for some sites because the native player tends to be more efficient than other "sophisticated" html5 players. Sometimes pages are lighter and load better, and the general layouts are nicer and ads are less designed to be tamper proof.

Anyway, some filter is blocking data-images regardless. In the regular layout, it blocks my custom scrollbar arrows, but in the tablet layout, it blocks all the button images of the native player. The site doesn't switch URLs for different layouts, it switches dynamically. You can test with almost any UA switcher, but I use "User Agent Switcher, URL sniffer". The site stores a layout cookie, so site data needs to be cleared when you switch. They have 2 different tablet/phone layouts, so use a tablet UA like iPAD.

Blocked native player/scrollbar arrow data-images: https://i.imgur.com/JqtC7Tt.png
Console: https://i.imgur.com/rN9LHn6.png
The filter I assume is the culprit. I can't really test, because I can't figure out how to circumvent it: https://i.imgur.com/nLdvem1.png

Some filter is blocking data-images, because if I disable Ublock, they aren't blocked. I don't see the specific " img-src 'self' " rule, but I'm guessing it's a byproduct of the csp filter, IDK.

intense
Contributor
Contributor
Posts: 7566
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 99

Post by intense » Sun Feb 04, 2018 8:03 am

However, the filter should be (and then rewritten by uBo as a $csp filter)

Code: Select all

|blob:$script,domain=pornhub.com|xhamster.com|youporn.com
to add an exception:

Code: Select all

@@|blob:$script,domain=pornhub.com

papadoc
Senior Member
Senior Member
Posts: 78
Joined: Sat Nov 01, 2014 11:41 am
Reputation: 0

Post by papadoc » Mon Feb 05, 2018 11:51 pm

Nah, it doesn't work, but I appreciate the help. I guess UBo is doing too much.

intense
Contributor
Contributor
Posts: 7566
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 99

Post by intense » Tue Feb 06, 2018 7:02 am

@papadoc what if

Code: Select all

@@*$csp=script-src 'self' * data: 'unsafe-inline' 'unsafe-eval',domain=pornhub.com

papadoc
Senior Member
Senior Member
Posts: 78
Joined: Sat Nov 01, 2014 11:41 am
Reputation: 0

Post by papadoc » Thu Feb 08, 2018 7:17 am

Nope. Not being familiar with the filter, that's the first thing I tried. No dice. IDK if there is a way to negate it. I hardly ever use the site, so it's NBD. I've already wasted more time than it's worth to me just out of curiosity.

User avatar
pizza
Forum Junkie
Forum Junkie
Posts: 127
Joined: Sun Jul 09, 2017 7:09 pm
Reputation: 0

Post by pizza » Thu Mar 22, 2018 4:59 pm

what happened with the ads on this site?? I'm using ABP in chrome and show ads..

Code: Select all

pornhub.com#?#div[style^="cursor: pointer; display: inline-block !important;"]
pornhub.com#?#div[style^="display: block !important;"]
These filters take away the ads of this NSFW site. :roll:

My ABP Filters lists:
https://i.imgur.com/gvGbWF3.png

intense
Contributor
Contributor
Posts: 7566
Joined: Wed Mar 27, 2013 9:56 am
Reputation: 99

Post by intense » Thu Mar 22, 2018 6:38 pm

@pizza, for porn sites you better use uBo.

phub
Forum Junkie
Forum Junkie
Posts: 113
Joined: Fri Jun 06, 2014 7:44 pm
Reputation: 0

Post by phub » Mon Mar 26, 2018 2:57 am

Code: Select all

https://www.pornhub.com/premiumplaces
Can you whitelist the https://maps.googleapis.com/maps/api/js
thanks!

phub
Forum Junkie
Forum Junkie
Posts: 113
Joined: Fri Jun 06, 2014 7:44 pm
Reputation: 0

Post by phub » Thu Apr 12, 2018 4:14 am

https://www.pornhub.com/recommended/taste is broken because of
https://ci.phncdn.com/www-static/js/recommended-taste.js being blocked.

and on search pages https://www.pornhub.com/video/search?search=sex the category filtering is hidden because of
https://ci.phncdn.com/www-static/js/searchFilter.js being blocked too.

thank you

Frankyboy
New Member
New Member
Posts: 1
Joined: Sun Apr 22, 2018 7:25 am
Reputation: 0

Post by Frankyboy » Sun Apr 22, 2018 7:30 am

Player currently badly broken, misses half its elements. I'd guess this is a result of these values:

Code: Select all

pornhub.com###player + [id][class]
pornhub.com###player + div + div[style]
pornhub.com###player + div[style]
pornhub.com##.video-wrapper > #player + [class]
all of which are _way_ too generic (not to mention kinda redundant).

What you probably actually want to block is

Code: Select all

#player > #pb_template
(which is the actual overlay ad)

PS: Oh, you are also blocking the "show more" / "show less" button in the video description, and I got this rule in my exception list since ages to un-break the "load more" in the user feed:

Code: Select all

@@||www.pornhub.com/feeds_ajax

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

Post by fanboy » Sun Apr 22, 2018 10:51 am

Considering pornhub.com##iframe block.

https://github.com/easylist/easylist/co ... 81687c3c80

Done.

phub
Forum Junkie
Forum Junkie
Posts: 113
Joined: Fri Jun 06, 2014 7:44 pm
Reputation: 0

Post by phub » Mon Apr 23, 2018 2:26 am

Hey

You didn't fix the fact that no one with adblock can go fullscreen or adjust volume. The whole site isn't working.
You also just broke at least 10 pages that have iframes, like our support form captcha https://www.pornhub.com/support. I won't know what is broken on adblock if they can't even submit bugs.

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

Post by fanboy » Mon Apr 23, 2018 9:02 am

I do wish we removed the pornhub filters one day.

https://github.com/easylist/easylist/co ... 38f40e8702

phub
Forum Junkie
Forum Junkie
Posts: 113
Joined: Fri Jun 06, 2014 7:44 pm
Reputation: 0

Post by phub » Mon Apr 23, 2018 3:16 pm

Thank you, but please revert e8eda1795 or whitelist content you're blocking in iframes. We use captchas on nearly all forms as well as for spam/bot control. As well as youtube embeds on pages like https://www.pornhub.com/sex/

Also

Code: Select all

https://www.pornhub.com/content-removal
https://di.phncdn.com/www-static/js/content-removal.js

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

Post by fanboy » Mon Apr 23, 2018 8:58 pm

Stop embedding ad iframes.

Post Reply