Jump to content

mcirl2

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mcirl2's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I tested doing the above telnet with the ProxyRequests On and then ProxyRequests Off When ProxyRequests was OFF and I did the post command, I got this: HTTP/1.1 301 Moved Permanently Date: Fri, 13 Feb 2009 19:03:41 GMT Server: Apache-Coyote/1.1 Location: /c;jsessionid=A2ABE5ABDFF8A8E5 Content-Type: text/html Content-Length: 198 Set-Cookie: JSESSIONID=A2ABE5ABDFF8A8E54 <body onload="javascript: location.repla </html>C1C')"> Connection to host lost. C:\Documents and Settings\Administrator> I then proceedeed to test with ProxyRequests On and I got this: HTTP/1.1 411 Length Required Date: Fri, 13 Feb 2009 19:07:09 GMT Server: GFE/1.3 Content-Type: text/html; charset=UTF-8 Content-Length: 1363 Connection: close <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <t itle>411 Length Required</title> <style><!-- body {font-family: arial,sans-serif} d iv.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-seri f} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} di v.nav A,span.big {font-size: 12pt; color: #0000cc} div.nav A {font-size: 10pt; co lor: black} A.l:link {color: #6f6f6f} A.u:link {color: green} //--></style> <script> <!-- var rc=411; //--> </script> </head> <body text=#000000 bgcolor=#ffffff> <table bo rder=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap> <b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><f ont face=times color=#c41200 size=10>e</font> </b> <td> </td></tr > <tr><td bgcolor="#3366cc"><font face=arial,sans-serif color="#ffffff"><b>Error< /b></td></tr> <tr><td> </td></tr></table> <blockquote> <H1>Length Required</H1 > POST requests require a <code>Content-length</code> header. <p> </blockquote> <tab le width=100% cellpadding=0 cellspacing=0><tr><td bgcolor="#3366cc"><img alt="" width=1 height=4></td></tr></table> </body></html> Connection to host lost. C:\Documents and Settings\Administrator> I dont really know much about telnet so does this show that it is secure when ProxyRequests is OFF? Thanks for all your help. Thanks, Mike
  2. Hi, I think I have sorted it but not 100%. I went the documentation at http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxyrequests and because my I am using a reverse proxy pass I don't need "ProxyRequests On" so I changed this to "ProxyRequests Off" Is there anywhere I can test to see if my proxy is secure as I would rather know before getting another angry email from my hosting provider. Regards, Mike
  3. Hi, Thanks for the instanteous reply !! Very much appreciated. I will go find it and post back the solution (hopefully) as this has had me puzzled for a while. Thanks a lot, Mike
  4. Hi, I have set up an intranet for a client and I am using Apache Web Server (mod_proxy) for https. However, the problem is that my Hosting Provider (We have a dedicated machine) emailed me and said that the proxy had been used / is being used by spammers. I immediately shut down apache and now I am trying to fix the problem. How do you secure the proxy so it is not an "Open Proxy". I cannot restrict access to one ip / range of ip addresses as the users need access from anywhere (most employees work off site). This is what the our provider told us in the email: We have found that portal.xyz.com (port 80) is working as unsecure open HTTP_POST proxy. We would ask that you immediately investigate this issue and take the necessary steps to close it down. Has anyone come across this / an idea how to secure it. Any advice would be much appreciated. thanks in advance, Mike
  5. hey, the problem is that I need to store the images in the database because users can create profiles and so they would have to create a seperate directory every time they create a profile so its easier to store int he database. I wish I didnt have too, its a nightmare!! Any other ideas - anyone??
  6. Hi, I have a simple php script which will retrieve images from the table based on the query. The problem is that when I hard code a value to the $id variable that I use in the select statement, the image is dislayed no problem. However as soon as I use the $_GET['id'] variable in the query it wont work. It prints out other text values for the row, but not the iimage. Here's my code: <?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root","******")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("*****"); $id = $_GET['id']; //$id = 31; //when I uncomment the above variable the query will pull out all the values where AdvID = 31 //but when I use the Get ID .. it wont work. The value of $_GET['id'] is 31 also. $slqQ = @mysql_query("select * from advpics where AdvID = $id"); if ($row = @mysql_fetch_assoc($slqQ)) { $title = htmlspecialchars($row[title]); $bytes = $row[imgdata]; $desc = $row ['AdvID']; } //If this is the image request, send out the image if ($_REQUEST[gim] == 1) { header("Content-type: image/jpeg"); print $bytes; exit (); } ?> <html><head> <title>Upload an image to a database</title> <body bgcolor=white><h2 align="center">Here's the latest picture</h2> <font color=red><?= $errmsg ?></font> <center><img src=?gim=1 width=144><br> <p align="center"><?= $title ?></p> <p><?= $desc; ?></p> </center> </body> </html> I would really appreciate some help, cant figure it out at all. Thanks, Mike
  7. <?php // Variables for navigating between previous and next record id $previd = $id -1; $nextid = $id +1; // Your database connection code $dbcnx = mysql_connect('localhost:', 'usern','pwd') or die("Error Occurred"); mysql_selectdb("iecoadventuredb"); $query = "SELECT * FROM users WHERE ID='$id'"; $result = mysql_query($query, $dbcnx); $row = mysql_fetch_array($result); // Checking and displaying data If (($id > 0) && ($id <= sizeof($row))) { echo $row['ID']; echo "<a href=\"page.php?id=$previd\">Previous</a> <a href=\"page.php?id=$nextid\">Next</a>"; } else { if ($id < 1) { echo "Beginning of Record Set"." "; echo "<a href=\"page.php?id=$nextid\">Next</a>"; } else { echo "End of Record Set"." "; echo "<a href=\"page.php?id=$previd\">Previous</a>"; } } ?> This is my code. It s very simple but when I click on the link nothing happens. I ahve tried changing the id in the address bar but nothing happens. If I hard code a value fromt he database it will work. Any ideas what Im doing wrong. The whole page.php?id=3 thing baffles me. What is the id?? where does it come from? Thanks for the help! Mike
  8. Hey, This is probably a very dumb post but I am really struggling with it and cant find much that is of help. The website I am building has profiles of users. However there will be about 20 users and each with their own profile. Each user has a unique userID. How can I create a hyperlink with will go to / display the current user profile. Is it something like this. localhost/userProfile.php?id=15 If anyone could help that would be great!! Thanks, Mike
  9. When I try to link stylesheets to my php pages on my server, it wont recognize them!! This is my html: <link rel="Stylesheet" href="template.css" /> the 'template.css' file is in the same folder as the php file but it wont recogize it. I have tried everything. Also, I cannot get images to come up on php pages. I think it must be my php setup. Because linking stylesheets / images works fine for asp.net pages. Has anyone encountered this problem before. Any help would be greatly appreciated!! Thanks, Mike
  10. When I try to link stylesheets to my php pages on my server, it wont recognize them!! This is my html: <link rel="Stylesheet" href="template.css" /> the 'template.css' file is in the same folder as the php file but it wont recogize it. I have tried everything. Also, I cannot get images to come up on php pages. I think it must be my php setup. Because linking stylesheets / images works fine for asp.net pages. Has anyone encountered this problem before. Any help would be greatly appreciated!! Thanks, Mike
×
×
  • 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.