1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php script idea

Discussion in 'BlackHat Lounge' started by tas26, Jan 18, 2013.

  1. tas26

    tas26 Power Member

    Joined:
    Apr 21, 2009
    Messages:
    548
    Likes Received:
    274
    Occupation:
    student
    Location:
    BHW
    hey guys,

    is there a way with php or may be using htaccess to do the following.

    redirect the user coming from certain referral say like google.com and does not have a certain IP range - to a new URL.
    and if the any of the above 2 checks fail then the user should go to the original page he was going for.
     
  2. HealeyV3

    HealeyV3 Power Member

    Joined:
    Mar 4, 2009
    Messages:
    521
    Likes Received:
    344
    100% Possible, but if you don't know PHP, you'll need someone to do it for you.

    If you feel like giving it a try on your own, look into server variables here:
    http://ro.php.net/manual/en/reserved.variables.server.php

    Specifically, you'll need to use REMOTE_ADDR and HTTP_REFERER.

    If you want to hire someone to do it for you, contact me on Skype: HealeyV3 , I'm a PHP programmer.