This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Netham45
Pages: 1 ... 5 6 [7] 8 9 ... 123
91
« on: March 30, 2012, 02:10:03 pm »
I'm putting my faith into gmail's spam filter, heh.
Also, updated the script in the first post (I added logging).
92
« on: March 30, 2012, 01:54:32 pm »
I put a script on the site that will check with stopforumspam for every page request, thanks to their DNSBL. I'm hoping this will both cut down on bandwidth and spambot registrations. An example of a bad request: http://omnimaga.org/?testblock&ip=109.230.251.45The requests are cached on my DNS server after the first request, so user impact should be minimal at worst. Here's the script I'm using: <?PHP session_name("dnsbl"); session_start(); $publicKey = "<Recaptcha public key>"; $privateKey = "<Recaptcha private key>"; $whitelist = array(); $checkIP = (isset($_GET['ip']) && isset($_GET['testblock'])?$_GET['ip']:$_SERVER['REMOTE_HOST']); $ip = explode(".",$checkIP); $dnsRequest = "$ip[3].$ip[2].$ip[1].$ip[0].dnsbl.tornevall.org"; $requestResult = gethostbyname($dnsRequest); $isBlocked = ($requestResult!=$dnsRequest);
if (isset($_GET['captcha'])) { $array_postvars = array(); $array_postvars[] = 'privatekey=' . $privateKey; $array_postvars[] = 'remoteip=' . $_SERVER['REMOTE_HOST']; $array_postvars[] = 'challenge=' . $_POST['recaptcha_challenge_field']; $array_postvars[] = 'response=' . $_POST['recaptcha_response_field'];
$ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, implode('&', $array_postvars)); curl_setopt($ch, CURLOPT_URL, "http://www.google.com/recaptcha/api/verify"); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch); $error = curl_error($ch); unset($_SESSION['recaptcha']); if ($result == "true\nsuccess") $_SESSION['recaptcha'] = true; header("location: index.php"); } if (($isBlocked || isset($_GET['testblock'])) && !in_array($checkIP,$whitelist) && !isset($_SESSION['recaptcha'])) { header('HTTP/1.0 403 Forbidden'); $file = file_get_contents("blocked_hosts.txt"); $file .= "\n[" . date("r") . "] Blocked: $checkIP " . ($isBlocked?"Block":"Test"); file_put_contents("blocked_hosts.txt",$file); $errorCode = explode(".",$requestResult); $errorCode = intval($errorCode[3]); echo "<html> <head> <title>Blocked</title> </head> <body> Apologies, but your IP ($checkIP) is blacklisted as a spammer. <span style=\"color:#F00\">You have not been banned from Omnimaga</span>. If you believe this is in error, please e-mail <a href=\"http://www.google.com/recaptcha/mailhide/d?k=01zMDC5OWSs7zbYNzHfWcbLg==&c=xOphTe00o_PsF0UW3DYNxgM6oLOdZ92RuAQvVkgZqQM=\" onclick=\"window.open('http://www.google.com/recaptcha/mailhide/d?k\\07501zMDC5OWSs7zbYNzHfWcbLg\\75\\75\\46c\\75xOphTe00o_PsF0UW3DYNxgM6oLOdZ92RuAQvVkgZqQM\\075', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">[email protected]</a> for help. Please remember to include your IP, $checkIP, in the message. This site is using the DNSBL provided by http://dnsbl.tornevall.org/ <br/>Code received: $errorCode<br/>Blocked for:<br/><ul>"; if ($errorCode & 1) echo "<li>Proxy has been scanned</li>"; if ($errorCode & 2) echo "<li>Proxy is working</li>"; if ($errorCode & 8) echo "<li>Proxy was tested, but timed out on connection</li>"; if ($errorCode & 16) echo "<li>Proxy was tested, but failed at connection</li>"; if ($errorCode & 32) echo "<li>Proxy was tested but the IP was different to the one connected at (Including TOR)</li>"; if ($errorCode & 64) echo "<li>IP marked as \"abusive host\". Primary target is web-form spamming (includes dnsbl_remote)</li>"; if ($errorCode & 128) echo "<li>Proxy has a different anonymous-state (web-based proxies, like anonymouse, etc)</li>"; echo "</ul><a href=\"http://dnsbl.tornevall.org/index.php?do=usage\">Please see the DNSBL for more information on the error codes</a>"; echo '<br/>You may solve the following captcha to access the site: <form action="dnsbl.php?captcha" method="POST"> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k='.$publicKey.'"> </script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k='.$publicKey.'" height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript> </form> </body></html>'; die(); } if (isset($_GET['clearSession'])) { session_destroy(); } ?>
If anyone has any issues with this, please let me know. The e-mail code was generated by this (Thanks Juju) The DNSBL is provided by dnsbl.tornevall.org, and is based off of stopforumspam's blocklist. If you want to use the script, just put <?PHP include("dnsbl.php") ?>
at the top of whatever script you wish to protect. Edit: Added recaptcha support to it.
93
« on: March 29, 2012, 07:03:20 pm »
You guys can try http://omnimaga.netham45.org, but you won't be able to log in or post. come to think of it, you won't be able to do much anything, heh.
94
« on: March 27, 2012, 11:17:22 am »
It doesn't work because it's created with an old tool that did not support encryption (unlike Luna).
Edit: he created it manually and his brain could not handle the encryption (at least not yet)
Even if his brain could handle encrypting it TI would just upgrade their code to a version his brain could not handle in the next release.
95
« on: March 27, 2012, 06:50:47 am »
Make sure you're not zoomed in at all.
96
« on: March 25, 2012, 06:28:17 am »
On the other hand, I wonder why http://www.omnimaga.org/OmnomIRC_Full.html needs to be there at all if they show the same thing 
It was there to get past the same origin policy, but OmnomIRC's since been upgraded to not have the issues it was having.
97
« on: March 24, 2012, 07:09:27 pm »
DJ must've forgotten to uncheck the box to notify on move.
98
« on: March 24, 2012, 07:01:20 pm »
http://ourl.ca/10749 < Click here for info on clearing cache.
99
« on: March 22, 2012, 12:39:52 pm »
You should be able to put it all in a folder and mount it in dosbox and use that. Can't guarantee it'll work as I've never used it, but it should.
100
« on: March 22, 2012, 10:40:03 am »
Try refreshing and/or clearing cache.
101
« on: March 21, 2012, 04:52:10 pm »
Xeda, that's a decent idea, but since OmnomIRC and Omnimaga are pretty much two separate systems (OmnomIRC's simply an iframe on Omnimaga and piggybacking off of Omnimaga's login), it'd be a bit difficult to integrate them.
@Geek, I just fixed up a lot of stuff with PMs, though they're still not as well refined as @ channels are.
102
« on: March 18, 2012, 09:24:40 pm »
Hey netham any chance you could add a feature to follow posts and get chrome popups if there is a post in that thread?
or deep thought to his chrome addon?
That'd be a hell of a lot of work to implement (I'd have to have a constant AJAX connection to Omni's DB and check for new posts).
103
« on: March 18, 2012, 02:44:17 pm »
Doesn't Skyrim have like 100 NPCs in one map like most newer RPGs, though? I know some RPGs, even on consoles, tend to lag when visiting the middle of big villages where there's some sort of fountain with a shitload of characters hanging around there, same for huge plains with plenty of enemies.
BF3 has giant 64-player maps that I've been able to play on no problem.
104
« on: March 18, 2012, 02:34:35 pm »
I can't recall, it's been probably 5 years since I played it. I remember it being at least playable and fun, though. A background might get a bit confusing on the screen, heh.
As far as boot's question goes, you should be able to at least get a black and white version done. For linking, I'd say that HOMER's idea was decent.
105
« on: March 18, 2012, 02:29:14 pm »
Such game would be nice. For odd reasons, all SSB projects that got started in the past died, so as a result, there are no existing SSB clone for calcs. There's one Mortal Kombat game from me, but it's single player and uses ASCII graphics in TI-BASIC (not to mention the code was written back in early 2002 so it's very unoptimized).
http://www.ticalc.org/archives/files/fileinfo/244/24406.html This is a pretty decent arcade fighter style game that I remember being fun.
Pages: 1 ... 5 6 [7] 8 9 ... 123
|