Some code was added to my .htaccess file under public_html, and I have no clue how it got there. Possibly when I was changing permission numbers for some folders. Just realized there was a problem for others accessing images on my site when I was using practiceboard and all my images had red x's. Everything was fine on my computer, so I didn't realize there was a problem.
My site host had me change the .htaccess folder name because she saw some suspect code. Once I did this, the images were fine. To my knowledge, all I have done intentionally to alter this file, is add some IP address to my deny list in Cpanel.
Here is the code:
[FONT=Times New Roman]# -FrontPage-[/FONT]
[FONT=Times New Roman]IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*[/FONT]
[FONT=Times New Roman]<Limit GET POST>[/FONT]
[FONT=Times New Roman]#The next line modified by DenyIP[/FONT]
[FONT=Times New Roman]order allow,deny[/FONT]
[FONT=Times New Roman]#The next line modified by DenyIP[/FONT]
[FONT=Times New Roman]#deny from all[/FONT]
[FONT=Times New Roman]allow from all[/FONT]
[FONT=Times New Roman]</Limit>[/FONT]
[FONT=Times New Roman]<Limit PUT DELETE>[/FONT]
[FONT=Times New Roman]order deny,allow[/FONT]
[FONT=Times New Roman]deny from all[/FONT]
[FONT=Times New Roman]</Limit>[/FONT]
[FONT=Times New Roman]AuthName www.xxxxxxxxxxx.com[/FONT]
[FONT=Times New Roman]AuthUserFile /xxxxxxxxx[/FONT]
[FONT=Times New Roman]AuthGroupFile /xxxxxxxxxxx[/FONT]
[FONT=Times New Roman]<Files 403.shtml>[/FONT]
[FONT=Times New Roman]order allow,deny[/FONT]
[FONT=Times New Roman]allow from all[/FONT]
[FONT=Times New Roman]</Files>[/FONT]
[FONT=Times New Roman]deny from xx.xxx.xxx.xx[/FONT]
[FONT=Times New Roman]deny from xx.xxx.xx.xxx[/FONT]
[FONT=Times New Roman]RewriteEngine on[/FONT]
[FONT=Times New Roman]RewriteCond %{HTTP_REFERER} !^http://xxxxxxxxxx.com/.*$ [NC][/FONT]
[FONT=Times New Roman]RewriteCond %{HTTP_REFERER} !^http://xxxxxxxxxx.com$ [NC][/FONT]
[FONT=Times New Roman]RewriteCond %{HTTP_REFERER} !^http://www.xxxxxxxxxx.com/.*$ [NC][/FONT]
[FONT=Times New Roman]RewriteCond %{HTTP_REFERER} !^http://www.xxxxxxxxxx.com$ [NC][/FONT]
[FONT=Times New Roman]RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC][/FONT]
[FONT=Times New Roman]deny from xxx.xxx.xx.xxx[/FONT]
[FONT=Times New Roman]deny from xxx.xxx.xxx.xx[/FONT]
My question is, how do I change this file so it has the correct code. Right now, renamed, it is inaccessible.
I noticed when I went back into my site files, another .htaccess file had been added, which I thought was empty yesterday.but now today has this code:
[FONT=Times New Roman]# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $[/FONT]
[FONT=Times New Roman]#[/FONT]
[FONT=Times New Roman]# This is used with Apache WebServers[/FONT]
[FONT=Times New Roman]#[/FONT]
[FONT=Times New Roman]# For this to work, you must include the parameter 'Options' to[/FONT]
[FONT=Times New Roman]# the AllowOverride configuration[/FONT]
[FONT=Times New Roman]#[/FONT]
[FONT=Times New Roman]# Example:[/FONT]
[FONT=Times New Roman]#[/FONT]
[FONT=Times New Roman]# <Directory "/usr/local/apache/htdocs">[/FONT]
[FONT=Times New Roman]# AllowOverride Options[/FONT]
[FONT=Times New Roman]# </Directory>[/FONT]
[FONT=Times New Roman]#[/FONT]
[FONT=Times New Roman]# 'All' with also work. (This configuration is in the[/FONT]
[FONT=Times New Roman]# apache/conf/httpd.conf file)[/FONT]
[FONT=Times New Roman]# The following makes adjustments to the SSL protocol for Internet[/FONT]
[FONT=Times New Roman]# Explorer browsers[/FONT]
[FONT=Times New Roman]<IfModule mod_setenvif.c>[/FONT]
[FONT=Times New Roman] <IfDefine SSL>[/FONT]
[FONT=Times New Roman] SetEnvIf User-Agent ".*MSIE.*" \[/FONT]
[FONT=Times New Roman] nokeepalive ssl-unclean-shutdown \[/FONT]
[FONT=Times New Roman] downgrade-1.0 force-response-1.0[/FONT]
[FONT=Times New Roman] </IfDefine>[/FONT]
[FONT=Times New Roman]</IfModule>[/FONT]
[FONT=Times New Roman]# Fix certain PHP values[/FONT]
[FONT=Times New Roman]#<IfModule mod_php4.c>[/FONT]
[FONT=Times New Roman]# php_value session.use_trans_sid 0[/FONT]
[FONT=Times New Roman]# php_value register_globals 1[/FONT]
[FONT=Times New Roman]#</IfModule>[/FONT]
[FONT=Times New Roman]# to turn off register_globals[/FONT]
[FONT=Times New Roman]# php_value register_globals 0[/FONT]
I had looked into the administration/.htaccess file to see the code. Then went to public_html/.htaccess to view it, and was asked if I wanted to overwrite it, I clicked skip, and when I viewed the file, it now has the same code as the admin. file.
My question: what do I do? Is the new .htaccess file code correct, or is the one first above correct, but needs some code changes. Hope this makes sense because it's all very confusing.
Thanks anyone.


but now today has this code:


