adv Posted November 14, 2010 Share Posted November 14, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/ Share on other sites More sharing options...
Rifts Posted November 14, 2010 Share Posted November 14, 2010 is it_usersuggest a folder or the actual php file name? Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134059 Share on other sites More sharing options...
adv Posted November 14, 2010 Author Share Posted November 14, 2010 i dont know https://selfcare.tiscali.it/unit/selfcare/it_usersuggest/ ... i`m unsure Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134061 Share on other sites More sharing options...
adv Posted November 14, 2010 Author Share Posted November 14, 2010 anybody ?!?! please Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134105 Share on other sites More sharing options...
BlueSkyIS Posted November 14, 2010 Share Posted November 14, 2010 you don't know if this is php code? the 403 error is probably thrown by apache, not php. Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134123 Share on other sites More sharing options...
adv Posted November 15, 2010 Author Share Posted November 15, 2010 no i dont but it isnt any way to get pass that ... Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134214 Share on other sites More sharing options...
Rifts Posted November 15, 2010 Share Posted November 15, 2010 you need to link to go to an actual file not the a directory Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134497 Share on other sites More sharing options...
adv Posted November 15, 2010 Author Share Posted November 15, 2010 GET /unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=asdsadas&dY= this is the only file/directory that it uses ... nothing else .. there must be a trick which i cant see it maybe some of u knows it Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134590 Share on other sites More sharing options...
Rifts Posted November 15, 2010 Share Posted November 15, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1134690 Share on other sites More sharing options...
adv Posted November 16, 2010 Author Share Posted November 16, 2010 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 ... Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135033 Share on other sites More sharing options...
Rifts Posted November 16, 2010 Share Posted November 16, 2010 I'm pretty sure you dont understand what I mean and you are trying to link to a folder not a file Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135049 Share on other sites More sharing options...
Pikachu2000 Posted November 16, 2010 Share Posted November 16, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135068 Share on other sites More sharing options...
adv Posted November 17, 2010 Author Share Posted November 17, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1135415 Share on other sites More sharing options...
adv Posted November 18, 2010 Author Share Posted November 18, 2010 any ideas please Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1136250 Share on other sites More sharing options...
Pikachu2000 Posted November 18, 2010 Share Posted November 18, 2010 Get in touch with the server owner and see why you can't do what you're trying to do. I don't think we can help you any further with this issue until you do that. Quote Link to comment https://forums.phpfreaks.com/topic/218636-403-forbidden/#findComment-1136254 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.