18.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

08-13-2011, 06:59 PM
Post: #1
Methods used for cookie stuffing
Knightos;6351 Wrote:The most commonly used used methods are:

1. Using Javascript
2. Using iFrames
3. PHP Header redirect
4. .htaccess and redirect pages
5. With HTML Object
6. Exploiting Browser?s security flaws

Cookie Stuffing with Javascript

There are tons of methods that can be used for cookie stuffing with Javascript. You can cloak the affiliate link and open it on your page, or open a popup in a new window and redirect user to your affiliate link, there are tons of scripts to open a popup from your page, however its less effective since people have installed popup blockers, here is the code to open popup

<script language=?javascript?>
window.open(?YOUR Affiliate Link?,?myWindow?,'width=300, height=300, toolbar=NO, resizable=YES?);
</script>

Its a good idea to drop your own cookie at the same time to see if that user has already been stuffed, if so, then do not open any more popups.

<script>
<!? Begin
//Pop-under window - javascriptkit.com
var popunderSpaFinder=?http://click.linksynergy.com/fs-bin/clic...304&type=3 &subid=0″
var winfeatures=?width=780,height=580,scrollbars=1,res izable=1,toolbar=1,location=1,menubar=1,status=1,d irectories=0″

var once_per_session=1

function get_cookie(Name) {
var search = Name + ?=?
var returnvalue = ??;
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(?;?, offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}

function loadornot(){
if (get_cookie(?popunderSpaFinder?)==?){
loadpopunderSpaFinder()
document.cookie=?popunderSpaFinder=yes?
}
}

function loadpopunderSpaFinder(){
win2=window.open(popunderSpaFinder,?",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunderSpaFinder()
else
loadornot()
// End ?>
</script>

Javascript Link Cloaking

This means obfuscating your affiliate link with some javascript, for example if your affiliate link is something like http://youraffiliate.com/id.php?id=1then after obfuscation it will look like ?23X34Fx33?65″ (this is just assumption of the code, you may search many javascript obfuscation / link cloaking scripts online, this is also good enough because you can change the statusbar which hides your affiliate link.

Javascript Meta Refresh

One of the good method that also hides HTTP_REFERER is meta refresh method in which you make a separate page that redirects that page to affiliate page while keeping the referrer as ?blank? so you can hide your source of traffic, here it is

<META HTTP-EQUIV=?REFRESH? CONTENT=?1;URL=http://AffiliateLink.com?>

Another way for stuffing cookies can be using the Javascript Blur Method.

Using iFrames

IFrame is quite an old method but it still works, but keep in mind it is one of the methods that have maximum ban rate and easily detectable. But the good thing is that you can get the referrer you want, I mean if you are showing affiliate manager that you traffic is coming from http://abc.com but you are sending them traffic from http://xyz.comthen it will display affiliate manager that all traffic is coming from abc.com by using an iFrame on xyz.com in which you open a php file e.g. http://www.abc.com/aff.phpthis aff.php file is automatically redirected to the affiliate link. But some people say that what if the affiliate manager directly checks aff.php, it will be redirected to affiliate link so you will get banned certainly, but there is one solution to this as well, you can do this by checking the referrer of the opener (the file that is opening the iFrame, if the referrer is not that domain, then simply show something else on that page otherwise redirect the page to affiliate link. Below is the iFrame code

<iframe src =?http://yourAffiliateLink.com? width=1 height=1></iframe>

PHP Methods

Use header redirect to redirect the page

header(?Location: http://youraffiliatelink.com?);

The problem with this and many other functions is that it works very well, but using the image tag method, it does not change the referrer so it is still not a fool proof method.

While stuffing images with image tag, its always good idea to stuff an with image that doesn?t exist and then redirect that to a php file that has the code to redirect to affiliate link. For example you link to an image like http://www.yoursite.com/image.jpgand that image doesn?t exist, but you post this link everywhere, then you have something like this in your .htaccess file

Redirect /image.jpg http://www.yoursite.com/affiliate_redirect.php

While stuffing in your own site, you can hide the image with setting image withing a hidden layer, e.g. <div id=?ryan? style=?display:none;?> put your image here </div>.

I will not discuss the other methods that I have mentioned here because of some limitations. So you can aways google and find our answers. I will post another article to avoid a few things to be on the safe side.
10-26-2011, 07:49 PM
Post: #2
RE: Methods used for cookie stuffing
Thank you for this
10-26-2011, 09:28 PM
Post: #3
RE: Methods used for cookie stuffing
Thanks for the good info
10-27-2011, 09:02 AM
Post: #4
RE: Methods used for cookie stuffing
Thank you for this
10-27-2011, 10:38 AM
Post: #5
RE: Methods used for cookie stuffing
Thanks 4 the info.. I'm kind of new to cookie stuffing but I find Your info kind of interesting... Would like 2 C more of this if possible!
63.gif
10-28-2011, 05:17 AM
Post: #6
RE: Methods used for cookie stuffing
Just having a look, could be some good info here.
10-29-2011, 11:54 AM
Post: #7
RE: Methods used for cookie stuffing
thank you for the post, very useful
11-03-2011, 03:38 AM
Post: #8
RE: Methods used for cookie stuffing
thank's bro for ut info
11-04-2011, 10:38 PM
Post: #9
RE: Methods used for cookie stuffing
Holy shit dude. This made my day.
11-13-2011, 07:55 AM
Post: #10
RE: Methods used for cookie stuffing
lot of good stuff here
55.gif




31.gif