Results 1 to 11 of 11
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    551
    Hi,

    My provider has a stats program that automatically writes the stats to an HTML file for everyone to see. I have asked them to remove (or not to post) it but they say that they cant do this for just one URL.

    How can I block these files from being read using .htaccess? Or is there a more elegant way to do this?

    Thanks :confused:

  2. #2
    Member
    Join Date
    January 18th, 2005
    Posts
    128
    If you're using the Apache Web server, I'd say that .htaccess is the most elegant way to protect a directory. There are many tutorials on the Net that deal with this subject.

    I did a quick search and find this one (#1 at Google) to be comprehensive and accurate: http://javascriptkit.com/howto/htaccess.shtml

    Here's the documentation from Apache: http://httpd.apache.org/docs/configuring.html

    HTH,
    Karl

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    <LIMIT GET>
    order deny,allow
    deny from all
    allow from none
    </LIMIT>


    Put that in the directory where the files are that you don't want viewed.

    That's the quickest and simplest way, if you want to keep everyone out including yourself. No one will be able to access the directory.

    If you still want to be able to look at it yourself, you can use htpassword or you can put this in

    allow from (your.ip.address.)

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    Okey dokey ... what is the trick to posting tags here?
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>

    < LIMIT GET POST >
    order deny,allow
    deny from all
    allow from none
    < / LIMIT >

    <HR></BLOCKQUOTE>

    You'll have to take the spaces out from around the tags; the only way I could get them to show was to put in spaces.
    [ 04-17-2002: Message edited by: eaglefire ]

    [ 04-17-2002: Message edited by: eaglefire ]

  5. #5
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    551
    Wow, you guys are fast, than-Kew very much [img]/infopop/emoticons/icon_smile.gif[/img]

    They put the files in HTML 'root' directory (with my index.html) so I have to be careful not to lock myself (or anyone else) out :eek:

    Here goes .......

  6. #6
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    oops then you won't be able to use that method because it will lock people out. AFAIK .htaccess will only limit to the directory level - not specific files.
    I was hoping they weren't that stupid that they would put something like that in your doc root. You can't just delete the files yourself?

    [ 04-17-2002: Message edited by: eaglefire ]

  7. #7
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    551
    I did that, but as the stats are refreshed every 24 hours, it reappears again.

    How about
    < Files stats.html >
    order allow,deny
    deny from all
    < /Files >
    ?

    Oops, same spaces

    [ 04-17-2002: Message edited by: Wayder ]

    [ 04-17-2002: Message edited by: Wayder ]

  8. #8
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    oh wait - you can do this now :
    http://httpd.apache.org/docs/mod/core.html#files

    (limit by file)

  9. #9
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    hehe - looks like our posts crossed.

    I think what you just posted should work.

    [ 04-17-2002: Message edited by: eaglefire ]

  10. #10
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    551
    Eggcelent.

    Thanks. [img]/infopop/emoticons/icon_biggrin.gif[/img] [img]/infopop/emoticons/icon_biggrin.gif[/img] [img]/infopop/emoticons/icon_biggrin.gif[/img] :cool:

  11. #11
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    thank *you* - I've not kept up on the changes in Apache ... I know they made alot of changes to htaccess/htpasswd and wasnt aware of the ability to limit access to specific files now. Now I am [img]/infopop/emoticons/icon_smile.gif[/img]

  12. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. CJ Stats a couple questions...reversal stats
    By s2kinteg916 in forum Commission Junction - CJ
    Replies: 0
    Last Post: October 31st, 2006, 11:39 AM
  2. Quick Stats/Report Stats?
    By leeann in forum Commission Junction - CJ
    Replies: 0
    Last Post: April 11th, 2005, 11:02 AM
  3. private stats and cj.com stats
    By Roland in forum Commission Junction - CJ
    Replies: 5
    Last Post: August 9th, 2003, 07:30 AM
  4. Follow-up to stats checking stats.
    By Haiko de Poel, Jr. in forum Midnight Cafe'
    Replies: 18
    Last Post: November 26th, 2002, 06:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •