Lavalair Scripting Tools!
Started on the old forum in February 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 48 replies
- - The code to protect against hacking should be placed in admincp.php and admproc.php files.
- - To block users using the browser "anonimouse.org" and browsers with version 4.0, a redirect script needs to be added where appropriate pages are located.
- - A ban for anonymous users can be implemented by checking their HTTP_USER_AGENT string and redirecting them to a specific URL if they match certain criteria.
- - The exact placement of the code in admincp.php or admproc.php depends on how these files are structured within the forum script.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
my site got hacket to,but i want to bann automaticli 2 browsers anonimouse.org and mozila 4.0 . how can i do that ? pls help here or pm me External image (may be gone)
ies its good to redirect to another page / but how i can do that? External image (may be gone)
ies its good to redirect to another page / but how i can do that? External image (may be gone)
Here is topic how to do that... http://www.2wap.org/forums/index.php?showt...&hl=browser
i see so many codes but wher do i put them? External image (may be gone) External image (may be gone)
try this:
<?php // IP AND BROWSER BAN $browser = explode ('/', $HTTP_USER_AGENT); if($REMOTE_ADDR=="USERS IP" AND $browser[0]=="Opera"){ header ('Location: http://google.com');} // BROWSER BAN $browser = explode ('/', $HTTP_USER_AGENT); if($browser[0]=="Opera"){ header ('Location: http://google.com');} ?><?php/* jezus */
header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>"); echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml>
<?php include("config.php"); include("core.php"); connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; if(!ismod(getuid_sid($sid))) { echo "<card id=\"main\" title=\"jezus\">"; echo " "; $fp=fopen("iplog.txt","a+"); fputs($fp,"|=|$HTTP_USER_AGENT|$REMOTE_ADDR|=|\n\n"); fclose($fp); echo "You are not a mod "; echo " "; echo "<a href=\"index.php\">Home</a>"; echo " "; echo "</card>";who can help me to put an trivia on my site script ? that will be nice pls help External image (may be gone)
$browser = explode ('/', $HTTP_USER_AGENT);
if($browser[0]=="http:")
{ header ('Location: [url]http://Anonymouse.org/'[/url]); }
Place this where you like ok External image (may be gone) on top header if ya searched the forums you mite found this before asking.....
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
NO, ANONYMOUSE GOT NO SAME IP 4 EVERY 1!!!! AT 1 SITE I GOT 5 OR 6 BANED IP's!!!!!!
SUBZERO WHERE CN I PUT THAT BLOCK 4 ANONYMOUSE????
$browser = explode ('/', $HTTP_USER_AGENT); if($browser[0]=="http:") { header ('Location: http://Anonymouse.org/'); } ??????????????
CUZ I FOUND ONLY THIS AT register.php
//$brws = explode(" ",$HTTP_USER_AGENT); //$ubr = $brws[0]; //$fp = fopen("gallery/info.txt","a+"); //fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n"); //fclose($fp);
is that it or???
eeeeerrr....
I use subzero code on my site and work succesfuly External image (may be gone) Try this: Make one php file eg: redirect.php and put this code
<? $browser = explode(" ",$HTTP_USER_AGENT); if($browser[0]=="http://Anonymouse.org") { header ('Location: http://Anonymouse.org'); } if($browser[0]=="Mozilla 4.0") { header ('Location: http://www.google.com'); } exit;} ?>And after put this code in your index.php, register.php and login.php include("redirect.php");
Don`t modify headers informations Put include("redirect.php"); after: include("config.php"); include("core.php");
Also You can modify redirect.php whith your restricted browser and you can redirect them to any sites External image (may be gone)
echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";
i block anonymouse.org using iptables much easier anyway to block anonymouse from even registering on lavalair script use this snippet from my old register.php file
<?php
$uid = $_POST["uid"];
$pwd = $_POST["pwd"];
$cpw = $_POST["cpw"];
include ("config.php");
include ("core.php");
connectdb();
$brws = explode(" ",$HTTP_USER_AGENT);
$ubr = $brws[0];
echo "<card id=\"register\" title=\"lavalair.net\">\n";
$ipr = getip();
$uip = explode(".",$ipr);
[b]if(!canreg()||$ubr=="http://Anonymouse.org/")[/b]
{
echo "
";
echo "<img src=\"images/notok.gif\" alt=\"X\"/>you are banned from registering";
echo "</p>";
}else{
echo "
";
?>
the bit in bold font blocks ppl using anonymouse .org from registering if you want to add another browser say tagtag.com enter it like this
if(!canreg()||$ubr=="http://Anonymouse.org/"||$ubr=="tagtag.com")
making sure you add both the || before the new entery and the closing ") at the end
uggggghhhhhhhhh WOLF WHEN I DID WHAT U SAID, I GET THIS WHEN I TRIED 2 OPEN MAIN PAGE
Parse error: parse error, unexpected '}' in /home/www/blabla.com/redirect.php on line 11 i did evrythng u said
Sorry man
<? $browser = explode(" ",$HTTP_USER_AGENT); if($browser[0]=="http://Anonymouse.org") { header ('Location: http://Anonymouse.org'); } if($browser[0]=="Mozilla 4.0") { header ('Location: http://www.google.com'); } <============================ HERE ITS WRONG// Remove this  exit;} ?>This code its correct now I was rushed yesterday External image (may be gone)
<? $browser = explode(" ",$HTTP_USER_AGENT); if($browser[0]=="http://Anonymouse.org") { header ('Location: http://Anonymouse.org'); } if($browser[0]=="Mozilla 4.0") { header ('Location: http://www.google.com'); exit;} ?>echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";