Author |
Message |
ANTH
Regular


Joined: May 27, 2005
Posts: 62
|
Posted:
Sun Jun 11, 2006 6:14 am |
|
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]
|
|
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Jun 11, 2006 7:59 am |
|
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.  |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
ANTH

|
Posted:
Sun Jun 11, 2006 8:15 am |
|
Thanks montego I will try that  |
|
|
|
 |
ANTH

|
Posted:
Sun Jun 11, 2006 9:49 am |
|
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
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
montego

|
Posted:
Sun Jun 11, 2006 11:11 am |
|
Well, http://deltastriketeam.com/index/forums.html 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 ). 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

|
Posted:
Sun Jun 11, 2006 11:28 am |
|
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 ) ? '&' : '&' ) : '?' ) . $SID;
}
}
return($url);
}
function admin_sid($url, $non_html_amp = false)
|
|
|
|
|
 |
ANTH

|
Posted:
Sun Jun 11, 2006 7:38 pm |
|
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

|
Posted:
Sun Jun 11, 2006 9:01 pm |
|
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

|
Posted:
Mon Jun 12, 2006 5:51 am |
|
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.  |
|
|
|
 |
|