Jump to content
xisto Community
Sign in to follow this  
intelx86

Php: Allow Or Block Browsers

Recommended Posts

The scripts I have attached either allow the visitor to enter your site, if his browser is in the allowed list, or block him, if his browser is in the blocked list.-----------------------------------------------------Since this is a script, it should go into the scripting forum.. Moved.m^e

Share this post


Link to post
Share on other sites

There are quite a number of people on this forum who do not know PHP so it would maybe be wise to include a help file with that zip.....it is a good code thoughIf you do chose to make the help file make sure to say that if somebody already has a index file made they should just copy paste what si included inside the index's that come with the zip file to the include section (which is at the top of the php file) of the php file they want to browser protect...I myself am not that well with php :P so thats why I suggest the help file...Still it is a pretty good ideathnx

Share this post


Link to post
Share on other sites

Why would anyone want to block a browser????I know a lot of people hate Micro$soft Internet Explorer (myselve included).. but what about the visitors... ????... there a lots of people that doesn't care for browsers, they just want to urf the web.. why make it difficult for them???

Share this post


Link to post
Share on other sites

Why would anyone want to block a browser????

 

I know a lot of people hate Micro$soft Internet Explorer (myselve included).. but what about the visitors... ????... there a lots of people that doesn't care for browsers, they just want to urf the web.. why make it difficult for them???

<{POST_SNAPBACK}>


Well if for some reason the site is designed so that it will just not function with certain browsers. Blocking the incompatible browsers makes sure that the site isn't even attempted to be parsed. Then of course a different version of the site can be loaded.

Share this post


Link to post
Share on other sites

I know what you're saying, cuase it's happening with my site... i actually posted a new topic looking for help...But making a diferent design per browser it's quite exhausting, don't u think?There must be a way of designing an all browser compatible site... and a way to verify that...

Share this post


Link to post
Share on other sites

I created this script because I couldn't bare some sites which needed Internet Explorer. In most cases, if you changed the browser's user agent code, you could see the site without errors.These scripts where created to promote Internet Explorer. So with this script, I will try to promote Mozilla Firefox.

Share this post


Link to post
Share on other sites

I get your point, i just don't think your users -or anybody elses for that matter- should suffer the conscecuences of Micro$oft lovers, you should promote Firefox from your site..have u heard of racism????... clasicism???... maybe this is the new "Borwsersicism" of something like taht.. and it neves ends well....just a comment...I use firefox...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.