Hey guys. I'm an old member of Habbox forum, so you may not know me but hey. I'm busy making rubbish in PHP, so I thought I may as well post on here. Let you guys have it haha. Anyway, you should see a few more codes soon, One I may make people pay for it. (yes, it will be that good).
Anyway, this was going to be used for one of my websites but the idea fell through simply due to time. All it is really, is a login form with a php script that blocks out people that have a different ip than the one registered. Quite simple in theory, but it reduces hacking I guess. For simple reasons, I have just redirected the people without the right ip to an error page, you may edit this to what you want, or maybe a different website.
Preview of the login page:
If you don't want the fancy login page, here is a preview of the php code (feel free to stick it in your current login pages. However, if you do use the full login system, you may edit the bottom disclaimer, so long as it has my name in there somewhere)
[Download the full script and login page]PHP Code:<?php
$ip = $_SERVER['REMOTE_ADDR']; //This gets the current IP wanting to view the page
$my_ip="127.0.0.1"; //This is where you define your IP
if ($ip != $my_ip) { // This is basically saying "if the IP wanting to view the page isnt the same as mine, redirect to another website
header("Location: http://www.google.com");
}
?>
Thanks,
Craig Embleton.







Reply With Quote


.


.

