Help with .htaccess

I've done a bit of ms basic but I dont understand "perl expressions"

Can someone tell me how to write a .htaccess file that will prevent
access to my site if a certain word or phrase appears anywhere in the
HTTP header please? I think thats what I need to do to make the
..htaccess work?

I'm finding .htacess files a bit too much to understand properly.

thank you

Sandy
Sandy [ Sa, 17 November 2007 01:48 ] [ ID #1873138 ]

Re: Help with .htaccess

sandy [at] notmyeamil.com:

> I'm finding .htacess files a bit too much to understand properly.

What have you done so far?
Floor
Floor [ Sa, 17 November 2007 16:31 ] [ ID #1873140 ]

Re: Help with .htaccess

In article <473f094a$0$236$e4fe514c [at] news.xs4all.nl>, Floor [at] yahooh.co.not
says...
> sandy [at] notmyeamil.com:
>
> > I'm finding .htacess files a bit too much to understand properly.
>
> What have you done so far?
> Floor
>
>
>

Hello Floor

Not a lot Im afraid. I can just about understand a for next loop but
after that im totally lost. [im not a programmer its just a hobby but
i could really do with this now if i can find a way to make it work]

I did follow a link I found here a few days ago and found the lines below
and managed to adapt them to work on my site

This i how I worked out it should be possible to do what I asked.
But not being able to understand the perl stuff and having no real hope
of doing so after studying this site for hours I was hoping someone had
already done it and might be willing to share.

Am I right in thinking it can be done and wouldn't be too complex
for people in this group? Is it something you can help with?

I found this - which was helpful to have from what ive read i think
+++++++++++++++++++++++++++++++++++++++++
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^askapache\.com$ [NC]
RewriteRule ^(.*)$ http://askapache.com/$1 [R=301,L]
++++++++++++++++++++++++++++++++++++++++++

If I just changed the askapache to my site name this works a treat.
Sadly its all way over my head tho.
Sandy [ So, 18 November 2007 04:27 ] [ ID #1873615 ]

Re: Help with .htaccess

In article <MPG.21a84a9897d5fd979899e7 [at] news-text.blueyonder.co.uk>,
sandy [at] notmyeamil.com says...
>
> I've done a bit of ms basic but I dont understand "perl expressions"
>
> Can someone tell me how to write a .htaccess file that will prevent
> access to my site if a certain word or phrase appears anywhere in the
> HTTP header please? I think thats what I need to do to make the
> .htaccess work?
>
> I'm finding .htacess files a bit too much to understand properly.
>
> thank you
>
> Sandy
>


Anyone please?

Sandy
Sandy [ Mo, 19 November 2007 17:45 ] [ ID #1874266 ]

Re: Help with .htaccess

On Nov 19, 9:45 pm, sa... [at] notmyeamil.com wrote:
> In article <MPG.21a84a9897d5fd97989... [at] news-text.blueyonder.co.uk>,
> sa... [at] notmyeamil.com says...
>
>
>
> > I've done a bit of ms basic but I dont understand "perl expressions"
>
> > Can someone tell me how to write a .htaccessfile that will prevent
> > access to my site if a certain word or phrase appears anywhere in the
> > HTTP header please? I think thats what I need to do to make the
> > .htaccesswork?
>
> > I'm finding .htacess files a bit too much to understand properly.
>
> > thank you
>
> > Sandy
>
> Anyone please?
>
> Sandy

try this..

http://groups.google.com/group/alt.apache.configuration/brow se_thread/thread/d02a5d184a9e6f24/35889954309589b6?lnk=gst&q =.htaccess#35889954309589b6

this the the topic earch this u can find answer i hope. " what's
the .htaccess directive to deny all except localhost code?"

thanks,
prakash
Praki [ Mi, 05 Dezember 2007 19:40 ] [ ID #1886301 ]
Webserver » alt.apache.configuration » Help with .htaccess

Vorheriges Thema: Newbieeeee needs help !
Nächstes Thema: running CGIs as authenticated user?