Forbidden - Passing URL Through Ajax POST

Discussion in 'Free Hosting' started by datasync, Jun 6, 2015.

Thread Status:
Not open for further replies.
  1. datasync

    datasync New Member

    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I keep receiving an error every time I try to pass a URL through Ajax, I'm unable to generate a php error log for some reason either. The response that I receive is simply "Forbidden" which I assume is a 403 error.
     
  2. ARandomCat

    ARandomCat New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Have you checked your cPanel error log files?
    You might want to use:
    PHP:
    error_reporting(E_ALL);
    ini_set'display_errors','1');
    Inside your PHP script.

    I'm not sure how x10's servers are configured, but putting this inside your .htaccess file should force the error_log generation
    Code:
    php_flag  log_errors on
    php_value error_log  /home/username/public_html/errors.log
     
  3. bdistler

    bdistler Well-Known Member Prime Account

    Messages:
    3,534
    Likes Received:
    196
    Trophy Points:
    63
  4. datasync

    datasync New Member

    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Thank you. Errors are now being logged, however Ajax is receiving a 403 forbidden when trying to post the variable when it includes a hyperlink. I think it has something to do with mod security
     
  5. datasync

    datasync New Member

    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
Thread Status:
Not open for further replies.

Share This Page