How would you block mobile users from a website?

How would you block mobile users from a website?

i wouldn't

/thread

blocking by user agent would eliminate 80% of them. most would be too lazy to switch

I wouldn't unless I wanted to lose 90% of the market but you can use user agent, resolution, check if the CPU is ARM or not (will have some false positives but you probably don't care about people posting from their Raspberry Pi) or maybe use the vibration API. Anything but user agent, which can be spoofed easily, will require JavaScript so you'd have to load all your content through JavaScript so anyone visiting your website with it disabled would just get a blank page.

user agents

No sane person would do that since most mobile traffic, even on Sup Forums, comes from devices that don't block ads.

you don't need to use javascript at all to block by useragent

Automatically nmap all connections

I would only block ios users

Just rice up the .htaccess

Make your website entirely in flash.

Give them a prompt asking if they're on a mobile phone. If they click yes, perma ban them.

By checking battery level.

Smart.

Works on old Nokia checkmate

User agent is good enough.
But why?
Just use CSS grids. It makes making your HTML readable and thus easier to generate and transfer, mobile users can view it, desktop users can view it and it doesn't require js to reshape the site.

The worst of the bunch certainly isn't using an old Nokia dumbphone.

Check user agent
Check resolution
Check other phone API
Ban mobile IP ranges

>Check user agent
>Check resolution
>Check other phone API
can all be spoofed with 1 simple app

>Ban mobile IP ranges
wifi

I don't think any of the mentioned methods would work if the stupid phone poster uses a proxy.

>force desktop useragent
>make it look like unusable shit on a 5" screen

Deploy a learning algorithm to scan their post before it is uploaded. If it's flagged as abhorrent garbage, then ban them for being stupid, dumb, phone-posting scum.

>can all be spoofed with 1 simple app

And you'd still block most of the mouthbreathing retards.

>slowing your site down with .htaccess
>slowing your site down with Apache

Make your website best viewed at 800x600 with IE 6.0 or Netscape 7.02 or Mozilla Firefox 1.0.6 or higher

>not reading it as "... you're not awesome. Then, that means..."

Force a WPM test.

Phone posters will all fail the test since they cannot possibly compete with someone using a keyboard.

Block to get rid of mobile shitposting or block to decrease traffic/server costs?

If it is the former - make posts from posted from mobile phones (identified by useragent/resolution/whatever) not visible to regular non-mobile users. This way the retards can still troll themselves and it'll take em long enough to notice what's going on.

And I'm completely aware that you can spoof shit on your mobile phone, but think about it, the majority of phone posters are not really tech savvy. And they just come here to shitpost and not to lurk.

You could probably check for typical auto-correct mistakes.

You might as well just shut down your website.

>he thinks he has more than 1 visitor per day to his website

>Anything but user agent, which can be spoofed easily, will require JavaScript

>not wanting your website to be as fast as it can be for that 1 visitor

User agent. If someone wants to access the site enough to spoof their user agent, let them.

Useragent and screen resolution would be a good start. Best if you don't let them know they're blocked- have a separate kiddy play area for the mobile users. Remove the incentive to switch.

It's not difficult to fake useragent, especially if someone is motivated to make an app to do it. Generally you cannot rely on something that the phone sends to your server to identify itself, since they can just send what they want.

Something that might actually work is some kind of task or captcha that can only be completed on a real device. Not sure at all what that could be. Something based on CPU architectures would have to be the focus I think- maybe something that requires x86 instruction sets.

this, the people who know/care to do that aren't the ones OP is trying to ban presumably

You get two benefits:
1. You remove the most cancerous type of poster.
2. You free up bandwidth and lower server hits to which improves the experience of normal users now that you can afford to get rid of some posting limitations and unpopular monetary tactics for upkeep and maintenance.

It's a win-win.

I agree, Sup Forums should have been shut down at its peak before phoneposters started swarming and nuked the quality of the whole site.

disable Sup Forums api
block phone user agent

that should remove huge chunk of phoneposters

>wanting to block the only group that actually gives the site ad revenue

Now we're cooking

Using CSS
media screen and max-width 719px
body display:none;
Kek

There is no way to completely block mobile users. The things you quote together would prevent most mobile posting.

even my 5 year old phone has a width of 1080px though

only allow WAP connections

Don't make a mobile website, no mobilefag is going to want to waste their time zooming in and out trying to figure out a website that was designed for desktop

You know mobile browsers have those things called text wrapping and auto-zoom for desktop websites, right?

this

Dumb desktop poster

>If it is the former - make posts from posted from mobile phones (identified by useragent/resolution/whatever) not visible to regular non-mobile users. This way the retards can still troll themselves and it'll take em long enough to notice what's going on.
Pretty much this. One of the most clever thing reddit ever did was introduce the feature of shadowbanning.
You can post but noone will see your post ever.
Like how fucking effective would that be to these tons of Australians and other bored children posting interracial porn and other horseshit on blueboards? Banning them solves nothing since they just queue for another IP and off we go again. BUT if they only saw eachother's post. That would be farking nice.

Just unoptimize it use unseen artifacts that mess with touch screen navigation, remove small screen mode. If you inconvenience people enough you can funnel them into doing what you want.

Protip: Users who ask why anyone would block phoneposters ARE phoneposters

Make site load in desktop mode by default and pop up when first loading the site "Do you want to switch to mobile mode?" If yes, their IP gets perma banned, if no, they have to use the desktop version of the site and be discouraged because it's dogshit on a phone.

I dont think normie phone users would know how to do that. If you are trying to weed out normies, you nught as well allow those 'clever' enough to use user agent spoofing on your website even from phones

Don't allow connections from mobile IP blocks?

have a think about that one user

But it reports a much lower effective resolution to websites for the sake of being able to read shit without a magnifying glass.

Wouldn't that also block lappy users?

i want to lurk on the toilet, fuck off

>fallacy

>How would you block mobile users from a website?
You block the domain in the router

The overhead would be unreal

I can't think of any reason to blocking a portion of your user/viewer base, but the easiest way seems to just make it format really terribly on mobile resolutions. People will stop going if the site sucks for mobile

Jesus fuck 99% of traffic are lurkers, if you want to blame shitposters blame yourself

that doesnt even make sense you dip

i think it was a joke user