Change Time Zone with htaccess

In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code: or You can test date is change or not If htaccess can’t solve your problem, add this code to …

Continue reading

Copy a Directory to Another Server

I need a script to my directory to another servers. Firstly, i tried to download from my site and upload another site but it is not so fast. Because there is lots of files in that directory. I wrote a little php script for this. I hope you will enjoy.. P.S.: This code is only …

Continue reading

Iframe Virus jl.chura.pl Removal

Today i upload an index file to my web site and i saw an iframe that site. I am shocked. Because i never use any iframe. I enter another sites for checking. All web sites are iframed. In my explorer all web sites are virused. I checked my sites to my friends. They saw iframe …

Continue reading

htaccess Tips, Tricks and Guide

I like .htaccess file, when i need anything that file help me. I collect htaccess tips, tricks and guide list from PerishablePress. I hope you’ll be enjoy. Stupid htaccess Tricks Better Default Directory Views with HTAccess WordPress Feedburner HTAccess Redirect for Default (Non-Permalink) Feed URLs Redirecting Subdirectories to the Root Directory via HTAccess Redirect All …

Continue reading

Image Directory Security with htaccess

Some hackers or attackers try to upload script files in image upload files and they can see and change your files with that script. You can block this type file in that directories. You can forbidden type of files and close execution of CGI. .htaccess From: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16

Continue reading

Protect Image From Other Sites

Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image “This images can download in www.domain.com”. You have to add this codes to .htaccess Change domain with …

Continue reading

Php 5.2.9 Updated But Mysql Doesnt Work

I blogged Php 5.2.9 Upgrade. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql. To Upgrade Mysql and Php-Mysql tool And there one more thing, he was php4 and upgrade to …

Continue reading

Deny Directory Listing in .htaccess

Some webmasters upload a blank index.html for dont index directories. Thats a way of listing directories. But htaccess is more easier solution for this. Just add this code to your .htaccess file Allow directory index, remove the that code or change If you want to list files in directory, but except some of filetypes. Example …

Continue reading