| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | What data can I pull from the user? I know of USER_AGENT and IP Address, but I need more than that. What other information can I retrieve from the user?
__________________ I wonder... |
| |
| | #4 (permalink) | ||||
| NamePros Regular Join Date: Jul 2005 Location: Lithuania
Posts: 482
![]() | Just use this command to check what you can get: Code: <? print_r($_SERVER); ?> That's what you will get:
So you can get visitors IP, you can find out can user run flash or not, what is his/her accepted language, encoding and much more (just check variables starting with HTTP_).. and of course some server info as well too
Last edited by NuPagady; 08-22-2005 at 04:02 PM.
| ||||
| |
| | #6 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: Lithuania
Posts: 482
![]() | np when you will find in this list what you need, just use $_SERVER + ['what_you_need'] i.e., $_SERVER['HTTP_ACCEPT_CHARSET'] - that would be for charset $_SERVER['HTTP_USER_AGENT'] - that would be for browser, etc.. don't forget quotes. Good luck |
| |
| | #7 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | remember if the person goes via a proxy some of the information may not be correct. Also not all browsers will give the same information (some can spoof as well)
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #8 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | I know the information can be spoofed. What Im trying to do with all of this information is make a 128-bit secure code that pertains to that user only (like a session_id, just a bit more secure in my opinion) It will rely on user information such as the IP, User Agent, etc. Do you know the function that bypasses the Proxy server's address and gets the users true IP address?
__________________ I wonder... |
| |
| | #9 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | wow thats pretty cool. thanks i can use that
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #10 (permalink) |
| Senior Member Join Date: May 2005 Location: I'm right here
Posts: 3,526
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | NuPagady, very nice function, thanks for this.
__________________ WP Theme Developer Your One-stop for Premium Magazine/CMS WordPress Themes Deluxe Themes |
| |
| | #11 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft | ||||
| |
| | THREAD STARTER #12 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | Thats what I was thinking about also, but I could have the IP change with the user. Either that, or have it rely on the first 3 digits in an IP address (since the first 3 don't change too often with the provider such as AOL) AOL has these sets of IP's basically: ????: NamePros.com http://www.namepros.com/showthread.php?t=117709 <pre> 172.128.0.0/10----172.192.0.0/12----172.208.0.0/14----202.67.66.0/23 172.200.0.0/15----172.202.0.0/15----172.212.0.0/14----172.216.0.0/16 202.67.68.0/22----202.67.72.0/21----202.67.80.0/20----202.67.96.0/19 </pre> I will probably pick one of those solutions, hence the reason I asked for more information in this thread, so I either dont have to base it off of the IP, or use it so as to not create *as much* problems
__________________ I wonder... |
| |
| | #14 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | There's quite a bit you can pull: http://www.secondversion.com/ip/test.php OS, OS Version, OS Vendor etc etc I have the script for that somewhere.. |
| |
| | THREAD STARTER #17 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | It's a bit more complicated than just placing a 128-bit code inside of the cookie ![]() Im doing it for the sole purpose of doing it. Making things more secure should be everyones initiative ![]() I need it to be more secure because of the reason my new application will be protecting very sensitive data in which I do not want just anyone to have access to or easily be able to get through something to see that information :-/ ????: NamePros.com http://www.namepros.com/showthread.php?t=117709 Everything has vulnerabilities, sessions and cookies alike. My little sessions makup here will probably have a few vulnerabilities. I don't want anything going through the URL or anything stored on the clients side, hence the reason for this.
__________________ I wonder... |
| |
| | #18 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 thing you have to be careful about is making it too secure that it becomes awkward to use for the customer. I do agree that security is a main concern but dont go overkill on it. Also I would suggest being reluctant on using cookies, if you rely on them then that alienates a section of your audience, have a contingency plan for people who do not allow cookies.
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #19 (permalink) | ||||
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | I wont be using cookies for this project ![]() I am keeping off of sessions and cookies completely. I will make a seperate version in which cookies are enabled for two reasons (An additional check and remember me) but thats just about it... ????: NamePros.com http://www.namepros.com/showthread.php?t=117709
__________________ I wonder...
Last edited by Outer; 08-23-2005 at 05:03 PM.
| ||||
| |
| | #20 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://flubel.vphost.net/IPDNS/ If you pay me like 5$ I can give you the above script.. I would like to give it to you for free but it is like 800 lines or so.. So well.. iNod
__________________ I feel old. |
| |
| | #22 (permalink) |
| Eating Pie Join Date: Nov 2004 Location: Canada
Posts: 2,272
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | lol.. The script I posted above search your IP in Ip 2 Country DB. Does the http_user_agent and takes that and extracts it based on what that is it displays your complete OS not Windows NT 5.1 it displays Windows XP, Linux Redhat,etc it displays your browser.. Actual name not Mozilla/54432 It is 800+ lines.. iNod
__________________ I feel old. |
| |
| | #23 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 912
![]() ![]() ![]() ![]() ![]() | its hard tracking users with their i.p address's thanks to BIG ISP'S like AOL giving users dynamic, which from that their i.p changes on every visit. you really can't know if the person is the same as who you thought it was, any body has solutions or ideas for this.?
__________________ Live Support : Zubair11 [at] hotmail.com Free SEO Directory! || Free Online TV || Tech Blog Web Design & Web Development Services || Reliable Web Hosting |
| |
| | #24 (permalink) |
| Senior Member Join Date: Mar 2004
Posts: 1,402
![]() ![]() ![]() | Before you start looking at writing a solution like this I think you should go back to basics and read up a bit on various authentication systems and how they work. I think you'll find you are barking up the wrong tree. ????: NamePros.com http://www.namepros.com/showthread.php?t=117709 I have a passive fingerprinting system that keys off the user agent, network, route, etc. It also has an option to see around many proxy servers by using other protocols. In addition have an active fingerprinting system that profiles the users TCP/IP stack as well as any services they are running. This is very effective at detecting the same person logging in as different users. Even if they change their IP, clear their cookies, and restart their browser. But it it far from foolproof, and I wouldn't even dream of relying on it to replace session ids. If you're worried about security try SSL. Then use the session ids/ cookies that are relatively secure within the SSL tunnel. If you want to keep an eye out for users who are cheating then add some fingerprinting and profiling on top of that. Session ids and SSL were designed to do what you want. Don't try to reinvent the wheel, especially if you haven't yet learned to make fire. |
| |
| | #25 (permalink) |
| New Member Join Date: Jun 2005
Posts: 11
![]() | This is really over kill. Either the poster has an inane sense of how to accomplish security or he's programming NSA's website. The best idea is to store the information you know about the user and force them to relogin if that information changes. I doubt anyone will have success brute forcing session id's. You could even modify php's session generator to be a mix of md5 and whatever else they use. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ### No Bandwidth Bills ever again from just £59.99 ### | blackicehosting | Web Hosting Offers | 0 | 07-22-2005 10:16 PM |
| Dedicated Servers from just £45 $90 + [UK] 1 TB Data Transfer P4 3.0GHZ Only £119 | blackicehosting | Web Hosting Offers | 0 | 07-12-2005 07:24 PM |
| Unmetered Summer Savings + 10% Discount | blackicehosting | Web Hosting Offers | 0 | 07-02-2005 12:20 PM |
| New Site New Looks New Unmetered Savings | blackicehosting | Web Hosting Offers | 0 | 05-29-2005 03:58 PM |