Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
ANTH
Regular
Regular



Joined: May 27, 2005
Posts: 62

PostPosted: Sun Jun 11, 2006 6:14 am Reply with quote

Code:
Options All -Indexes

DirectoryIndex index.php index.htm index.html

RewriteEngine on

  RewriteRule  signature\.gif /signature.php



# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .staccess>
  deny from all
</Files>

<Files admin.php>
   <Limit GET POST PUT>
      require valid-user
   </Limit>
   AuthName "Restricted"
   AuthType Basic
   AuthUserFile /home/xxxxxx/xxxxxx/xxxxx/.staccess
</Files>

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------



deny from xx.xxx.xxx.131
deny from xx.xx.xx.137
deny from xx.xxx.xxx.140
deny from xx.xxx.xxx.190
deny from xxx.xx.xx.142


can anyone tell me how I would put this bit of code to my above ht access I dont wanna mess sentinal up by adding google tap

Code:
# $Author: zx $ 

# $Date: 2003/08/17 14:03:21 $

# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$">
deny from all
</FilesMatch>

<Limit GET PUT POST>
  Order Allow,Deny
  Allow from all
</Limit>

RewriteEngine on

#The next lines check for Email Spammers Robots and redirect them to a fake page
RewriteCond %{HTTP_USER_AGENT} ^Alexibot                [OR]
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Jun 11, 2006 7:59 am Reply with quote

First of all, you really only need the rewrite statements for the URLs. I don't think you have to bother with the email spammer robots, etc. Place them between your "Rewrite Engine On" statement and the start of this:

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------

You also do not really need the additional denies towards the top of the GT .htaccess sample.

At least with RavenNuke76, we are going to be providing short URLs and we are NOT going to be adding those. Wink

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
ANTH







PostPosted: Sun Jun 11, 2006 8:15 am Reply with quote

Thanks montego I will try that Smile
 
ANTH







PostPosted: Sun Jun 11, 2006 9:49 am Reply with quote

Well I finished and updated to 0.4a think its worked could you have a little look see to check ive done it right?

Mine looks different to this sites for example

http://deltastriketeam.com/index/modules.php?name=Forums

http://www.ravenphpscripts.com/forums.html

http://deltastriketeam.com/index/forum-1.html?sid=7661409c2744e944ab4645167895182c

http://www.ravenphpscripts.com/forum96.html
 
montego







PostPosted: Sun Jun 11, 2006 11:11 am Reply with quote

Well, [ Only registered users can see links on this board! Get registered or login! ] works just fine, so not sure why you think it is the modules.php... link.

I can see that you may have some mods to the forums that are not "tapped". You would need to add these to your urlin/urlout statements in GT-Forums.php as well as in your .htaccess forums section.

Other than that, they seem to be working, although I did not review your entire site. (That is for YOU to do Wink ). The only thing that was a bit odd is the appended sid string. Had you made the changes to include/sessions.php? I don't think they are necessary, but am curious.
 
ANTH







PostPosted: Sun Jun 11, 2006 11:28 am Reply with quote

good thanks for checking, well I this is why I was unsure If I did it right because of that massive sid string.

But to answer your question yes I did edit the includes/sessions

Code:
   } else {

           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "forums.html?file=".$url; //Change to Nuke format
   }

            if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot()  )
        {
            if ( !empty($SID) && !eregi('sid=', $url) )        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&amp;' ) : '?' ) . $SID;
            }
        }
        return($url);
}
function admin_sid($url, $non_html_amp = false)
 
ANTH







PostPosted: Sun Jun 11, 2006 7:38 pm Reply with quote

montego wrote:

I can see that you may have some mods to the forums that are not "tapped". You would need to add these to your urlin/urlout statements in GT-Forums.php as well as in your .htaccess forums section.


Do I have to do that or just if I want to?


Is there a way to get rid of that sid?
 
montego







PostPosted: Sun Jun 11, 2006 9:01 pm Reply with quote

Just if you want to.

Regarding the sid, I don't believe the search engines will get that if the "bot" list in sessions.php edits you made is complete.
 
ANTH







PostPosted: Mon Jun 12, 2006 5:51 am Reply with quote

cool thanks I will ask round to see if anyone knows how to get that sid away and post it here if I find an answer, but thankyou for your help montego im finally googletapped. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©