HTTP Request For HTML Only
Aug 2, 2007
Is there a way to construct an HTML request so that only HTML text is returned (without images or rich media)? I assume search engines do this - how?
What I'm trying to do is write an Apache module that will retrieve only text from a web site. The idea is to provide a Lynx-like experience, using Apache as a proxy between my workstation and my ISP.
View 13 Replies
ADVERTISEMENT
Jul 22, 2008
In my logs:
[Tue Jul 22 01:01:35 2008] [error] [client x.x.x.x] Invalid URI in request GET . HTTP/1.0
(yes, that is it for this entry/line)
This showed up in logwatch as:
Requests with error response codes
400 Bad Request
.: 4 Time(s)
...what was this guy trying to do?
The offending IP was banned in APF last night, if his IP is still showing up in my logs, is he using aproxy?
After adding his ip to:
/etc/apf/deny_hosts.rules
I ran:
apf -r
View 2 Replies
View Related
Jun 8, 2008
I have a script that makes a request via telnet and it worked on my old server, but not on the new one.. Heres what I'm doing
telnet localhost 80
GET /files/downloadFLV.php HTTP/1.1
Host: www.soybe.com
I get this back:
HTTP/1.1 404 Not Found
Date: Sun, 08 Jun 2008 06:34:25 GMT
Server: Apache
Last-Modified: Tue, 18 Mar 2008 06:52:59 GMT
I know that /files/downloadFLV.php does exist, so I'm thinking it could be an issue with the Host: part of it, any ideas?
View 1 Replies
View Related
Jun 13, 2008
I have a Linux server running some reasonable setups:
Opteron 180, 4 GB RAM, running 8x 36gb 15k scsi with hardware raid 10 -- this is one of the servers from WebNX advertised here not long ago
Running CentOS 4(?), Apache2/MySql 4/PHP5.2, the normal stuff.
I have only one main site on the server, which runs a pretty old PostNuke CMS in Chinese (0.7.2.3 Phoenix) + PNphpBB2 + Gallery 1.5.7 (all integrated into PostNuke). This site is pretty light in "human" traffic, getting about 20K hits per day.
Now, the problem I have noticed with this site, is related to the many MP3 files stored in the Gallery albums. There are lots of HTTP requests to these files, most maybe from Chinese search engine bots (judging from IP), that slows the server to a crawl and even crashes Apache. This happens in the late hours here when it's day time in China. As a matter of fact I just did a reboot, and in 5 minutes there are more than 1000 HTTP requests to MP3 files resulting in a traffic of 2.1+ Gb. So within minutes, the server is brought to its knees again and I can't even get the "apache status" from CPanel now: "Unable to retrieve apache status".
The company that manages the server for me said there's no security problem here. We have installed an Apache extension to limit the number of simultaneous requests to media files to 1. However that doesn't seem to help.
View 6 Replies
View Related
May 6, 2013
I have an Xitami server and am migrating to apache httpd. I have the regular server working fine. I tried configuring ssl, but no requests are coming through. I know 443 is open on the router because it works fine under Xitami. I checked the logs and it si starting fine. I am attaching my httpd.conf and the startup log. If I try to access the website using https, it just times out and nothing goes in the log file. I replaced my domain with domain.com. I have tried many different examples, but cannot get it to work and am not sure what to do.
View 5 Replies
View Related
Dec 18, 2013
i want to redirect main domain http //, www request to https://
i added this code
RewriteCond %{HTTPS} off# First rewrite to HTTPS:# Don't put www. here. If it is already there it will be included, if not# the subsequent rule will catch it.RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]# Now, rewrite any request to the wrong domain to use www.RewriteCond %{HTTP_HOST} !^www.RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
View 2 Replies
View Related
Jan 17, 2007
how to catch request over http and forward them to https, I have VPS/Plesk and I was wondering how to do that.
Also, what do you think about having a sub domain on each client domain to access plesk, likes this:
[url]--> [url]
View 5 Replies
View Related
Feb 15, 2007
How can I ban a browser/client type http request in Apache2 configuration?
For example; I would like to redirect all 'Opera' traffic to another URL or ban it altogether.
View 5 Replies
View Related
Jan 10, 2007
My webserver treat ALL files with html tags inside as html files, e.g. text files or EVEN files without extension.
How to only allow .htm, .html files?
I've deactivated temporary mime magic, I also tried with some RemoveHandler, AddType lines but nothing
View 9 Replies
View Related
Jun 23, 2008
Does anyone know how to redirect the URL of a host so that it always goes to the www subdomain? Is this done with RedirectMatch or is a rewrite rule?
View 3 Replies
View Related
Mar 31, 2008
where when I view my website through http using Firefox, it never stops loading. If I use IE, then I get a "page can not be displayed" error.
If I use https then everything works fine.
I have noticed that if I delete lines from the files, I don't have this problem.
If I try viewing images (so I know it can't be an html of php problem) some look fine (the very small files). But, larger files, around 168 kb, load halfway and the second half is distorted (green and purple chunks and other random colors and lines).
If I view the image through https, the image is perfectly fine!
If I put my site through w3.org's validator (just to see what it would report) it says "500 Line too long (limit is 4096)".
My website used to work, so I know there isn't any code in the pages that would cause this to happen.
Is there an Apache setting I check? Perhaps it is sending a really long header that I can not see? I am not really sure what to do. I have made my site to force https but it's slow and not signed.
View 6 Replies
View Related
Oct 28, 2007
Anyone can inform how to fix "http-put proxy" or "http-connect proxy" ?
My hosting provider said that my dedicated server is not secure because of that.
I use CentOS 4.x and only Apache 2.0.52
# rpm -qa | grep htt
httpd-2.0.52-28.ent.centos4
httpd-suexec-2.0.52-28.ent.centos4
I searched about the topic but got not much information.
View 0 Replies
View Related
Apr 5, 2009
1. Are there any restrictions or special problems with hosting domains as a function of whether they are a ".com" versus a ".us" domain?
2. Are there any differences or problems when hosting domains which have index files which are htm versus html?
For these items, are there good sources for detailed explanations?
View 7 Replies
View Related
Apr 12, 2008
I want my server looking and open index.html first and after index.php, I mean if have both index.html and index.php in a folder, the index.html will be open by default .
I know it name: DirectoryIndex directive ..
View 5 Replies
View Related
Mar 12, 2008
PHP 5.2.5 / Apache 2.2 / suPHP enabled
index2.html shows "it works" but index.php does not, shows up blank ....
View 6 Replies
View Related
Feb 18, 2008
I have several websites running on Linux hosting with cPanel, that were developed as static .html files, where for ease of maintenance (use of includes) and future improvements I want the pages treated as .php. On one server I use, I just put:
AddHandler application/x-httpd-php .html .shtml
into the .htaccess file and the pages were treated as .php, exactly what I wanted.
The other sites are on a cPanel reseller account at iVhosting.com. When I tried this there, it didn't work. I tried some other ideas suggested by Google, which resulted in the .php files being downloaded as text files. I contacted iVhosting support, who stated: "you will not be able to do this on our server since we use phpsuexec/suphp for more security. PHP pages have to have .php extension."
So what can I do? I can't rename the pages all to .php because this would break incoming links and destroy the page's PR. Creating a permanent redirect for each page to the same name with .php extension would create a very large .htaccess and be extremely tedious to do.
View 6 Replies
View Related
Aug 10, 2008
I want to use php code in .html extension files. I tried to accomplish this through a .htaccess file, but that did not work out. I tried to add a handler through cpanel, but it does not parse the code in the .html file. I renamed the index file to index.php and works fine.
I would like to keep the .html extension.
I tried several Handlers through Cpanel which all failed to work.
Tried: AddHandler application/x-httpd-php .php .html and AddType application/x-httpd-php .php .html (with and without application/) and AddHandler server-parsed .html
View 9 Replies
View Related
Dec 27, 2007
Is there any way to run SSI with html instead of shtm or shtml in Windows 2003 IIS 6 server?
View 0 Replies
View Related
Jul 15, 2009
i was wondering if anyone no's of a html/php coder,and decoder via a password thats an offline app?
its just ive made a script and i want it to use liencekeys for activation so i would need to encryt the code some how,
does anyone no off a program that could do all of this for me?
View 4 Replies
View Related
May 2, 2009
Currently I cache php to html in a folder, and any time I upload index.php the whole site recaches. It also is set to a specific time such as 1 day, and the specific page will recache on someone hitting a page in 1 day from last cache.
The problem is when there are thousands of people on, and the index.php is uploaded the site crashes due to connections to the database, and possibly writing to the folder as well.
What is the best way to cache these files to html, and not have it crash every time I try to update things on the site. Also it needs to be something somewhat simple.
View 1 Replies
View Related
Feb 20, 2009
I have a curious problem, and have scoured the net for a solution.
Basically, while developing a Joomla site, I have had a standard .html holding page in place.
I uploaded the Joomla site in the 'background' to continue developing the website while the holding page was in place. I always thought that .html would always display first in the browser, before index.php.
However the index.php file always displays first. I've tried changing the htaccess file etc but at this point nothing seems to be working.
View 4 Replies
View Related
Dec 12, 2008
I know nothing about IIS as I ormally use Linux / Apache so I'm not sure this is possible.
I have built a site in PHP that the client now wants to move over to a IIS-hosted server. Although it's all in PHP because it was a re-build of an old static site I used ModRewrite to make all the page .html.
I know IIS doesn't have a URL rewrite feature as such. What I was wondering is, is it possible to configure IIS so that a PHP page can have a .html extension?
View 6 Replies
View Related
Mar 14, 2008
I run the website, [url]and am looking for a way to send newsletters to the members of the website.
There are currently over 53,000 registered members. We have tried emailing the database before using a variety of techniques but they are not all fool proof.
Is there any software you could recommend or would I have to use a 3rd party provider? If so, how much would this cost (to do a weekly or monthly mailshot).
The website is run on a core2duo E6750 with 4GB RAM and a 100mbps port - is this high end enough to support e-mailing this quantity of messages?
View 14 Replies
View Related
Jul 29, 2008
I've just set up HTTPS on Apache (CentOS). However if I try to access the HTTPS site I just get prompted with the save as dialog to download either the .php file or .html. How do I get it to show (and process) it instead, like when accessing normally (non-ssl).
View 7 Replies
View Related
Jan 14, 2008
Has anyone encountered server being infected with Exploit.HTML.IESlice.bz
My server is infected with this new rootkit. Is the 'OS reload' only the solution?
View 9 Replies
View Related
Mar 6, 2008
in many sites in my server torjan in index.html
in <ifram>
how to save my server from that .js torjan
and i need to ask about other thing this torjan can chang any this in backups
View 9 Replies
View Related
Sep 21, 2007
This software is by AntsSoft
"HTMLProtector is a tool that helps you protect the content of your web page by preventing others from viewing your source code. "
Is anyone familiar or has had any experience with this.
View 5 Replies
View Related
Feb 9, 2007
How can we make PhP run on html pages?
View 5 Replies
View Related
Nov 19, 2007
I have a server running PLESK 8.2 (latest version). With PHP4 and 5 support. I want to include .php files into .html (which work fine on LINUX CPANEL but on on WINDOWS PLESK).
Please can anyone suggest how can i make my WINDOWS server work so that it includes .php into .html. (.php included in .php works fine).
ALSO i tried to add (application/x-httpd-php in IIS MIME TYPES to extension .html and even .php but it did not work.)
View 5 Replies
View Related
Oct 3, 2007
I currently have a web site with an index.html file inside the Document Root. I also have the noindex.html inside the /var/www/error directory. From time to time for some reason the noindex.html shows when going to the web site even if I have the index.html file inside the Root Document.
View 5 Replies
View Related
Apr 4, 2007
My server is running Red Hat Linux 9 , without PHP only Html and Cgi websites
are running on it.
Is there any Mail Header Patch for Html,CGi.
Some one is sending Spam email from my Server.
Apr 1 04:03:30 iris2 sendmail[15752]: l318soT3015742: to=<dedev@magna-tel.net>, ctladdr=<apache@hostname> (48/48), delay=00:08:35, xdelay=00:00:01, mailer=esmtp, pri=3000357, relay=magna-tel.net. [68.112.42.50], dsn=2.0.0, stat=Sent (4487747 message accepted for delivery)
I am unable to find that script or source which send email from my Server
because at SENDMAIL LOG it shows only sender address "apache@hostname".
Is there any MAIL HEADER PATCH Like PHP, so i will catch that Script or source.
View 0 Replies
View Related