Nov 8, 2009
Pages: 1, 2, 3

Php Spy Code - Spy on your site!

free web hosting

Read Latest Entries..: (Post #21) by Sharif Khan on Jun 8 2006, 09:04 AM.
QUOTE(moravce @ Feb 26 2006, 06:56 PM) yes it's great tutorialthanks! buddy
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

Php Spy Code - Spy on your site!

tapan
Code Spy Code
Description Anyone who comes to ur forum's IP Adress, Site they came From, Their Browser and the time they came will get saved in a place that only the admin knows the location of...
V.2 More features coming up in V.2!!! POst suggestions/problems...
Preview:-
http://s15.invisionfree.com/Spy/index.php?
REFRESH THE PAGE, AND GO HERE:-
http://h1.ripway.com/programming/spy%20code/spy.html
^^^^^^^That shows all the IP's, Browsers, Time, site and stuff....^^^^^^^^

Code
First of all, you'll need to host the files....
I suggest you make an account in http://ripway.com or other host that allows php.....

Now make a new text file in ripway.
Name it spy.php and put this in it:-

QUOTE

<html>
<head>
<title>Spy on yor site code by tapan21 of http://rpg.t28.net/ </title>
</head>
<table border="5" bg color="white">
<tr>
<td><center>
<body>
<?php

//--------------------------------
// Spy on your website! Logs in time, ip, the site you came from and browser!
// Created by: Tapan21 of http://rpg.t28.net
//--------------------------------

$spy = fopen("spy.html" , "a");
$site = $HTTP_REFERER;
$ip = $REMOTE_ADDR;
$browser = $HTTP_USER_AGENT;
$time = date("H:i dS F");

echo "The site you came from: " . $_SERVER["HTTP_REFERER"] . "<br />";
echo "ALL IP ADRESSES, TIME, SITE AND YOUR BROWSERS ARE BEING CAPTURED!";

fwrite($spy,"<<<<<------------BEGIN------------>>>>><br />");
fwrite($spy,"Site you came from: $site <br />");
fwrite($spy,"IP Address: $ip <br />");
fwrite($spy,"Browser: $browser <br />");
fwrite($spy,"Time: $time <br />");
fwrite($spy,"<<<<<------------END------------>>>>><br />");

fclose($spy);
?>

</table>
</center></td>
</tr>
</table border>
</body>
</html>


Save it...

Now make a new text file and name it spy.html
Add this in it:-

QUOTE

<html>
<head>
<title>Spy on your site! Code by Tapan21 of http://rpg.t28.net
<head>
<body>


Save it...

Now go to ur site/forum and put this code in the "<body>"tags...

QUOTE

<script src='LINK TO SPY.PHP FILE!'></script>


And you're done!!!
happy.gif

How it works Every time some one goes to your site/forum index page (i think) their info will be saved in your spy.htmlfile! Dont ever forget the url to the spy.html file!

Code From:Arcade Highscore

So all you have to do is go to the spy.html file to see all the info.....
You can even edit the spy.html file if its over full!
It''s very easy to use!

PLease post any questions, complaints or suggestions for my next version!

Enjoy!!
cool.gif

 

 

 


Comment/Reply (w/o sign-up)

smartbei
Thanks! I have been wanting to add one of these to my (new) site and haven't been able to find how.

Comment/Reply (w/o sign-up)

apollo
Thanks a lot. Hard, but good tutorial...

Comment/Reply (w/o sign-up)

moravce
yes it's great tutorial
thanks!

Comment/Reply (w/o sign-up)

rogeruk
Thanks, quite a good idea.

Nice tut

Comment/Reply (w/o sign-up)

MaineFishing45
Great idea man... acts like a security protection. But is there a downside on hosting it on your own website, and password protecting the area?

Comment/Reply (w/o sign-up)

tapan
Nope There's no downside.
Also, V.2 is done and released!
I dont have time to post it here, but I'll do so when I have time.
If you want it anyways, then you can get it from my forums...
Glad everyone likes this code.
It was specifically made for Invision Boards.
rolleyes.gif

Comment/Reply (w/o sign-up)

savge17
Great idea man, it looks like this would pwn for the more active forum boards like trap17 itself. But they probably are using somehting like this already, but great for the community. thumbs up x2! smile.gif

Comment/Reply (w/o sign-up)

Hamtaro
That's not too bad, but one drawback: If you get many of the same visitors (especially if they're on DSL or some other some other always-on connection), then your file will be cluttered constantly with their information (which would either be exactly the same, or very similar), and it would be hard to find new ones. If possible, it would be easier if you could use MySQL with that to check for whether that particular IP has been logged. If you want it that way, then ignore this.

Comment/Reply (w/o sign-up)

tapan
There is a way to make it so that it only logs in one file per IP...
I just dont know how.

Any anyways, I wont be coding until I'm fully back on track with my new Site+Forum
(lost my old one...)

Comment/Reply (w/o sign-up)

Latest Entries

Sharif Khan
QUOTE(moravce @ Feb 26 2006, 06:56 PM) *

yes it's great tutorial
thanks! buddy


Comment/Reply (w/o sign-up)

wild20
I tried it, but it doesn't work on mine. I put in the Scirpt file

CODE

<script src='spy.php'></script>


And then visited my webpage, and then even tried to refresh the page, visit other pages, atc, but it didn't work. What is up with that?

Comment/Reply (w/o sign-up)

wild20
Perfect. I will be adding this to my site. Thanks Jim! I just wanted to make sure. Can you imagine making it so that you couldn't ohmy.gif You would use up all your space wink.gif

Comment/Reply (w/o sign-up)

jlhaslip
Yes, most FTP programs or your File Manager in Cpanel can delete the file.

Comment/Reply (w/o sign-up)

wild20
Yeah I want to use this, but just one question. Can you delete the stored files on the spy.html? It might fill up pretty fast. If you could answer this question, that would be great. Thanks!

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3
Similar Topics

Keywords : php, spy, code, spy, site

  1. Create Dynamic Html/php Pages Using Simple Vb.net Code
    Taking your application data, and creating a webpage for others to vie (1)
  2. Add Flashing Inbox To Invisionfree Forum
    Html code for invsiionfree!! (2)
    Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
    ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
    many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
    Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
    messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
    flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
  3. [php] Clean Code Functions
    Clean up your html output from php scripts (5)
    There is another Topic about writing 'clean' HTML code posted elsewhere on the Forum.
    I'll edit this Topic and add the link so you can review it on your own, and there is no need for
    me to comment on it in this thread, but the purpose of this Topic is to introduce a pair of
    functions which can be used for making sure that the HTML output from my scripts is readable when a
    view-source is reviewed. Two handy functions are included here. They work together quite nicely,
    and I will start this Tutorial with a short summary of the reasons for their 'being....
  4. Nice Clean Php Layout Coding.
    Learn a nice neat way to code your layouts with php (7)
    There are basically two main ways to code your php. Method 1) Creating a php document with an html
    look. The you throw in include tags all over the place. Its unorganized, and you have lots of stray
    files hidden in folders and scattered in your base directory. Its difficult to organize, and you
    make mistakes easily. Example: This document would be called index.php Whatever
    Banner or something Some content here. Mostly along the lines of You might ask what
    the problem was? Well, those include tags tend to multiply, and so do all those unne....
  5. Do You Want To Use Php Code In Your Html Pages?
    Within two minutes you will! (9)
    Whilst searching around for help to setup cutenews blog I came across a way to use php in html pages
    - lo and behold it works! so I thought I'd share it with you all (Unfortunately I can't
    remember the site so I wrote this up a couple of minutes after I did it:) ). This method requires a
    web server with apache installed. So, luckily for us all this covers the whole of Trap17... even
    Qupis /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Just
    to make the point, this is in no way a difficult task and it doesn't require yo....
  6. Your First Autoit
    Learning To Code.. (7)
    Autoit is a simple, yet powerful programming language, it allowed the creation of the pangea
    desktops, and the Remote Pc Control with a cell.. You can learn it too. Here is the first of several
    lessons i will post inside of this topic. It is a 32 bit program, it doesnt work on windows 98, 95,
    and i dont think (THINK) Windows ME Step 1: Download and install the latest version of autoit from
    http://www.autoitscript.com i prefer that you use beta. Step 2: Right click somewhere on your
    desktop or my documents, and mouseover new and click Autoit V3 Script Step 3 (optiona....
  7. Css Based Photo Gallery Code
    Fluid design for layout (3)
    Fluid Design Photo Gallery There are quite a few Topics here on the Trap17 Forum about how to
    set-up and use Photo Galleries and about the link code for getting from a Thumbnail Image to a full
    size Image and all that stuff, so I would like to take this "Photo Gallery" concept one step further
    without covering what others have already supplied instruction for. Usually, when there is a
    solution posted here for the code on "how-to-do-this", there are tables involved and the Links are
    placed inside Table cells. Tables are not neccesarilly a bad thing, but they were n....
  8. Handy Javascript Code Snips
    Ready to Apply in your webpage (5)
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> Some common things to
    implement in our webpage very frequently are as follows. How to implement all these I am going to
    tell you in this tutorial. Add To Favorite Set As Homepage Go To Top Of Page No Right Click
    Print Page Adding Current Date Adding Current Time Pop-Up Page Creation Closing Window
    Copyright Notice Updation 01. Add To Favorite Someone may be interested in the content of your
    page. Offer him/her to add the page in his/her favorite menu. To do this you have ....
  9. 'make' A Virus To Test Your Norton Antivirus
    Not a harmful code (0)
    This code is to simply check if your Norton Antivirus is working probably. Not sure if it will work
    on other AVs. The following code is provided by EICAR. QUOTE
    X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!SH+H* Copy the content from the
    code into Notepad and save it as 'eicar.com' If your Norton AV is working probably a pop up
    of a Virus Alert should pop up and removed the virus immidiately. ....
  10. How To Put A Phpbb Login Box On Your Main Site.
    Code and .php included!!! (19)
    I have included my coded file with this... Ok here is the code. CODE // //Create login area,
    replace the phpBB2 in /phpBB2/login.php with your forum's //directory //   Prank Place
    Forum Index     Please enter your username and password to log in.        
                  Username:                   Password:      
                Log me on automatically each visit:                    
    I forgot my password         You can test this out on my....

    1. Looking for php, spy, code, spy, site

Searching Video's for php, spy, code, spy, site
See Also,
advertisement


Php Spy Code - Spy on your site!

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com