deny visitors (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


dumass -> deny visitors (6/9/2009 18:40:15)

Hi diminishing Fpagers
I'd like to prevent one or two people accessing certain pages of my site (all of the site if that's the only alternative). Contacted my host who said i needed to add " Deny from ..... the ip address i want to ban goes here"
In my control panel in the .htaccess file i have this: # -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.my site
AuthUserFile /home/myname/www/www/_vti_pvt/service.pwd
AuthGroupFile /home/myname/www/www/_vti_pvt/service.grp

Not sure where i'm supposed to add the info but more importantly he said i could corrupt the FP extensions if i carry out this action. Does anyone use the .htaccess file for barring users via their ip address and has it caused problems with the extensions? T.I.A for any help -mike




treetopsranch -> RE: deny visitors (6/9/2009 22:17:30)

I have made changes/additions to the .htaccess file even when the extensions were installed. Don't disturb the order or placement of any FrontPage stuff in that file. Don't use FrontPage to modify that file. Use a text editor like Notepad. Use a FTP program to upload just that file.

Be sure to make a backup of the original .htaccess file in case you mess up.




dumass -> RE: deny visitors (6/12/2009 9:04:01)

Thanks for the reply. As the htaccess file is in my control panel don't i change and save everything there? Also i'm still not sure if i make any mods/adds where the "deny from ip address" bit goes. Thanks again




treetopsranch -> RE: deny visitors (6/12/2009 11:25:30)

I would copy the ACTUAL .htaccess file to my computer. Then open it in notepad to carefully examine it. If you do it by your control pnl you may mess up the FP extensions. Go here for some info: http://www.outfront.net/tutorials_02/adv_tech/htaccess_magic1.htm

and here: http://www.javascriptkit.com/howto/htaccess.shtml
for more detailed help





dumass -> RE: deny visitors (6/12/2009 14:20:05)

thanks very much for your help [:)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.1098633