PHP curl to login to vbulletin not working...

Discussion in 'PHP' started by nastynappy, Aug 11, 2008.

Thread Status:
Not open for further replies.
  1. #1
    It gives this error:

    In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.

    is there anyway I can do this??? even without curl?
    I am doing this for a project.. help me out please.

    Thanks in advance,
    Nasty Nappy
     
    nastynappy, Aug 11, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    curl_setopt($ch, CURLOPT_REFERER, 'http://www.example.com');
    
    PHP:
     
    nico_swd, Aug 11, 2008 IP
    nastynappy likes this.
  3. nastynappy

    nastynappy Banned

    Messages:
    499
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Woah... cool.. you rock buddy. :)
    Thanks for help :)
    +rep for you.
     
    nastynappy, Aug 16, 2008 IP
  4. sh4re.com

    sh4re.com Peon

    Messages:
    143
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It means that through the cpanel you have to set the domain in your whitelist...that's the list of secure/trusted domains. See on Vbulletin Options.
     
    sh4re.com, Aug 16, 2008 IP
  5. nastynappy

    nastynappy Banned

    Messages:
    499
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no it doesnt.
    read nico_swd's reply.. it will explain you the problem..

    Thanks for reply anyway..
     
    nastynappy, Aug 16, 2008 IP
  6. GeorgeP

    GeorgeP Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if you have the function that will login to vbulletin with curl please please pm me. im very interested!
    thanks
     
    GeorgeP, Sep 24, 2008 IP
  7. Panzer

    Panzer Active Member

    Messages:
    381
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Setting the referrer to the website your trying to login to does the trick.

    You can also do some cool things with cURL, setting the browser name and other settings to act like a google spider. Most websites 'open up' and don't require you to login just so google can index their pages.
     
    Panzer, Sep 24, 2008 IP
  8. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #8
    interesting idea... thanks :)
     
    dimitar christoff, Sep 24, 2008 IP
  9. wisdomtool

    wisdomtool Moderator Staff

    Messages:
    15,826
    Likes Received:
    1,367
    Best Answers:
    1
    Trophy Points:
    455
Thread Status:
Not open for further replies.