Jump to content

Recommended Posts

hey i`m in a dilema .. i`m trying a script to validate emails from tiscali  for my site but i always get this error

https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&us=asdad

 403 Forbidden
Request forbidden by administrative rules. 

 

how can i get pass this .. is there a way ?

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/218636-403-forbidden/
Share on other sites

OK

 

can you get into file manager?

if so go to where it_usersuggest is

 

now look is there a actual it_usersuggest.php file there OR is it a folder named it_usersuggest

 

now if there is ONLY a folder and no PHP file that is causing your error.

 

you need make a file INSIDE the it_usersuggest folder and name it anything I would do index.php

 

THEN in your code change your link to

 

https://selfcare.tiscali.it/unit/selfcare/it_usersuggest/index?application=username_suggest&us=asdad

Link to comment
https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134690
Share on other sites

thanks for anwering Rifts .. 

i see your point but that is on its site

on tiscali.it .. i cant modify nothing there

and ive tried to search if its .php but nothing still 403

https://selfcare.tiscali.it/unit/selfcare/it_usersuggest.jsp?application=username_suggest&us=asdad

i`ve tried with .jsp .aspx aspx .php nothing ...

Link to comment
https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135033
Share on other sites

Here's an idea for the OP: explain exactly what it is you're trying to do, exactly how you're trying to do it, and post any relevant code that you're having problems with. Without that information, we can make wild guesses until the moon explodes and still not be right.

Link to comment
https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135068
Share on other sites

ok i dont get it

heres the code

 

 
<?php


function doRequest($method, $url, $referer, $agent, $cookie, $vars) {
    $ch=curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    if($referer != "") {
        curl_setopt($ch, CURLOPT_REFERER, $referer);
    }
    curl_setopt($ch, CURLOPT_USERAGENT, $agent);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
    if ($method == 'POST') {
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);
    }
    if (substr($url, 0, 5) == "https") {
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
    }
    $data = curl_exec($ch);
    curl_close($ch);
    if ($data) {
        return $data;
    } else {
        return curl_error($ch);
    }
}

function get($url, $referer, $agent, $cookie) {
    return doRequest('GET', $url, $referer, $agent, $cookie, 'NULL');
}
function post($url, $referer, $agent, $cookie,  $vars) {
    return doRequest('POST', $url, $referer, $agent, $cookie, $vars);
}

$url='https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=usernametest&dY=';
$ref='https://selfcare.tiscali.it/unit/selfcare/it_selfcare';
$ag='Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12';
$get=get($url,$ref,$ag,'cookie');

echo $get;


?>

 

the data that i have i got it with live http headers ..

 

 

https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=rosso&dY=

GET /unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=rosso&dY= HTTP/1.1
Host: selfcare.tiscali.it
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://selfcare.tiscali.it/unit/selfcare/it_selfcare
Cookie: __utma=133587473.401666586.1289989653.1289989653.1289989653.1; __utmb=133587473.2.10.1289989653; __utmc=133587473; __utmz=133587473.1289989653.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WT_FPC=id=151.47.94.116-212705376.30115394:lv=1289989680598:ss=1289989655354; CLASS=A2
HTTP/1.1 200 OK
Date: Wed, 17 Nov 2010 10:33:49 GMT
Server: Apache/2.2.15 (Unix) mod_jk/1.2.25
Content-Length: 242
Connection: close
Content-Type: text/xml

Link to comment
https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135415
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.