Restricting vistors from visiting URL.

Discussion in 'BlackHat Lounge' started by ExtraWinner, Oct 24, 2010.

  1. ExtraWinner

    ExtraWinner BANNED BANNED

    Joined:
    Jun 18, 2010
    Messages:
    2,346
    Likes Received:
    3,463
    Hi guys.

    I am wondering if I can restrict visitors from visiting opt in page?

    I want them to be able to visit this only if this traffic comes from PayPal confirmation page (after paying).

    Is that possible?

    Thanks
     
  2. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,276
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} .*avi$|.*mkv$|.*wmv$|.*zip$|.*html$|[NC]
    RewriteCond %{HTTP_REFERER} !url of paypal redirection page[NC] 
    RewriteRule (.*) /redirectedtopage.html
    Check It Out!

    TESTED AND IT WORKING :)

    ~ExP~
     
    • Thanks Thanks x 1
    Last edited: Oct 24, 2010