homepage Welcome to WebmasterWorld Guest from 54.166.96.101
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Prevent from Frontpage Downloading
teeheiman

5+ Year Member



 
Msg#: 5300 posted 6:48 pm on Jan 10, 2006 (gmt 0)

Frontpage has a option to download an entire site, and in my browser statisics Ive seen about 3 unique vistors from a "Front Page.... Browser", Which im thinking is probably there download website tool. Is there any way to protect my site from people useing these tools like the frontpage one?

Thanks,
Billy

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 5300 posted 3:11 pm on Jan 11, 2006 (gmt 0)

Yes, you can use Apache mod_setenvif and mod_access or Apache mod_rewrite to deny access to the FrontPage user-agent. Examples would be:

SetEnvIf User-agent ^Front.?Page getout
Deny from getout

or

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} Front.?Page [NC]
RewriteRule .* - [F]

Jim

teeheiman

5+ Year Member



 
Msg#: 5300 posted 7:04 pm on Jan 11, 2006 (gmt 0)

Ive never done anything qith Apache I was just refered here, can you explain where this code would be placed and how to place it?

Thanks,
Billy

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 5300 posted 7:52 pm on Jan 11, 2006 (gmt 0)

It goes in a plain-text file named ".htaccess" in the same directory as your "home page." Note that it's "dot htaccess" and Windows machines don't like that kind of name. If this is a problem, then name it htaccess.txt on your PC, edit it, upload it, and then rename it to .htaccess once it's on your server.

If you need a jump-start, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

teeheiman

5+ Year Member



 
Msg#: 5300 posted 10:11 pm on Jan 11, 2006 (gmt 0)

Cant have apcahe on a windows server =P, Can you point me in the right direction on installing this
SetEnvIf User-agent ^Front.?Page getout
Deny from getout

on iis?

Thanks,
Billy

LeChuck

5+ Year Member



 
Msg#: 5300 posted 10:25 pm on Jan 11, 2006 (gmt 0)

Wrong, apache on windows is quite popular.

You can't use the .htaccess code with iis, but if you are using php (unlikely?) you can use something like this:

if (ereg('(.*(Frontpage)(curl)(libwww)(Wget)(wget)(ownloader).*)', getenv("HTTP_USER_AGENT"))) {
header("HTTP/1.1 404 Not Found");
exit();
}

at the top of your script.

Maybe asp would be more appropriate... :)

Leosghost

WebmasterWorld Senior Member leosghost us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 5300 posted 10:26 pm on Jan 11, 2006 (gmt 0)

Erhemmmm ..you did post this in the apache forum ..( look up to top of page ;)).
Maybe you should have posted this over here [webmasterworld.com]..even then it isn't exactly the right place ..but it's very difficult to find a right place for folks who want to run a doze server ..sort of an oxymoron "server" and "'doze". ;))

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved