hi has any one got the codeing for blocked browsers plz
Has Any One Got The Codeing For This Please :0)
Collapse
X
-
<div class='quotetop'>QUOTE (jsyguy23 @ Jan 29 2009, 01:22 PM) <{POST_SNAPBACK}></div>hi has any one got the codeing for blocked browsers plz[/b]
if(isblockedbrowser())
{
if(!isshield(getuid_sid($sid)))
{
echo "<card id=\"main\" title=\"n3sklub.com\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "browser baned!
";
echo "
";
echo "
";
echo "name:";
echo "
<input name=\"nume\" format=\"*x\" maxlength=\"30\"/>
";
echo "pass:";
echo "
<input type=\"password\" name=\"parola\" maxlength=\"30\"/>
";
echo "»<anchor>GO<go href=\"logare.php\" method=\"get\">";
echo "<postfield name=\"nume\" value=\"$(nume)\"/>";
echo "<postfield name=\"parola\" value=\"$(parola)\"/>";
echo "</go></anchor>«";
echo "</p>";
echo "
© n3sklub.Com";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
}
////////core.php
function isblockedbrowser()
{
$text = $_SERVER['HTTP_USER_AGENT'];
$rez = mysql_query("SELECT * FROM libwf_blockbrowser");
$i=0;
while($row=mysql_fetch_array($rez))
{
$var[$i]=$row[1];
$i++;
}
$result = count($var);
for ($i=0;$i<$result;$i++)
{
$ausg = stristr($text, $var[$i]);
if(strlen($ausg)>0)
{
return true;
}
}
return false;
}
////end this in data base
-- --------------------------------------------------------
--
-- Table structure for table `libwf_blockbrowser`
--
CREATE TABLE IF NOT EXISTS `ibwf_blockbrowser` (
`id` int(11) NOT NULL auto_increment,
`browser` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `ibwf_blockbrowser`
--
Comment
-
<div class='quotetop'>QUOTE (valentin2br @ Jan 29 2009, 05:14 PM) <{POST_SNAPBACK}></div>it must put on each page of script
if(isblockedbrowser())
{
if(!isshield(getuid_sid($sid)))
{
echo "<card id=\"main\" title=\"n3sklub.com\">";
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
echo "browser baned!
";
echo "
";
echo "
";
echo "name:";
echo "
<input name=\"nume\" format=\"*x\" maxlength=\"30\"/>
";
echo "pass:";
echo "
<input type=\"password\" name=\"parola\" maxlength=\"30\"/>
";
echo "»<anchor>GO<go href=\"logare.php\" method=\"get\">";
echo "<postfield name=\"nume\" value=\"$(nume)\"/>";
echo "<postfield name=\"parola\" value=\"$(parola)\"/>";
echo "</go></anchor>«";
echo "</p>";
echo "
© n3sklub.Com";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
}
////////core.php
function isblockedbrowser()
{
$text = $_SERVER['HTTP_USER_AGENT'];
$rez = mysql_query("SELECT * FROM libwf_blockbrowser");
$i=0;
while($row=mysql_fetch_array($rez))
{
$var[$i]=$row[1];
$i++;
}
$result = count($var);
for ($i=0;$i<$result;$i++)
{
$ausg = stristr($text, $var[$i]);
if(strlen($ausg)>0)
{
return true;
}
}
return false;
}
////end this in data base
-- --------------------------------------------------------
--
-- Table structure for table `libwf_blockbrowser`
--
CREATE TABLE IF NOT EXISTS `ibwf_blockbrowser` (
`id` int(11) NOT NULL auto_increment,
`browser` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `ibwf_blockbrowser`
--[/b]
heres the original from wapdesireAttached Files
Comment
-
Guest
-
# deny access to evil robots site rippers offline browsers and other nasty scum
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^Anarchie [OR]
RewriteCond %{HTTP_USER_AGENT} ^ASPSeek [OR]
RewriteCond %{HTTP_USER_AGENT} ^attach [OR]
RewriteCond %{HTTP_USER_AGENT} ^autoemailspider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xenu [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
/////////////////////////////////////////////////////////////
Or, instead of delivering a friendly error message (i.e., the last line), send these bad boys to the hellish website of your choice by replacing the RewriteRule in the last line with one of the following two examples:
# send em to a hellish website of your choice
RewriteRule ^.*$ http://www.hellish-website.com [R,L]
Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free
Comment
Comment