PDA

View Full Version : [Free] IP login panel



craigg.
16-08-2007, 08:01 PM
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:
http://img505.imageshack.us/img505/808/websitepanelqj0.jpg

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)

<?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");
}
?>

[Download the full script and login page] (www.craig.recoding.net/stafflogin.zip)


Thanks,
Craig Embleton.

Flisker
16-08-2007, 08:08 PM
Very nice ;)

timROGERS
16-08-2007, 08:08 PM
It's a good idea, but it's impractical because too many people have dynamic IP addresses - although for those with static IPs this is a good idea. A good feature in a system would be the ability for you to be able to enable or disable IP checking, depending on whether the user has a static or dynamic IP.

craigg.
16-08-2007, 08:14 PM
True, but at the end of the day, not many people have dynamic IPs, unless they are running off proxy servers. I can understand where you are coming from. I'm not sure if ranging a network span would work. Ah well, it was just a thought I came up with, it's an excuse to do some PHP and learn once again :).

(Thanks Flisker)

Oni
16-08-2007, 08:26 PM
Yeh and also people may want to log in at school/work/an internet cafe, nice though.

Drompo
16-08-2007, 08:28 PM
True, but at the end of the day, not many people have dynamic IPs, unless they are running off proxy servers. I can understand where you are coming from. I'm not sure if ranging a network span would work. Ah well, it was just a thought I came up with, it's an excuse to do some PHP and learn once again :).

(Thanks Flisker)
Surely anyone using a router box will have a dynamic IP address, Unless they have DHCP enabled
But i ain't up on this stuff so maybe wrong

Dentafrice,
16-08-2007, 08:33 PM
I have a dynamic IP, most in the USA do :\

Others you have to pay for static ips

craigg.
16-08-2007, 08:46 PM
If you have a router, the IP only differs slightly. I'm not sure about USA as I live in the UK. But yes, I guess a few do have dynamic IP's, but the majority do have static. (Well, I am up for offers, I'm not saying that is fact. Just my own opinion.)

Sorry if I have annoyed anyone, in anyway about their dynamic IP's :P.

Puma
16-08-2007, 08:47 PM
nice ;]

Dentafrice,
16-08-2007, 08:50 PM
If you have a router, the IP only differs slightly. I'm not sure about USA as I live in the UK. But yes, I guess a few do have dynamic IP's, but the majority do have static. (Well, I am up for offers, I'm not saying that is fact. Just my own opinion.)

Sorry if I have annoyed anyone, in anyway about their dynamic IP's :P.
no no its nice :) Thanks for supplying it

Luckyrare
16-08-2007, 09:01 PM
The downsites to this script are 2 main ones. 1) Some peoples IPs change every session (dynamic) and 2) Some peoples IPs are the same for 100s or maybe 1000s of people If you where running this localy but other people could access then this script could be handly to make it so only you can login. +rep anyway ;)

craigg.
16-08-2007, 09:08 PM
I guess so, but it's limiting the chances of hacking. Especially if in those thousands is a grandpa sitting there. But yeah, thanks for the comments guys. You might see a couple more free php scripts by me.

Mentor
17-08-2007, 02:47 AM
Ok, im gona go against everyone else here and point out its actualy a very stupid idea.
Whats the point of an online login system?
- You can login from anyware, even when you not at home so u can make updates when u need to.

What happens if you try that with this? your redirected.
What happens if you swicth isp, or like 98% or more of people u have a dynamic ip adress ... you still get redirected.

Which for me would be kinda inconvent when you login, id say its a better idea to just write a decent and secure login system to start with. As long as it doesnt suck, it wont be hacked. As long as your not an idiot useing a simple or easy to guess password, it wont be guessed.

Secondly, you script doesnt have any register or login system in it? you enter an ip and it redirects it if u dont have it when the said script is run. It has nothing to do with the ip you registed on whatever web app. Plus it doesnt even really help with hacking, you can still spoof the cookies/sessions or whatever and bypass the login system all together "/

GhostFace-
17-08-2007, 02:51 AM
i Realy Like it

cept i dont have a site :]

but i wanna make 1 :]

cept i got no money LOL

+Rep

craigg.
17-08-2007, 04:05 PM
In regards to Carl's post, all it is basically, is something I made up. I was bored and I am refreshing my memory of PHP as I might be starting website development again. I know exactly what you mean, but it's really for my benefit. It isn't a full login system as I stated, it's just a login page with a IP redirect script. It's a novelty thing, I doubt anyone would use, which is why it is free. (To overcome different IP's, logon to the host and simply change the PHP, which isn't exactly great but hey.) Anyway, thanks for posting, and I knew the flaws of having the ip redirect, but it's just so I can refresh my memory and expand on PHP.

Rix
18-08-2007, 07:22 AM
I only wanna download it for the login page lol

lolwut
18-08-2007, 09:53 PM
;o!
KEWL!

thanks for the supply,

don't actually get it's purpose.

it's just a simple average login script with a shiny login page that takes you to the wrong page if your IPs not right?

im confused.

RichardKnox
19-08-2007, 11:25 AM
It's not Craig's fault he's crap. :)
I need to talk to you about something so speak to me on MSN child.

AEROX
19-08-2007, 11:56 AM
Hmm why not....

Get rid of the IP part so that you can login from anywhere....
Make it so that it goes through a database and have questions and anwers.

Place of birth:
Mothers name:
City you live:
Fav name:

Each time you go to the page it will pick one from the list above and you answer it. If its wrong you get redirected and if your answer, username and password are all correct you can go into the system. Sorry i can't explain it better.

https://www.halifax-online.co.uk/_mem_bin/formslogin.asp?source=halifaxcoukHOME

Abit like that.

craigg.
19-08-2007, 07:05 PM
Rix - If you do use the log in page, you still have to display my name as I designed it. But thanks for downloading.

Emo Rangers - You're correct, if it's the wrong IP, you get sent away.

Richard - You're so true, I'm crap. And, I have talked to you *gazes , Have you spoke to me already?

Adam:-Adam050 - I never thought of that. I might make a 2.0 with a similar idea. (I might, I might not. If I do I will probably get flamed for copying.) I would change your signature to rider not driver. Self explanitory ;)

Thanks for viewing dudes.

AEROX
19-08-2007, 07:21 PM
Adam:-Adam050 - I never thought of that. I might make a 2.0 with a similar idea. (I might, I might not. If I do I will probably get flamed for copying.) I would change your signature to rider not driver. Self explanitory ;)


Changed to Rider =P

Its hardly copying, loads of sites use it because it increases security and your simple log in has potential!

Recursion
20-08-2007, 03:41 PM
Thanks :) - Im going to use it for a little something of mine :P - Luckily we pay a couple of quid for a Static IP :)

Want to hide these adverts? Register an account for free!