Jump to content

Does PHP cause Server Overload.


ahzulfi

Recommended Posts

Hello,

i have make a script named ClipBucket, and it cause overload after i convert it to SEO friendly, i know its not the prefferable Category for this post but i think it also related with PHP atmost.

 

here is my .httacess code

 

<FilesMatch "\.(db|inc|html|tmpl|h|ihtml|sql|ini|configuration|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err|inc.php)$">

order allow,deny

satisfy all

</FilesMatch>

 

########## Begin - Rewrite rules to block out some common exploits

#                             

# Block out any script trying to set a mosConfig value through the URL

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

# Block out any script trying to base64_encode crap to send via URL

RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

# Block out any script that includes a <script> tag in URL

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

# Block out any script trying to set a PHP GLOBALS variable via URL

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

# Block out any script trying to modify a _REQUEST variable via URL

RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

# Send all blocked request to homepage with 403 Forbidden error!

RewriteRule ^(.*)$ index.php [F,L]

#

########## End - Rewrite rules to block out some common exploits

 

 

########## Begin - Rewrite rules For SEO urls ######################

rewriteEngine On

 

#

#

#

#URL Rewriting for Videos

RewriteRule ^videos videos.php [nc]

RewriteRule ^video/([a-zA-Z0-9].+)/(.*) watch_video.php?v=$1 [nc]

RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]

#

#

#

#Signup Login & Logout URL Rewriting

RewriteRule ^signup/ signup.php [nc]

RewriteRule ^login/success login_success.php [nc]

RewriteRule ^welcome/success signup_success.php [nc]

#

#

#

#Messeges

RewriteRule ^messege/sent sent.php [nc]

RewriteRule ^messege/inbox inbox.php [nc]

RewriteRule ^messege/compose compose.php [nc]

 

#

#

#

#Users, Channel & Management

#

RewriteRule ^members/ /channels.php [nc]

RewriteRule ^users/ /channels.php [nc]

RewriteRule ^channels/ /channels.php [nc]

#

RewriteRule ^user/ /channels.php [nc]

RewriteRule ^user/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]

RewriteRule ^channel/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]

RewriteRule ^user/contacts/([a-zA-Z0-9].+) user_contacts.php?user=$1 [nc]

RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]

RewriteRule ^user/favourites/([a-zA-Z0-9].+) user_fav_videos.php?user=$1 [nc]

#

RewriteRule ^myaccount myaccount.php [nc]

RewriteRule ^manage/videos/ manage_videos.php [nc]

RewriteRule ^manage/favourites/ manage_favourites.php [nc]

RewriteRule ^manage/contacts/ manage_contacts.php [nc]

RewriteRule ^manage/subscriptions/ manage_subscriptions.php [nc]

RewriteRule ^manage/account user_account.php [nc]

RewriteRule ^manage/video/edit edit_video.php [nc]

#

#

#

#Pages

RewriteRule ^pages/help help.php [nc]

RewriteRule ^pages/privacy privacy.php [nc]

RewriteRule ^pages/termsofuse termsofuse.php [nc]

RewriteRule ^pages/contactus contactus.php [nc]

RewriteRule ^pages/aboutus aboutus.php [nc]

RewriteRule ^pages/faqs faqs.php [nc]

#

#

#

#Miscellenous

RewriteRule ^subscriptions manage_subscriptions.php [nc]

RewriteRule ^search/result search_result.php [nc]

RewriteRule ^upload upload.php [nc]

 

#

#

#Group Section

RewriteRule ^group/leave/([a-zA-Z0-9].+) leave_group.php?url=$1 [nc]

RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]

RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]

RewriteRule ^manage/group/addvideos/([a-zA-Z0-9].+) add_group_videos.php?url=$1 [nc]

RewriteRule ^manage/group/members/([a-zA-Z0-9].+) manage_group_members.php?url=$1 [nc]

RewriteRule ^manage/group manage_groups.php

RewriteRule ^group/topic/([a-zA-Z0-9].+) view_topic.php?tid=$1 [nc]

RewriteRule ^group/view/([a-zA-Z0-9].+) view_group.php?url=$1 [nc]

RewriteRule ^group/videos/([a-zA-Z0-9].+) view_group_videos.php?url=$1 [nc]

RewriteRule ^group/members/([a-zA-Z0-9].+) view_group_members.php?url=$1 [nc]

RewriteRule ^group/invite/([a-zA-Z0-9].+) invite_group.php?url=$1 [nc]

RewriteRule ^manage/group/edit/([a-zA-Z0-9]) edit_group.php?url=$1 [nc]

RewriteRule ^group/create/ create_group.php [nc]

RewriteRule ^group/join/([a-zA-Z0-9].+) join_group.php?url=$1 [nc]

RewriteRule ^community groups.php [nc]

RewriteRule ^group/delete delete_group.php [nc]

 

########## End - Rewrite rules For SEO urls ######################

 

I have used some loops in 3 ~ 4 four pages maximum of 25 times and i dont think it can cause server overload.

so please tell me if the server load is caused by the above gived .httacess.

 

if not then what could be the possible reasons i mean, what are the common mistakes that make server overload.

 

Please advice.

 

Thanks

ArslanHassan

Link to comment
https://forums.phpfreaks.com/topic/96318-does-php-cause-server-overload/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.