Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Htacess block list
Htacess block list

5 Replies / 787 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


chemicalbrother
Reputation: 11.9 Add RepSubtract Rep
Local time: 10:01 AM

blank.gif

Rocket Noob
Rocket Noob

0.06 posts per day
Medals: 0

Joined: Mar 09, 2011
Last Visit: 11 Feb 2012
Posts: 27
Points: 4265 

Post Htacess block list Posted: Thu Aug 18, 2011 1:51 pm

Shop Purchases:
Battlefield 3 Xtreme Theme

Hi all,

Can anyone point me to, or post up a good HTAcess block list, I want to add one to my site. My other question is, they are notepad files I believe, what do i do with the actual file itself, do I upload it to my root web folder ?
 

 
View user's profileSend private message Reply with quote

chemicalbrother
Reputation: 11.9 Add RepSubtract Rep
Local time: 10:01 AM

blank.gif

Rocket Noob
Rocket Noob

0.06 posts per day
Medals: 0

Joined: Mar 09, 2011
Last Visit: 11 Feb 2012
Posts: 27
Points: 4265 

Post Re: Htacess block list Posted: Sat Aug 20, 2011 12:31 pm

Shop Purchases:
Battlefield 3 Xtreme Theme

*BUMP*

Can anyone help with this ?
 

 
View user's profileSend private message Reply with quote

chemicalbrother
Reputation: 11.9 Add RepSubtract Rep
Local time: 10:01 AM

blank.gif

Rocket Noob
Rocket Noob

0.06 posts per day
Medals: 0

Joined: Mar 09, 2011
Last Visit: 11 Feb 2012
Posts: 27
Points: 4265 

Post Re: Htacess block list Posted: Mon Aug 22, 2011 10:05 pm

Shop Purchases:
Battlefield 3 Xtreme Theme

Anyone ?
 

 
View user's profileSend private message Reply with quote


DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 5:01 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 26 May 2012
Posts: 2331
Points: 136116 

Post Re: Htacess block list Posted: Mon Aug 22, 2011 10:55 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

.htaccess files can differ from one site to another. I know like in the one I use on my site I have allot of stuff in there like if someone enteres in something wrong and they would normally get a 404 error, I did my own custom one and put the info for that into the .htaccess for it to go to that script I did rather then the standard page. I also have a few other things in there to help stop bots from visiting my site.

Yes, .htaccess files can be made and edited with notepad. When creating one, you need to create a basic .txt file. name it something like htaccess.txt

From there, you upload it to your site and with in the FTP, you can name it to .htaccess removing the .txt from the end and adding the period in front of the htaccess.

Below is a modified version of what I have which is originally based from what Evo came with. If your running RavenNuke with Nuke sentinel, then you may want to just look at what i have and strip out what you need and don't need. This should just give you a bit of an idea. I also removed all the banned IP's from my site because there are allot of them, (Over 800 I believe), and they are only banned from my site.

Code:
##########################################################################
# Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System              #
##########################################################################



# -------------------------------------------

# Comment this out if PHP is run as CGI

# -------------------------------------------

RewriteEngine on

# PHP_FLAG register_globals Off



# PHP_FLAG output_buffering On

# For security reasons, Option all cannot be overridden.

#Options All -Indexes



# -------------------------------------------

# Swap index.html index.php for html start page

# -------------------------------------------

DirectoryIndex index.html index.php

# -------------------------------------------

# Error Page Redirect

# -------------------------------------------

ErrorDocument 404 /404info.php

# For security reasons, Option followsymlinks cannot be overridden.

#Options +FollowSymlinks

<IfModule mod_rewrite.c>



# Use PHP5 Single php.ini as default

AddHandler application/x-httpd-php5s .php



# -------------------------------------------



# Security Rewrites

# RewriteCond %{THE_REQUEST} (\?act\=) [NC,OR]

RewriteCond %{THE_REQUEST} (sql_login) [NC,OR]

RewriteCond %{THE_REQUEST} (basepath) [OR]

RewriteCond %{THE_REQUEST} (libpath) [OR]

RewriteCond %{THE_REQUEST} (absolute_path) [OR]

RewriteCond %{THE_REQUEST} (vwar_root) [OR]

RewriteCond %{THE_REQUEST} (includedir) [OR]

RewriteCond %{THE_REQUEST} (file=http:\/\/) [OR]

RewriteCond %{THE_REQUEST} (name=http:\/\/) [OR]

RewriteCond %{THE_REQUEST} (phpbb_root_path)

RewriteRule ^.*$ http://127.0.0.1/ [R=301,L]

RewriteCond %{HTTP_USER_AGENT} EmailSiphon

RewriteRule .* - [F,L]

