Black Hat Forum
Go Back   Black Hat Forum > Black Hat SEO Forum > Cloaking and Content Generators

Cloaking and Content Generators Discuss Cloaking, Doorway pages and Automatic content generators for search engine optimization

Search
 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2008, 11:52 PM
Jr. VIP
 
Join Date: Feb 2008
Posts: 242
Thanks: 10
Thanked 51 Times in 27 Posts
Activity: 45%
Longevity: 25%
Today: 2/5
Smile Anyone know how to do a CONDITIONAL page load? based on referrer?

I have a blackhatsite (we'll call this BH1) that is PHP redirected to my other site (BH2)... I used a PHP redirect to make sure the referrer is passed...

On BH2 - i have an iframe on it which passes the referrer.. I do not want to remove this iframe so it will definately send the referrer to the networks..

I've been using a conditional http referrer check redirect - Since all my traffic is filter through BH1 and the condition is met that BH1 is the referrer for BH2..then it'll do nothing and stay on the page..which is great and all..

BUT there seems to be a small delay between the BH2 to the whitehat site (WH)... networks will definately see the BH2 for a couple of seconds..which could be bad..

heres the script im using on the BH1 site
Quote:
<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "hxxp://www.BH1.com")
{
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=hxxp://www.WH.com\">"; // THIS CAN BE redirected to the offer as well..
}
?>
Now what i want to know is. uhh is there a way where you can make the actualy page load up only if BH1 is the site referrer? For instance, i don't want that iframe to load until after the referrer check? Such as a body onload or something like that... Any ideas?

Thanks in appreciated

Siekk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-02-2008, 12:01 AM
Newbie
 
Join Date: Dec 2007
Location: At home.
Posts: 23
Thanks: 3
Thanked 4 Times in 1 Post
Activity: 0%
Longevity: 29%
Today: 0/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

There is no delay, that delay is speed of doing if condition and that is really really fast!

Why don't you use header(); instead of http refresh it's faster...

Something like this:
Code:
if(##yourconditionhere){
     //do something
}else{
    header("Location:http://www.WH.com/");
}
I didn't understood well what is that you want to achieve... Please explain...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-02-2008, 12:08 AM
Jr. VIP
 
Join Date: Feb 2008
Posts: 242
Thanks: 10
Thanked 51 Times in 27 Posts
Activity: 45%
Longevity: 25%
Today: 2/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

i want the BH2.php page to show its content if a http referrer == "BH1.php". If not they the page is redirected to the offer. The reason i want this is b/c i want the network to be redirected to the offer when checking my domain b/c they won't pass the http referrer == check and then as a result will be redirected.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-02-2008, 02:29 AM
Jr. VIP
 
Join Date: Feb 2008
Posts: 242
Thanks: 10
Thanked 51 Times in 27 Posts
Activity: 45%
Longevity: 25%
Today: 2/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

Is this even possible? To show the rest of a site after having a certain condition correct? it seems very possible but can't find an answer anywhere.. hmmmmmmm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-08-2008, 12:06 PM
Jr. VIP
 
Join Date: May 2008
Posts: 212
Thanks: 1
Thanked 31 Times in 9 Posts
Activity: 27%
Longevity: 17%
Today: 1/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

I may help u, go to getafreelancer, post a shit project, and when u get the bid, ask the coder as a test this question.



Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-08-2008, 12:31 PM
mattstrike's Avatar
Junior Member
 
Join Date: Sep 2008
Location: USA
Posts: 177
Thanks: 24
Thanked 60 Times in 50 Posts
Activity: 77%
Longevity: 4%
Today: 1/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

The root problem is totally solvable, although you might want to look at it from a different angle.

Let me restate your example, and then I'll put a new twist on it:

You have a page, BH1, which directs traffic to another page, BH2, which does its iframing magic, etc. However, BH2 also gets legit traffic from somewhere else. Currently, when the legit traffic comes in, BH2 then redirects to yet another page, WH1, and does whatever it does, but without the iframing etc.

What I am wondering, is why redirect at all? If the traffic is hitting BH2 anyway, then just put both pages in one PHP doc, and use the referrer to switch which page gets rendered. No redirect, but each traffic set gets its own version of the page. Additionally, to my way of thinking, there is less of a chance of having someone look at the link in your WH traffic, and compare it to the final destination, and ask questions about what is happening in the middle.

If I'm missing something obvious about your method, and why the redirection is essential, let me know. I've been developing sites for a long time, and have done a lot of IM Websites (for others), but have recently decided to see if I can get a seat at the table instead of taking scraps off the floor. Thank goodness I came across BHW, but it still makes me feel like a noob all over again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-08-2008, 03:16 PM
jammie's Avatar
Jr. VIP
 
Join Date: Feb 2008
Posts: 527
Thanks: 41
Thanked 227 Times in 80 Posts
Activity: 86%
Longevity: 24%
Today: 5/5
Default Re: Anyone know how to do a CONDITIONAL page load? based on referrer?

why not flip your if statement? use not equals (!=) instead of equals (==), so that you have:

<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer != "hxxp://www.BH1.com")
{
header (location: http://www.BH2.com);
}
?>

make the code abit neater and more effcient.

the header redirect also keeps referer so if you're faking its better to use that once its faked.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Add Your Link



Site protected by Firewall Script


Sitemap: 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54