On Tue, 23 Oct 2007 11:13:13 -0400, Douglas O'Neal <(E-Mail Removed)> wrote:
| 2401 members, members can post wrote:
|>
|>
|>
|> October 23.2007
|>
|> Dear Madams and Sirs,
|>
|> Ever had the chance to forbid a website to download HTTP files from
|> your Website ?
|>
|> Have a pc-linux-gnu on i686 - Apache version is Apache/2.0.50
|> (Fedora).
|>
|> Point is, there are some undesired websites that downloads our content
|> to display it over their websites.
|>
|> As an example : they insert in their web-pages : <iframe src="our-
|> website.com/file.php"> OR <img src="our-website.com/file.gif"
|>
|> These websites are 100% undesired.
|>
|> We searched out and asked questions BUT
|> . if we found out how to forbid ONE USER to download a content
|> . if we found out how to forbid USERS to access a file or a directory.
|>
|> We could not AT ALL find out how to forbid one website (eg :
|> clickandwin.com) to display our content.
|>
|> The dreamed situation is a .txt reject list recognized from Linux
|> online or Apache.
|>
|>>From that list clickandwin.com or clickformoney.com would be forbidden
|> to DW any file for the server.
|>
|> Does that sounds like impossible : because our searches lead us to
|> that conclusion for the time being.
|>
|>>From your pro. experience in website configuration, and studies You
|> might have an operational solution ?
|>
|> We thank for your answer and address our best consideration.
|>
|> Bob
|>
|
| Take a look at
http://httpd.apache.org/docs/2.2/howto/access.html for
| the full answer to your question. Simplest fix - create a file named
| .htaccess in your web documents home with the contents
|
| Order deny,allow
| Deny from clickandwin.com clickformoney.com
| Allow from all
That won't work. In the situation the original poster described, the
image is being downloaded by the end users web browser, not the
offending web sites' web server.
There may be a way to do this by blocking on the http-referrer header.
Alternatively, replace the files/images with something amusing and/or
inappropriate, and change your site to use a different file name.
--
Reverend Paul Colquhoun, ULC.
http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro