URL "Detection" Script?

HiGhPeR

Designer
Oct 15, 2009
2,447
21
0
h6.cr
www.hyper6.com
I am doing ppv, and I want the popup to say "Attention Sitename.com Visitor" where sitename.com is the website name the popup is coming up on..

Any ideas? been looking for hours and im starting to lose my mind..

Tits for thanks!

045.jpg
 


I think that would only show the domain the popup page is loading from. I think the OP is asking how to find out which site it is popping up over.
 
if you use P202 and Pass the URL as a Keyword, this code does the trick to get the root.

Code:
        if($keyword)
            {
                
                preg_match("/^(http:\/\/)?([^\/]+)/i", $keyword, $domain_only); 
                $host = $domain_only[2]; 
      
                $url = ucfirst($host);
            echo "<h1 align=\"center\">Wait! <em>Limtied Time Offer</em> for <br />$url Readers!<h1>";
        }



If you're not passing get the referrer other ways: Using the HTTP_REFERER variable with PHP
 
  • Like
Reactions: HiGhPeR
It works.. perfect ty

if you use P202 and Pass the URL as a Keyword, this code does the trick to get the root.

Code:
        if($keyword)
            {
                
                preg_match("/^(http:\/\/)?([^\/]+)/i", $keyword, $domain_only); 
                $host = $domain_only[2]; 
      
                $url = ucfirst($host);
            echo "<h1 align=\"center\">Wait! <em>Limtied Time Offer</em> for <br />$url Readers!<h1>";
        }
If you're not passing get the referrer other ways: Using the HTTP_REFERER variable with PHP