Guest Posted August 14, 2005 Share Posted August 14, 2005 Hi mates, Is the there away to record and show via webpage someone's logged IP address? I want scare off potential threats attempting to access my files and dirctories in the /public_html/ area. I hope someone here has created a security php script for this purpose. I've looked n the contributes area an didn't see anything. ;) I may have over looked something any help would be greatly appreciated. Many thanks to all in this great forum.. Seth :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 I found this code <?php echo "Your IP: $_SERVER[REMOTE_ADDR]"; ?> Will this show thier IP address? :thumbsup: Link to comment Share on other sites More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 http://www.oscommerce.com/community/contributions,2120 or http://www.oscommerce.com/community/contributions,2138 Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 Thank you Steve that's what I was looking! However, I was looking for a security script to protect my directors. I did a Google search a IP recorder et a down this free program. I will post this information in the hopes it help someone else! You can view an example of this secure IP recorder. Step one Download the PHP script here. http://www.iscripts.com/index.html?action=download&id=2181 Here's a brief description This IP Recorder System from Dynamic-IP.info is the #1 Way to keep your site secure! It logs vistors ip address's, date of access and complies it all into a MySQL database using PHP! This then enables you to login to a password-protected Admin Panel to view logs of your visitors and also lets you Ban IP address's from your website! Much once you have configured and uploaded the script. Just add the PHP code to a custom web page named index.php and add it to the directory of your choice. Here's a working example. http://www.azatiracing.com/html/ Below is the HTML code from that web page. Please note where the PHP code is placed in this page. I hope this helps. Seth :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 Here's the HTML code <?php include("ip_recorder.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <div align="center"><br> <p><font size="7" face="Verdana, Arial, Helvetica, sans-serif"></font></p> <p><font size="7" face="Verdana, Arial, Helvetica, sans-serif"><em><strong>"404 Error Permission Denied"</strong></em></font><img src="http://www.azatiracing.com/html/572.jpg" width="600" height="400"><br> <strong><font face="Verdana, Arial, Helvetica, sans-serif">Your IP Address has been logged!</font></strong></p> <p> <?php echo "Your IP: $_SERVER[REMOTE_ADDR]"; ?> </p> </div> </body> </html> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.