RewriteCond %{HTTP_USER_AGENT} Exabot

RewriteRule .* - [F,L]

RewriteCond %{HTTP_USER_AGENT} Twiceler

RewriteRule .* - [F,L]

RewriteCond %{HTTP_USER_AGENT} ^[Tt]wiceler

RewriteRule ^.* YourRudeRobotIsTresspassingMyCompter.txt [R=301,L]

# For security reasons, Option followsymlinks cannot be overridden.

#Options FollowSymLinks

RewriteBase /



# -------------------------------------------

# Lazy Google Tap

# -------------------------------------------



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)\.html$ /modules.php?name=$1&$2=$3&$4=$5&$6=$7&$8=$9 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)\.html#(.*)$ /modules.php?name=$1&$2=$3&$4=$5&$6=$7#$8 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)\.html$ /modules.php?name=$1&$2=$3&$4=$5&$6=$7 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)\.html#(.*)$ /modules.php?name=$1&$2=$3&$4=$5#$6 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)_-_(.*)_-_(.*)\.html$ /modules.php?name=$1&$2=$3&$4=$5 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)\.html#(.*)$ /modules.php?name=$1&$2=$3#$4 [L]



RewriteRule ^Evo-(.*)_-_(.*)_-_(.*)\.html$ /modules.php?name=$1&$2=$3 [L]



RewriteRule ^Evo-index.html#(.*)$ /index.php#$1 [L]



RewriteRule ^Evo-index.html$ /index.php [L]



RewriteRule ^Evo-(.*)\.html#(.*)$ /modules.php?name=$1#$2 [L]



RewriteRule ^Evo-(.*)\.html$ /modules.php?name=$1 [L]



RewriteCond %{HTTP_USER_AGENT} ^libwww-perl



RewriteRule ^.*$ http://127.0.0.1 [R,L]



RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9].[0-9]*



RewriteRule ^.*$ http://127.0.0.1 [R,L]



</IfModule>



# for hosts that don't allow the above, we won't give people anything to look at



<IfModule mod_autoindex.c>



 IndexIgnore *



</IfModule>



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



<Files .htaccess>

  deny from all

</Files>


<Files .staccess>

  deny from all

</Files>


# <Files admin.php>

#    <Limit GET POST PUT>

#      require valid-user

#    </Limit>

#    AuthName "Restricted"

#    AuthType Basic

#    AuthUserFile /.staccess

# </Files>



# -------------------------------------------

# Start of NukeSentinel(tm) DENY FROM area

# -------------------------------------------



# Disable .htaccess viewing from browser

<files ~ "^\.ht">

    Order allow,deny

    Deny from all

    Satisfy All

</files>


# Disable config.php viewing from browser

<files ~ "\config.php$">

    deny from all

</files>


# deny most common except .php/.html

<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$">

deny from all

</FilesMatch>



# -------------------------------------------

# Setup caching

# -------------------------------------------



<IfModule mod_expires.c>

ExpiresActive On

ExpiresDefault A0

# Set up caching on media files for 1 year (forever?)

<FilesMatch "\.(ico|flv|pdf|mov|mp3|wmv|ppt|swf)$">

  ExpiresDefault A29030400

  Header append Cache-Control "public"

</FilesMatch>

# Set up caching on media files for 1 week

<FilesMatch "\.(gif|jpg|jpeg|png|bmp)$">

ExpiresDefault A604800

Header append Cache-Control "public"

</FilesMatch>

# Set up 2 Hour caching on commonly updated files

<FilesMatch "\.(xml|txt|html|js|css)$">

  ExpiresDefault A7200

  Header append Cache-Control "private, proxy-revalidate, must-revalidate"

</FilesMatch>

</IfModule>



# -------------------------------------------

# Start of NukeSentinel(tm) DENY FROM area

# -------------------------------------------


Remember its only and example.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

chemicalbrother
Reputation: 11.9 Add RepSubtract Rep
Local time: 10:01 AM

blank.gif

Rocket Noob
Rocket Noob

0.06 posts per day
Medals: 0

Joined: Mar 09, 2011
Last Visit: 11 Feb 2012
Posts: 27
Points: 4265 

Post Re: Htacess block list Posted: Tue Aug 23, 2011 8:42 pm

Shop Purchases:
Battlefield 3 Xtreme Theme

Thanks very much. I`ll take a look at it tonight, once I have created my own .htaccess file, do I FTP it to the public_html folder or my servers root ?
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 5:01 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 26 May 2012
Posts: 2331
Points: 136116 

Post Re: Htacess block list Posted: Tue Aug 23, 2011 9:47 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

You would FTP it into your public_html folder which is the root of your site.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
5 Replies / 787 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum