Jul 20, 2008

Php Spy Code - Spy on your site!

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2, 3

free web hosting

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

 

 

 


Reply

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

Reply

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

Reply

moravce
yes it's great tutorial
thanks!

Reply

rogeruk
Thanks, quite a good idea.

Nice tut

Reply

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?

Reply

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

Reply

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

Reply

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.

Reply

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...)

Reply

Latest Entries

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

yes it's great tutorial
thanks! buddy


Reply

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?

Reply

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

Reply

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

Reply

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!

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Recent Queries:-
  1. spy code 2 - 36.81 hr back. (1)
Similar Topics

Keywords : php, spy, code, spy, site

  1. Add Flashing Inbox To Invisionfree Forum
    Html code for invsiionfree!! (0)
  2. How To Make An Ultimate Game List.
    If you're making a site on video games or such. (0)
    Hello. I am BuBBaG. You can call me Bubba for short. I'm going to show you how to make an
    Ultimate Game List. First off, we need to make a database, we are going to call this database
    `my_db`, leave out the `'s. Inside that database we will need to create a table
    called `ugl'(Ultimate Game List, duh). To make the table, simply enter this in the Syntax.
    CODE CREATE TABLE ugl ( System char(50), Game char(50), ) In the
    above code, it is stating we are creating a table called ugl, with two columns, System, and Gam....
  3. Simple Stylesheet Tutorial
    Stylesheet embedded in your site. (2)
    Hi - ill show you how to make a simple style sheet that will be embedded into your site. OK make
    sure your site is set up already (like the standard tags) To start and end off a stylesheet you
    need to do the following CODE <style type="text/css"> </stlye> Ok
    lets start CODE <style type="text/css"> p { font-family: "Tahoma";
    font-size: 9; color: "red"; } </style> So when you come to put in
    CODE <p>Hi!</p> The text will appear red and will be in Tahom....
  4. [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....
  5. How To Set Up A Bookmarking System On Wii
    Use your favorite social bookmarking site. (0)
    This is a simple tutorial on a way to set up a bookmarking system on your Wii with greater stroage
    than the Favorites. It is more complicated than the Favorites and requires manual URL typing. Well
    let's dive on in. Items Required Nintendo Wii Internet Channel 3 Empty Favorites Internet
    Connection An account on a social bookmarking site I will be using delicious as an example.
    delicious Ok, if you do not have an account, read on. If you do have an account, go to the
    {account} section. Ok, first you need to register an account. This can be done by clicki....
  6. Create A Google Seach Result Page Embed Within Your Site Page.
    (12)
    Create a google seach result page embed within your site page. It is easier to create
    web page that embeded the google search result in it. The first step is to go to google apply an
    account for the google ad-sense. After that login to you account and choose the create ad-seach
    option. Most of time the google search box give all we have the great and powerfull seach ability.
    But, have you think every time users get seach with it. They do redirected to another page that is
    not within you site. It is easier to create web page that embeded the google sea....
  7. Php Word Filter
    Have you accidently sworn on your site? Or do you want to keep visitor (7)
    This is pretty simple but very useful if you don't want people to swear. We will be using
    str_replace for this. CODE <?php str_replace ("curseword,
    "replacemet"); ?> Thats pretty simple, just fill in the curse word and the
    replacement, and then repeat... heres what it would look like full size: CODE <?php
    str_replace("swear", "replacement"); str_replace("swear",
    "replacement"); str_replace("swear", "replacement");
    str_replace("swear", "....
  8. 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....
  9. Faux Ajax Loading - Css Only
    Pretend your site is Ajax based (3)
    Link: http://www.jlhaslip.trap17.com/samples/misc/ajax/index.html Check that out. The first page
    has information and the second and has the actual example of its use with sample CSS code. I find
    that when you visit a site which has a slow server and attempt to view 'large' Image files,
    it is pretty boring to sit and stare at a blank screen, so this little snippet of code can be used
    to give the visitor something to see to indicate that the image is being downloaded. I built a
    small animated gif that sits in the background of the space allocated for the image....
  10. 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 requir....
  11. Making The Popular Id Browsing For Your Site.
    (17)
    Was just sitting and being bored but then I realized I could show how to create more or less popular
    ?id=page browsing. It's actually really easy. I know two ways how to do it. First one I learned
    was checking the variable and if it's true including the text/file/anything needed and so on. It
    was ok, but sometimes I just couldn't make it work so I switched to switch() function and
    that's what I'm going to show you guys right now. So, I made a test page which contains the
    code needed and here is its source. CODE <!DOCTYPE HTML PUBLIC ....
  12. Cpanel Useful Site Management Tools 2.1
    Part 3 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 2: Useful Site
    Management Tools Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2.1:
    Useful Site Management Tools In this tutorial I will, in detail explain all of th....
  13. Cpanel Useful Site Management Tools
    Part 2 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 1: E-mail Management Part 3: Useful Site
    Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6: PreInstalled
    Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial Part 2:
    Useful Site Management Tools In this tutorial I will, in detail explain all of t....
  14. Your First Autoit
    Learning To Code.. (2)
    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....
  15. Templating System Using Php Includes
    Building a Dynamic site using Includes and flat-files. (13)
    Php based Templating System http://jlhaslip.trap17.com/template/index.php The Source Code
    for the scripts are included (literally) on the different pages on the Demo, including the Contact /
    Email script. The only page not there yet is the Message Script. Maybe tonight I will upload that.
    This one uses a little bit of query-string checking to confirm that the contents of the page are
    actually available (file_exists())and an allowed page content before serving it up. The
    'allowed page content' is done by checking against a flat-file containing an array....
  16. Php Menu Bulding Script And Site Template
    available for download (0)
    A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
    a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
    Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
    in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
    look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
    web-site template which used php includes and embedded data to create a &....
  17. How To: Make A Simple Php Site
    Making one file show up on all pages using php (21)
    I have looked all over the site and could not find anything that was like this simple, or just like
    this at all.. For some people i know that you are using a basic HTML site...and having a big menu
    if you want to add somthing you have to go into every one of the pages and add or remove or edit
    what you want to do, but with somthing verry simple all you would have to do is edit one file, and
    all of the pages that have the PHP script on them would suddenly change to what that one file is.
    So to start off if you are planning on using this little tirck, the page that you a....
  18. 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....
  19. 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 ....
  20. Not To Be Banned By Google
    Take care that your site is not banned (2)
    /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> Strategic search engine
    optimization involves far more than keyword research, META tags and content. If you want to mange an
    SEO program, you need to be aware of any issue that can affect your success. Domain name management
    is one of the big factors. Effective domain name management is critical because you could end up
    getting banned from Google and other search engines if you take the wrong approach. Why would
    Google ban you? In the spirit of fair play and providing depth in its results, Google ....
  21. Phpbb Forum Site Transfer
    How to do it, step by step instructions (20)
    I'm sure many of you out there have used phpBB at some point. To those who enjoy running forums
    and online communities, specifically supporting phpBB, I am about to tell everyone how to restore
    the forums database from one website, to another. This is presuming you do not have any mods or
    hacks installed. Some of you may find this information useful. Here is the scenario: Let's say
    you have forums running phpBB version 2.0.17 (currently the latest one). You have decided that you
    want to move your forums to a whole new URL and provider, and as an added bonus, ch....
  22. Css And Javascript Combined For Dynamic Layout
    use of different CSS files at same site (9)
    This tutorial is meant for people that are dealing with problems while coding their site at 100% of
    width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
    file (take this in account when creating your website). How this script works. In the HEAD of your
    HTML document will apply this command, so variable.js file will be load at start: CODE
    <script type="text/javascript" src="variable.js"></script> In
    browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
  23. How To Make A Very Simple Wap Site
    A quick tutorial about WML language (40)
    WAP Site Tutorial : How to Make A Wap site? Before We begin.. Defination from the
    Web about Wap. QUOTE WAP is an open international standard for applications that use
    wireless communication . Its principal application is to enable access to the Internet from a
    mobile phone or PDA .A WAP browser provides all of the basic services of a computer based web
    browser but simplified to operate within the restrictions of a mobile phone. WAP is now the
    protocol used for the majority of the world's mobile internet sites, known as WAP sites ....
  24. A Php Loginscript For Your Site
    For everybody (19)
    Many people want to make logins to their site. The easiest way to do this is using PHP. I will
    describe here all steps creating one. You can copy and paste the code and save it as the name of the
    file given above the code. Save everything in the same directory. NOTE: However the code can be
    copied its still no basic php anymore. If you have questions you can ask them but a little knowledge
    of php is useful. First of all we need to make a login form. This can be an htmlpage. We are
    going to ask the user for his username and his password. File is named: "login.html....
  25. Checking The Web Site Speed
    (10)
    Did you taking too much time to access your favorite sites? Probably the problem is on the server
    used by those sites. To make sure that is the problem, use Windows PING facility. Ping is a small
    program, which sends a 32-bit signal to the Web site server. Next, Ping record the time needed by
    the server to answer it. To activate Ping: Click on the Start-Run menus, type command, and then
    click OK. Type PING "site name" in the MS-DOS prompt window, for example PING www.yahoo.com. In a
    moment, the result will appear on the screen. A result less than 300ms is normal spee....
  26. How To Put A Phpbb Login Box On Your Main Site.
    Code and .php included!!! (18)
    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 // <form
    action="/phpBB2/login.php" method="post" target="_top"> <table
    width="25%" cellspacing="2" cellpadding="2" border="0"
    align="center">  <tr> <td align="left"
    class="nav"><a href="/phpBB2/index.php" class="nav">Prank Place
    Forum Index</a></td>....
  27. Who's Viewing My Site?
    Targeted for AIM users (11)
    As some of you may know, I asked a question on how to get a portion of the URL in the address bar
    and save it, and thanks to several sources*, I have successfully learned how to do that. Today, I
    will share with you, step-by-step, my knowledge. The object of this tutorial is to mimic a
    feature on many subprofiles where you're able to see the AIM screennames of people who viewed
    your site. Note : The URL that I will be using extensively throughout this tutorial is
    http://yoursite.trap17.com . This is not a special URL reserved on trap17 but is merely a represe....
  28. HTML tags and examples
    Condensed form of course from my site... (37)
    Well, I decided to try and help out some of the users here who might be unexperienced in HTML, so I
    condensed the begginer's HTML course at my website. Here it is... Lesson 1 HTML means Hyper
    Text Markup Language. HTML is a very common language used for many websites, is the base for more
    complicated and powerful langauges like php, HTML can seem hard, but you will find it is one of the
    easiest langauges one can learn. The core of HTML is the tag, a tage is just a set of two
    arrows-like brackets created by hitting Shift and the comma key, or Shift and the period....
  29. Php Quiz Script
    Make quizzes for your site. (20)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE <?php $qid = "Quiz ID-00"; ?>
    <html> <head> <title><? echo "Gamers Pub $qid";
    ?></title> </head> <body> <p><h3><? echo "....
  30. Php Emailer/contact System
    An email or contact system for your site (20)
    Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
    to email you just by filling out a form. So here is what you need to do to set it up. First open up
    a new page in your text editor and paste in the following code. CODE <?php $Name =
    $_POST['Name']; $Subject = $_POST['Subject'];
    $Email = $_POST['Email']; $Site =
    $_POST['Site']; $Message=$_POST['Message'];
    $align = $_POST[&#....

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

Searching Video's for php, spy, code, spy, site
Similar
Add Flashing
Inbox To
Invisionfree
Forum - Html
code for
invsiionfree
!!
How To Make
An Ultimate
Game List. -
If
you're
making a
site on
video games
or such.
Simple
Stylesheet
Tutorial -
Stylesheet
embedded in
your site.
[php] Clean
Code
Functions -
Clean up
your html
output from
php scripts
How To Set
Up A
Bookmarking
System On
Wii - Use
your
favorite
social
bookmarking
site.
Create A
Google Seach
Result Page
Embed Within
Your Site
Page.
Php Word
Filter -
Have you
accidently
sworn on
your site?
Or do you
want to keep
visitor
Nice Clean
Php Layout
Coding. -
Learn a nice
neat way to
code your
layouts with
php
Faux Ajax
Loading -
Css Only -
Pretend your
site is Ajax
based
Do You Want
To Use Php
Code In Your
Html Pages?
- Within two
minutes you
will!
Making The
Popular Id
Browsing For
Your Site.
Cpanel
Useful Site
Management
Tools 2.1 -
Part 3 of My
7 Part
Tutorial
Cpanel
Useful Site
Management
Tools - Part
2 of My 7
Part
Tutorial
Your First
Autoit -
Learning To
Code..
Templating
System Using
Php Includes
- Building a
Dynamic site
using
Includes and
flat-files.
Php Menu
Bulding
Script And
Site
Template -
available
for download
How To: Make
A Simple Php
Site -
Making one
file show up
on all pages
using php
Css Based
Photo
Gallery Code
- Fluid
design for
layout
Handy
Javascript
Code Snips -
Ready to
Apply in
your webpage
Not To Be
Banned By
Google -
Take care
that your
site is not
banned
Phpbb Forum
Site
Transfer -
How to do
it, step by
step
instructions
Css And
Javascript
Combined For
Dynamic
Layout - use
of different
CSS files at
same site
How To Make
A Very
Simple Wap
Site - A
quick
tutorial
about WML
language
A Php
Loginscript
For Your
Site - For
everybody
Checking The
Web Site
Speed
How To Put A
Phpbb Login
Box On Your
Main Site. -
Code and
.php
included!
;!!
Who's
Viewing My
Site? -
Targeted for
AIM users
HTML tags
and examples
- Condensed
form of
course from
my site...
Php Quiz
Script -
Make quizzes
for your
site.
Php
Emailer/cont
act System -
An email or
contact
system for
your site
advertisement



Php Spy Code - Spy on your site!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE