The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin 4 Request - Block Opera Mini
Opera Mini has been a problem for me. Though it is sometimes used by spammers, from time to time I use services like Postloop. There are some people who create multiple accounts which breaks the TOS, but they use the proxy features of Opera Mini to hide their identity. There is an online demo of the browser (uses Java I think), so they might use Opera Mini on their desktop so they can more easily exploit sites like Postloop.
I hear this should be an easy case of user agent blocking. I've given a couple of scripts a try as plugins but I can't seem to get it working. Ideally I'd like a block to redirect the Opera Mini user to a page explaining the block. If anyone can make such a mod I'd be very thankful! |
#2
|
||||
|
||||
A redirect type of mod based on user agent should be do-able (just not by me today too busy) but until you have time to dig into it deeper or find someone with time to code it you can try:
https://vborg.vbsupport.ru/showthread.php?t=268208 Doesn't matter if they're a spider/bot or not it will ban the user agent, the thing about Opera Mini you must realize is the fact it has so many user agents, so one of the older mods/plugins you used prior may have worked HOWEVER may not of contained references to all the OM agent strings therefor it wasn't always detected etc. Reference: http://www.useragentstring.com/pages...ame=Opera+Mini |
#3
|
||||
|
||||
Try a plugin on init_startup hook with this code:
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false) { header('Location: http://yoursire.com/path/to/explanation.php'); } WARNING - if there is a bug/issue you will need to DISABLE_HOOKS via config.php file to access the forum as the init_startup hook is run even on admincp pages. Any issue there can bring down the entire forum. I haven't tested the code so i can't say for certain it will work, |
3 благодарности(ей) от: | ||
MarkFL, Max Taxable, TheLastSuperman |
#4
|
|||
|
|||
Thanks for the suggestions guys, but no luck yet. I tried BOP5's method first but it just didn't seem to be working, so I thought I'd give TLS's a go. It's a nice plugin you've linked to but I can't get it to work. I downloaded a huge list of Opera Mini UA strings, put them in the mod and turned it all on but nothing's changed.
It doesn't seem to be registering that I'm accessing the forum on my phone with Opera Mini as there's no output to the log file. I know Opera Mini was designed to be a royal PITA through and through but I can't make sense of this... Any ideas? Cheers! |
#5
|
|||
|
|||
try to block ar web server level.
Apache- SetEnvIfNoCase ^User-Agent$ .*Opera Mini.* bad_bot <Directory "/home/*/public_html"> Order Allow,Deny Allow from all Deny from env=bad_bot </Directory> Nginx- if ($http_user_agent ~* (opera m(ob|in)i)) { return 403; } |
#6
|
||||
|
||||
The problem is Opera Mini is essentially lying. I installed it, visited my own site, went to a specific thread no one else was viewing, and went to Who's Online with the browser User Agent enabled and this is what I got as the only user viewing that thread:
107.167.108.183 Mozilla/5.0 (Linux; U; Android 8.0.0; SM-G930P Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.91 Mobile Safari/537.36 OPR/36.2.2254.130496 First it isn't my IP address and second Opera Mini is never mentioned in the User Agent. Doing a search on the IP it comes back as: Opera Mini Proxy Doing some Googling it seems there are thousands of possible Opera Mini Proxy IP addresses- https://tools.tracemyip.org/search--...era+mini+proxy So it's not a simple IP block either. Unfortunately I don't have an answer other than why the User Agent isn't working. --------------- Added [DATE]1536090887[/DATE] at [TIME]1536090887[/TIME] --------------- Opera desktop use agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.44 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|