Iframes & Cookies...GreyHat-ish ;)

Status
Not open for further replies.

jason407

New member
Jan 3, 2007
141
7
0
Ok, I need a little help with this...
I am trying to setup a page that automatically submits a VOTE to another website anytime someone visits my page.
Here is a breakdown of what I am tryingto do:

Users of SITE A are logged on, and have a cookie that "remembers them"...
They click a link to go to my page, and my page submits a vote to SITE A from them.

I have this working, however I want to HIDE IT, so i tried to put it into a hidden IFRAME, but then the "remember me" cookie is not working due to IE blocking it. So, my iframe just gets the "you need to be logged in to vote" message instead of logging a vote for that user.

Any ideas of a workaround? If I do it out of the iframe it works, but then the user gets the "Thanks for voting" page and they will know what I have done.

Sorry if it is an easy answer...I am just a worselss asshat...but I am learning. ;)
 


Jason, this will be extremely tough via iframe because you'd need to cooperation of the voting website.

The voting website will need what is called a P3P policy in place that ensures IE that the third party cookie is safe. This P3P policy would need to be in place on the voting website, in this case.

This is something most advertising networks already have in place for their cookie-tracking banners (like doubleclick).

In your case, the voting website won't agree to this, for obvious reasons. You'll need to look into a on mouseover javascript that pops the voting screen as if they clicked the link. I'm sure others will have alternatives to the iframe. I just know the iframe issue all too well :)

BTW, if this is for a topsites voting, they suck and only benefit the topsite owners. Become less of an asshat and don't put that shit on your site. Google doesn't these all that much.
 
Thanks Scott...and NO, this is not for a topsite.

Currently, I have my script loading the Iframe only IF the referrer is from SITE A, and ONLY if the browser is NOT IE. Seems to be working, but I don't get as many votes as i would if I could target IE users as well. Just means I need to get more clicks until I figure out a better solution. ;)
 
Yep, that's why I still use iframes on my sites. Other non-IE browsers support them fully for 3rd party cookies. If I could just get everyone in the world to switch to Firefox ASAP.
 
isnt iframe deprecated, i read it somewhere, also, crawlers & trackers have a tough time with iframe.

Waiting to be corrected?

Iframes do kinda suck, but they still have their uses. I don't care about crawlers and trackers for this use...I am actually using the iframe to hide my shady actions. ;)
 
You'll need to look into a on mouseover javascript that pops the voting screen as if they clicked the link. I'm sure others will have alternatives to the iframe.
Would it be possible to do this with javascript and keep the "thanks for voting" page hidden?
I know I could probably do it if the form method was GET, but not sure how I would do it with a POST form.

I am an idiot when it comes to javascript.
 
Last edited:
Status
Not open for further replies.