[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is there a reliable way to completely block smart phone

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 57
Thread images: 10

File: 1453756014535.jpg (75KB, 705x530px) Image search: [Google]
1453756014535.jpg
75KB, 705x530px
Is there a reliable way to completely block smart phone users from my web site?
>>
god i hope you're hiro
>>
>>61982296
Destroy all the smart phones in the world.
>>
>>61982296
>my web site
Fuck off nobody actually want to use your shitty site
>>
>>61982296
xDDD totally this gnu/bro everyone should totally be using $20 thinkpoor with linux on it
>>
>my site is too good to allow smartphone PLEBS from accessing it
>i don't want users
>i enjoy self-sabotage and being a failure
>here's a picture of the most meek, boring and forgettable character from all of star trek because he represents everything i am in real life

/g/s final form right here
>>
File: 1502327746315.png (755KB, 628x773px) Image search: [Google]
1502327746315.png
755KB, 628x773px
>>61982352
now look at this passive aggressive cunt.
balls just tucked or did you get rid of them completely?
>>
No, you need to rely on the information the browser gives your server to identify a smartphone user and that can always be faked.
>>
>>61982362
why do you think that its self sabotage to not want idiots in your site?
>>
>>61982439
my guess is that the ones who know enough about computers to fake the browser agent are probably not the problem for the OP and the majority does not know how to do that.
>>
>>61982362
>Projecting this hard
>>
>>61982296
Not realistically, no. But you can prevent 95% of them from accessing the site by "offering" a mobile version of your site that is completely dysfunctional and broken. People clever enough to request the desktop version of a site are relatively rare.
>>
>>61982362
>O'brien
>forgettable
He's not though.
You on the other hand...
>>
>>61982544
>People clever enough to request the desktop version of a site are relatively rare.
They're also your target audience because they're not dumb normies
>>
>>61982308
Who?
>>
>>61982296
There are two approaches:
1. Block based on user agent.
-> Easily circumventable.
2. Block based on IP
-> Doesn't block people using their smartphone at home, but people using their laptop via tethering.

No.
>>
>>61982694
chinkmoot
>>
detect screen resolution and block smartphones
>>
>>61982885
Smartphones are pretty high-res these days.
You just end up blocking people like me who like to keep their browser window small.
>>
>>61982534
You cant do it on android or iOS anyways iirc, so its a moot point
The one person running plasma or similar wont be on your site likely
>>
File: 1502859475283.gif (531KB, 400x267px) Image search: [Google]
1502859475283.gif
531KB, 400x267px
>>61982296
Why, did you get butt blasted by a phone user?
You sound salty af
>>
>>61982909
block screens where the height is bigger than the width
>>
File: 1402510496284.gif (2MB, 400x225px) Image search: [Google]
1402510496284.gif
2MB, 400x225px
>>61982917
you sound like a fag
>>
>>61982923
>hold phone sideways
>>
>>61982923
That fucks me over when I use dwm and bottom stack layout.
>>
>>61982706
Do mobile browser user agents differ from desktop browser user agents?
>>
You could block mobile clients, but you're relying on client-side reporting. Throw in JS resolution detection and other JS data collection and you can get a good idea if they're a smartphone user (hell just block the site to anyone who DOESN'T disable javascript)
>>
>>61982961
yes
>>
>>61982968
So that is the solution for 99% of OPs users

OP, just find out mobile browser user agents and block them
>>
File: 1466286047847.gif (277KB, 240x287px) Image search: [Google]
1466286047847.gif
277KB, 240x287px
>>61982296
>reliable
not really.
>sorta reliable
check for user agent and browser, blacklist everything originating from a phone.
>>
>>61982960
Oops got it backwards.
It will fuck me over in dwm's normal layout.
And even in floating wms I always have my browser window have more height than width
>>
File: tumblr_n1albcqLHi1sgv55fo1_400.gif (377KB, 300x169px) Image search: [Google]
tumblr_n1albcqLHi1sgv55fo1_400.gif
377KB, 300x169px
>>61982296
This star wars guy looks like professor dumb lmfao.
>>
>>61983009
you're a fucking moron.
>>
>>61983002
how DO you block user agents access when you have a site?
>>
>>61983023
add rules to .htaccess
>>
>>61983022
*your
says the dipshit that can't even spell
>>
Just make your site with static dimensions and make them pinch zoom.

I imagine any smart phone user would simply leave because your website is incredibly shit.

This is the only good way I know of.
>>
File: 1463633880065.gif (729KB, 267x200px) Image search: [Google]
1463633880065.gif
729KB, 267x200px
>>61983040
the fact that this is what you consider trolling is seriously embarrassing. way to show your age.
>>
File: 1498754493379.jpg (32KB, 650x488px) Image search: [Google]
1498754493379.jpg
32KB, 650x488px
>People hating on Miles "My life is eternal suffering Edward O'Brien
>>
>>61983035
>using Apache
This is the state of /g/
>>
>>61982362
What the fuck is wrong with you?
>>
>>61983059
*you're
stupid dumbfuck youll never get anywhere in life like that
>>
>>61982439
If you could obtain the IP's of phone networks' outward facing devices, you could range-ban them all. People could still hop on WiFi to post, but at least you've thinned the herd.
>>61982534
>>61982544
Have you never seen the lengths that technically competent and always angry autists will go to just to screw with threads they hate?
>>
map $http_user_agent $is_desktop {

default 0;

~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule

~*spider|crawl|slurp|bot 1; # bots

~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes

}


## Revert the logic.

map $is_desktop $is_mobile {
1 0;
0 1;
}


if ($is_mobile = 1) { return 403; }


nginx -s reload
>>
>>61983023
use PHP or some shit, sherlock.

>>61983088
nginx is gay hipster trash, go fuck yourself.
>>
>>61983289
>traffic filtering at application level
>shitting on nginx
>endorsing PHP
what did he mean by this
>>
File: IMG_0132.jpg (91KB, 525x724px) Image search: [Google]
IMG_0132.jpg
91KB, 525x724px
Tabletposter lives matters
>>
>>61983328
nginx is crap though
>>
>>61983729
Maybe back in 2009. Nowadays nginx is superior in every way (performance, modularity, easier to config/deploy, much faster support for cutting edge specs like http2 and TLS 1.3)

>inb4 much BSD craplicense
It's not like Apache 2.0 is copyleft
>>
>>61982296
The same way you block females from having any interaction with you, you basement dweling fuck
>>
>>61982965
Just wrap the entire contents of the site in noscript tags.
>>
>>61983960
Except for providing hosting to multiple users.
>>
>>61982706
>1. Block based on user agent.
>Easily circumventable.

Most mobile users have no idea what a user agent is, much less how to change it. I don't even know how to do it on IOS.

Blocking the user agent wouldn't 100% block all mobile users, as OP requested, but it would get pretty damn close
>>
File: Screenshot_20170819-191257.png (27KB, 720x1280px) Image search: [Google]
Screenshot_20170819-191257.png
27KB, 720x1280px
>>61984000
>
>>
>>61982296
Run your whole site as a Java applet?
>>
>>61982362
He's wifey. He's fallen for the asian wife meme, tho. Nevertheless, I has a wife which most people here don't have.
>>
>>61982296
write the whole website in flash, they probably removed support for it from most phones already.
Thread posts: 57
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.