Welcome to WebmasterWorld Guest from 54.163.168.15

Forum Moderators: Ocean10000 & incrediBILL & phranque

Prevent from Frontpage Downloading

   
6:48 pm on Jan 10, 2006 (gmt 0)

5+ Year Member



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

3:11 pm on Jan 11, 2006 (gmt 0)

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



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
7:04 pm on Jan 11, 2006 (gmt 0)

5+ Year Member



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

7:52 pm on Jan 11, 2006 (gmt 0)

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



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

10:11 pm on Jan 11, 2006 (gmt 0)

5+ Year Member



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

10:25 pm on Jan 11, 2006 (gmt 0)

5+ Year Member



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... :)

10:26 pm on Jan 11, 2006 (gmt 0)

WebmasterWorld Senior Member leosghost is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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". ;))
 

Featured Threads

Hot Threads This Week

Hot Threads This Month