Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Aug 2018, 04:19
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Lightbulb 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!
Reply With Quote
  #2  
Old 28 Aug 2018, 18:37
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
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://www.vbulletin.org/forum/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
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #3  
Old 30 Aug 2018, 13:07
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Try a plugin on init_startup hook with this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Obviously replace http://yoursire.com/path/to/explanation.php with the URL to your actual explanation. This should be accessible to guests.


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,
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #4  
Old 01 Sep 2018, 20:01
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
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!
Reply With Quote
  #5  
Old 02 Sep 2018, 16:22
unitedpunjab's Avatar
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Real name: Dhillon
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;
}
Reply With Quote
  #6  
Old 04 Sep 2018, 12:25
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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 04 Sep 2018 at 20:54 ---------------

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
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-On Releases Mini YouTube Video in Profile (right side block) stangger5 vBulletin 3.7 Add-ons 261 04 Oct 2012 22:56
Profile Enhancements Mini YouTube Video in Profile (right side block) Embed-URL stangger5 vBulletin 3.7 Add-ons 100 13 Jan 2011 08:57
Profile Enhancements Mini ESPN Video in profile (right side block) stangger5 vBulletin 3.7 Add-ons 13 10 Dec 2008 01:25



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:22.

Layout Options | Width: Wide Color: