httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Selmer Ausland <sel.ausl...@shawcable.com>
Subject Re: [users@httpd] Mod-rewrite
Date Tue, 09 Dec 2003 20:50:05 GMT


Jeff White wrote:
> 
> From: "Robert Andersson"
> 
> > Selmer Ausland wrote:
> > > RewriteEngine on
> > > RewriteCond %{HTTP_REFERER} !^$
> > > RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
> > > RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
> >
> > You could combine the last two into the expression:
> >
> >     RewriteCond %{HTTP_REFERER} !^http://[^.]*\.?mydomain\.com/ [NC]
> >
> > > RewriteRule .*\.(gif|GIF|[...snip...]|mpeg|MPEG)$ - [F]
> >
> > You could (and should) use the NC flag here as well:
> >
> >     RewriteRule \.(gif|jpg|mid|wav|mp3|avi|mpeg)$ [NC,F]
> >
> > > Is this setup feasable?
> >
> > I think so.
> >
> > > Can I add it to my main httpd config file, or, should it be set up
> on a
> > per
> > > VH, or, Directory basis?
> >
> > To whatever context you want it to apply. Do you want these rules to
> apply
> > to all requests to the server, then by all means put in in the main
> server.
> > Or, if you want it only on particular hosts or directories, then
> place the
> > rules there.
> >
> 
> Were any Windows Scripting tests performed
> to see what happens when a user uses Windows
> Scripting and the XmlHttp object to set the request
> headers to whatever or the free .NET CSharp?
> 
> Windows Scripting with VBScript scripts.
> 
> Adjust the scripts to your needs, then save
> the VBScript script file to any folder. Then
> in a command prompt window set to the
> VBScript script's folder, use the Windows
> Script Host (WSH) engine cscript.exe
> by typing:
> 
> cscript.exe VBScriptFileName.vbs
> 
> Remember one can also use the script
> language of your desire with the Windows
> Script Host (WSH) engines.
> 
> <quote>
> 
> Specifies the name of an HTTP header.
> 
> </quote>
> 
> setRequestHeader Method (IXMLHTTPRequest)
> http://msdn.microsoft.com/library/en-us/xmlsdk/htm/xml_mth_sz_3hh0.asp
> 
> For more information:
> 
> Retrieving a Web Page
> http://www.microsoft.com/technet/scriptcenter/other/scroth16.asp
> 
> DemoGetImageStream.vbs
> http://groups.google.com/groups?&selm=uIwLEi5hCHA.1960%40tkmsftngp12&rnum=1
> 
> Microsoft Script Center
> http://www.microsoft.com/technet/scriptcenter/default.asp
> 
> An ONLINE version of the 1328 page Scripting Guide:
> Microsoft Windows 2000 Scripting Guide
> http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
> 
> C# and the Web: Writing a Web Client Application with
> Managed Code in the Microsoft .NET Framework
> http://msdn.microsoft.com/msdnmag/issues/01/09/cweb/default.aspx
> 
> WebClient.Headers Property
> http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemNetWebClientClassHeadersTopic.asp
> 
> .NET Framework Downloads
> http://msdn.microsoft.com/library/default.asp?url=/downloads/list/netdevframework.asp
> 
> Jeff
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

*****************************************************************************

Hi Jeff;
    Not sure if your comments wer meant for my post or someone else. If
it was for me, then you lost me completely on the last turn????? Let me
know please.

Thanks.

Selmer

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message