• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Professional Htaccess VB 4

Admin

Well-Known Member
Staff member
Administrator
Hi ,

Professional Htaccess For VBulletin 4 ,

Advantage :

Fix Xss Bug

Fix sql Injection

Protect From Htaccess

Not Run Bug In Forum

And ...

PHP:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
RewriteEngine On
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

<files ".htaccess"> order allow,deny deny from all </files>
<FilesMatch "\.(gif|jpg|png|swf|html|css|js|fla)$">     deny from all </FilesMatch>

<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow 
Deny from All 
Allow from env=REDIRECT_STATUS 
</FilesMatch>

RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

#proc/self/environ? no way!
RewriteCond %{QUERY_STRING} proc\/self\/environ [NC,OR]

<?php
// LFI Vulnerable Code
$redirect = $_GET[redirect];
include($redirect);
?>

RewriteEngine On


RewriteCond %{QUERY_STRING} act= [OR]
RewriteCond %{QUERY_STRING} sw= [OR]
RewriteCond %{QUERY_STRING} act [OR]
RewriteCond %{QUERY_STRING} sw [OR]
RewriteCond %{QUERY_STRING} 0x3a [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(;|<|>|�|�|\)|%0A|%0D|%22|%27|%3C|%3E|).*(/\*|union|concat).* [NC]
RewriteRule .* - [L,F]

# Prevent use of specified methods in HTTP Request 
RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC,OR] 
# Block out use of illegal or unsafe characters in the HTTP Request 
RewriteCond %{THE_REQUEST} ^.*(\\r|\\n|%0A|%0D).* [NC,OR] 
# Block out use of illegal or unsafe characters in the Referer Variable of the HTTP Request 
RewriteCond %{HTTP_REFERER} ^(.*)(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR] 
# Block out use of illegal or unsafe characters in any cookie associated with the HTTP Request 
RewriteCond %{HTTP_COOKIE} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR] 
# Block out use of illegal characters in URI or use of malformed URI 
RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|">|"<|/|\\\.\.\\).{0,9999}.* [NC,OR] 
# Block out  use of empty User Agent Strings
# NOTE - disable this rule if your site is integrated with Payment Gateways such as PayPal 
RewriteCond %{HTTP_USER_AGENT} ^$ [OR] 
# Block out  use of illegal or unsafe characters in the User Agent variable 
RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR] 
# Measures to block out  SQL injection attacks 
RewriteCond %{QUERY_STRING} ^.*(;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR] 
# Block out  reference to localhost/loopback/127.0.0.1 in the Query String 
RewriteCond %{QUERY_STRING} ^.*(localhost|loopback|127\.0\.0\.1).* [NC,OR] 
# Block out  use of illegal or unsafe characters in the Query String variable 
RewriteCond %{QUERY_STRING} ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC]
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
H Phần mềm PC SEO PowerSuite Professional License key bản quyền giá rẻ Phần mềm 1
C Email Extractor Professional Edition v7.3.3.4 Tut, tool, mmo 0
C Invicti Professional v22.11.0 Tut, tool, mmo 0
C Emurasoft EmEditor Professional 22.0.1 (x64-x86) Multilingual Tut, tool, mmo 0
C MobaXterm Professional Edition v21.4.0.4786 Full Activated Tut, tool, mmo 0
C Invicti Professional Edition v6.7.0.37625 Full Activated Tut, tool, mmo 0
P Phần mềm PC CodeLobsterIDE Professional v1.6.1 Phần mềm 0
dammechiase Share key Office 2016 Professional Plus mới nhất Phần mềm 0
P Phần mềm PC AOMEI Partition Assistant Professional 6.3.0 Multilingual - Quản lý phân vùng ổ cứng Phần mềm 0
P Phần mềm PC Microsoft Office 2016 Professional Plus Retail nguyên gốc MSDN Phần mềm 0
P Phần mềm PC Windows 7 Professional With Sp1 VL x86 - Tích hợp gói cập nhật tháng 5 năm 2016 (Convenience Rollup) Hệ điều hành 0
P Phần mềm PC Able2Extract Professional 10.0.6.0 Final - Chuyển đổi PDF sang Word, Excel và PPT Phần mềm 0
P Phần mềm PC Windows 7 Professional With Sp1 VL x86, x64 - Nguyên gốc MSDN Hệ điều hành 0
P Windows 7 Professional With Sp1 VL x64 - Tích hợp gói cập nhật tháng 5 năm 2016 (Convenience Rollup) Hệ điều hành 0
congtukinhloai Ghost Windows 10 Professional x64 Halloween (All Main, Auto activated) Hệ điều hành 0
congtukinhloai Bản Ghost Win7 Professional SP1 32 bit_ Version2 Hệ điều hành 0
Admin Phần mềm PC bản quyền phần mềm CCleaner Professional v5.04.5151 mới nhất Phần mềm 3
I Windows 7 Home Premium/ Professional/ Ultimate With SP1 ISO - Official Download Link Phần mềm 0
Admin Miễn phí bản quyền EASEUS Todo Backup Professional Phần mềm 0
Admin BurnAware Professional v6.1 Portable Phần mềm 0
Admin Passware Kit Professional v12.3.6332 Portable Phần mềm 1
S Miễn phí bản quyền O&O Defrag Professional 15.8 Tin tức CNTT 0
N Share Clean and Professional HTML Template All Shared Scripts 0
Admin Professional WordPress Plugin Development Wordpress 0
Admin FastPictureViewer Professional 1.8.246 Final Thiết kế đồ họa 0
Admin Share bộ rank forum đẹp + professional forum ranks + PSD All Shared Scripts 0
Admin Key Microsoft Office Professional Plus 2013 Preview Phần mềm 0
Admin CCleaner 3.22.1800 Professional Portable Phần mềm 0
Admin Key Microsoft Office Professional Plus 2013 Preview Máy tính 0
Admin Cách Reg key: Microsoft Office Professional Plus 2013 Preview Sử dụng, chia sẻ, hỏi đáp 0
Admin Phần mềm PC Mediafire CuteFTP 8 Professional (Download + Crack Free + sài ngon) Phần mềm 0
X Windows XP Professional SP3 2011 v11.01 + key bản quyền Phần mềm 0
Admin Professional Forum Ranks + PSD's Thiết kế đồ họa 0
Admin Redirection Script for phpBB 3.2/3.3+ (without SEO URLs) htaccess Xenforo 0
H Help File .htaccess vbb bị lỗi Vbulletin 5
yoona Help Cần hướng dẫn fix lỗi rule .htaccess Chuyên đề htaccess 5
L Xin giúp em về convert htaccess sang Nginx VPS & Dedicated Server 2
C Bảo mật 1 chút với .htaccess vs chmod Chuyên đề htaccess 0
Admin Share code .htaccess chống IP truy cập từ nước ngoài đơn giản, ngắn gọn và hiệu quả Chuyên đề htaccess 1
Myshare Share Một vài code chuyển domain bằng .htaccess All Shared Scripts 0
Myshare Hướng dẫn Một số công dụng hữu ích của file .htaccess All Shared Scripts 0
C Rắc rối file .htaccess và code john giống gmvn Johncms 4
Admin Hướng dẫn tạo subdomain ảo với .htaccess Chuyên đề htaccess 6
Admin Hướng dẫn bảo mật wordpress với .htaccess Khác 0
Admin Sử dụng file .htaccess để tối ưu và bảo mật website Chuyên đề htaccess 1
Myshare Share Bảo mật chống hack wap upload bằng file .htaccess Chuyên đề htaccess 0
Myshare Share giữ kết qủa tìm kiếm cho wapsite khi thay đổi tên miền bằng htaccess 301 Redirect Hỏi đáp về domain & hosting 0
Myshare Share Chuyển hướng từ tên miền cũ sang tên mới bằng htaccess Hỏi đáp về domain & hosting 0
G Hỏi Sửa file .htaccess Bảo mật 3
Admin Cấu hình file .htaccess để thêm addon domain Chuyên đề htaccess 0

Similar threads

New posts New threads New resources

Back
Top