Lavalair Scripting Tools!

Started on the old forum in February 2007 · view the original in the archive · old links redirect here

48 replies · 8,683 views · started 19 years ago · 1 min read

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.

10 participants
Guest #21

my admin admincp.php and admproc.php already have this code

exit();

and I never edited it.

rldowling03 #22

Yeah the admincp.php comes with it already, but modcp lacks it, not sure if Iris did it because he forgot, or to do it so he could hack them easily

zuker #23

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)

Guest #24

instead of banning its easy and nice if u redirect them to another page/site . I think subzero posted a similar code in some other topic

stringfellowhawk #28

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>";
zuker #29

in what page i put that codes?

Guest #30

in what page i put that codes?

In all pages of your script...

alesh Lead · 604 posts #32

i saw ppl talking about anonymouse here..... can it be banned????

i thnk not, cuz if u ip ban sum1 who using anonymouse, he/she can register another account at ur site!!!!

its sux!!!

eeeeerrr....

GiLL Senior · 356 posts #33

go to anonymouse urself and browse ur site then make nick then ban with ur admin cp i think anoymouse hv same ip for all

left wap stuff

subzero Super moderator Fellow · 3,954 posts #34
$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... _______…

alesh Lead · 604 posts #35

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....

wolf77ar Developer · 51 posts #36

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>";

amylee Principal · 1,092 posts #37

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

alesh Lead · 604 posts #38

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

eeeeerrr....

wolf77ar Developer · 51 posts #39

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 ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/wink.gif) 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>";

alesh Lead · 604 posts #40

wolf r u sure thats works at ur script??? cuz i made all that, but i stillsucesfuly registered a new nickname while i was browsing tru anonymouse.......

eeeeerrr....

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close