Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Script to reject browsers Details »
Script to reject browsers
Mod Version: 1.00, by Kzyl-orda (Member) Kzyl-orda is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (0 vote - 0 average) Installs: 4
Released: 01 Jul 2008 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code Translations  

Hello Everyone,
I had like to reject some browsers to enter my site, so first i installed ZH-Restrict A Browser, but blocking javascript on the browser was letting you easly passing through it, then i started to write a more crude, but php, version of the addon, that is different, but with the same target, not enabling some browser to view your page.

To do so i simply entered that string on the global.php in the root directory of the vbulletin installation (global.php, so it will work from every page of your vbulletin installation):

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

I installed it after the following string, and it's working perfectly:

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

OFC instead of "-yourrejectingbrowsername1-" you must place the name of the browser you want to reject, for example "MSIE" (Internet explorer), "Safari" (Safari), "Firefox" (Firefox), "Opera" (Opera) i know the name of just those 4, more is Konqueror, gecho...

Instead of two you may want to reject just one browser, than:

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

Here is a working example, this one reject safari and IE, and send you to firefox download page:

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

I'm using Php 4.4, if you'r with a different version and it doesn't work try to change the string:

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

With the command http_redirect, if you'll google you'll find more information about, actually i can't help without a different php version to test it.

Enjoy.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 01 Jul 2008, 15:27
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Real name: Danny
Sounds Awesome, but do you have a screenshot?
Also can you reject certain browser versions for example IE6 ?
Reply With Quote
  #3  
Old 01 Jul 2008, 16:24
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
a demo link would be nice, so we could try different browsers
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #4  
Old 01 Jul 2008, 18:08
indie2industry's Avatar
indie2industry indie2industry is offline
 
Join Date: Jan 2008
why would anyone want to do this??? Wouldn't it just restrict users from your forum???

Nice mod, but I definatly can not use this one....

I may be slow, lol, but what are the up-side to restricting a browser from your site?
Reply With Quote
  #5  
Old 02 Jul 2008, 00:58
TonySkullz TonySkullz is offline
 
Join Date: Feb 2008
Location: Florida
Real name: Tony
I agree with the above, what's the purpose of completely restricting a browser to use your site? Restricting browsers access to specific sections for incompatibility reasons is more understandable, and is already easily done with conditionals. So, how does anyone benefit from this?

To clarify, I'm not meaning that in a rude way if it seems so, I'm just curious.
Reply With Quote
  #6  
Old 02 Jul 2008, 01:26
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
thank you for the release
__________________
PossibleAndroid
Reply With Quote
  #7  
Old 02 Jul 2008, 01:46
Josh1 Josh1 is offline
 
Join Date: Mar 2006
And why the heck would you want to do this?
Reply With Quote
  #8  
Old 02 Jul 2008, 08:39
Kzyl-orda Kzyl-orda is offline
 
Join Date: Jun 2008
Real name: Nik
I'm back!

@Loco.M
You can see a working demo at my own website if you'll like www.perditionpoetry.com.
But the site itself will not be completed untill september, just in time for Left 4 Dead, great new game from Valve and Turtle Rock, with zombie and much more .
Then don't troll it too much .

@dannykilla
To restrict specific browser like IE 6, you can download the browser first (or IE Net Render if you'r using firefox 3.0), than create a clean *.php page, upload it in your website tests directory.
In the file (within <body></body> of the basic HTML code)write:

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

Than you'll see the possible specific keyword fo the browser you'r using.
IE 6 is "MSIE 6.0", anyway if you'll like to reject more than 2 browser (more than two IE version for example, and sending people to download the last version) modifing the script is really simple, just ask and I'll help you.

@Diffidents
The above one is an example of a possible utility for the addon, how to use it's all about you.

On my side,
I thought this addong while creating a restricted gaming community for my friends, I'm a nerd gamer.
There is no incompatibility issues to avoid, i know how to solve them if i need to, if you are a commercial developer you should use it with real care, as others said kicking people from the site is not usually a commercial benefit, in my side I'm not interested in making money, but in choosing who I'm going to play with, so i can kick people from my site, and be selective.

In specific, the reason i want to reject other browser is also to force people using firefox, or browser different from IE or safari, and this is a my personal battle. I'm not going to explain the reason here because it's not the right place to, it's a my personal choise, and my personal ideals.
Second, as i said not allowing IE i make too young or non nerd users harder to join my community, and that is my target. (I'm not saying that IE is a browser for child or casual users at all. don't misunderstand!)

I'm not surprised if you'll find it silly or useless, it's was invented mainly just for some zealots of hardcore gaming and firefox supported, and even if just 2 people installed it, and maybe there will not be many more, this already make me happy, since this is also my first release. After 2 weeks i bought vb.

I hope to have answered all your question .
Reply With Quote
Reply


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

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 20:30.

Layout Options | Width: Wide Color: