PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

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: 7452
Location: Arizona

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

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
View user's profile Send private message Visit poster's website
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

Thanks montego I will try that Smile
View user's profile Send private message
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

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 to the forums!


Only registered users can see links on this board!
Get registered or login to the forums!


Only registered users can see links on this board!
Get registered or login to the forums!


Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
montego
Site Admin


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

PostPosted: Sun Jun 11, 2006 11:11 am Reply with quote Back to top

Well,
Only registered users can see links on this board!
Get registered or login to the forums!
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.
View user's profile Send private message Visit poster's website
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

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)
View user's profile Send private message
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

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?
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
ANTH
Regular
Regular


Joined: May 27, 2005
Posts: 62

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

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum