Only allow access from Paypal.com

Discussion in 'Apache' started by latoya, Aug 23, 2008.

  1. #1
    I have a page on my site that should only be accessed when Paypal is the referring site.

    What should I put in my .htaccess to make this work?

    I only have this much so far:

     
    latoya, Aug 23, 2008 IP
  2. mivent

    mivent Peon

    Messages:
    37
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Assuming mod_access and mod_setenvif are installed, I think it should be something like this, but I have not tested it:

    SetEnvIfNoCase Referer "^http://www.paypal.com" block
    deny from env=block
     
    mivent, Aug 23, 2008 IP