Jump to content

Why is my script telling me the area is forbidden?


jdock1

Recommended Posts

I have no problem using my script on another server, but now when I uploaded it to my other server, its telling me that the area is forbidden. The index file works, but when I crop the frame, it generates the iframe code, which is hosted on a php page. The php page is giving me the forbidden error. I tried all types of different permissions, but it still doesnt work.

 

It is the exact same code as used on my other server.

 

Please check this out for me, go to

http://damnitpetitions.com/cut/index.php

 

& enter a url, just use phpfreaks.com as an example. You will see in the box below it loads the page. Drag & drop your cursor to crop an iframe. Below that you will see a textarea with the generated code. Below that, you will see the iframe. It will say its forbidden.

 

For example the generated code

<iframe src="http://damnitpetitions.com/cut/out.php?url=http%3A//phpfreaks.com&height=400&width=600&left=12&top=33.600006103515625" style="height: 115px; width: 324px"></iframe>

& the direct link

http://damnitpetitions.com/cut/out.php?url=http%3A//phpfreaks.com&height=400&width=600&left=12&top=33.600006103515625

 

Now, go to the script on my other server, WITH THE SAME CODE

http://174.121.237.117/cut/test.php

use phpfreaks as an example again.

Direct link, no forbidden error:

http://174.121.237.117/cut/out.php?url=http%3A//phpfreaks.com&height=400&width=600&left=25&top=32.600006103515625

 

All the permissions are set the exact same on each server.

 

For the IP, its a hostgator VPS.

For the site that im having trouble with, its on a shared hostgator server.

My only guess is that it could be some kind of different PHP configuration??

It just makes no sense to me, & I am getting really frustrated! Please help!!

 

BTW - Use firefox for this script. I have not tested it in any other browser. Also, I am the developer of this shitty script. This is my code, so I know the ins & outs.

 

Thanks!!!

Link to comment
Share on other sites

I'm far from an expert in Apache admin, but from the looks of the error, I'd say the problem is with one of these modules blocking it for some reason. (Used Safari 5 for this, BTW.)

 

Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at damnitpetitions.com Port 80

Link to comment
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.