<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster Sucks &#187; htaccess</title>
	<atom:link href="http://www.webmastersucks.com/tags/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Mon, 13 Jun 2011 06:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change Time Zone with htaccess</title>
		<link>http://www.webmastersucks.com/change-time-zone-with-htaccess/</link>
		<comments>http://www.webmastersucks.com/change-time-zone-with-htaccess/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[change time zone]]></category>
		<category><![CDATA[change timezone]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[time zone]]></category>
		<category><![CDATA[time zone php]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[timezone htaccess]]></category>
		<category><![CDATA[timezone php]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=243</guid>
		<description><![CDATA[
			
				
			
		
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:
php_value date.timezone &#34;Europe/Istanbul&#34;
or
php_value date.timezone &#34;America/Chicago&#34;
You can test date is change or not

&#60;?php
 echo date('d-m-Y H:i:s');
?&#62;
If htaccess can't solve your problem, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-time-zone-with-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-time-zone-with-htaccess%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>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:</p>
<pre class="brush: plain; title: ;">php_value date.timezone &quot;Europe/Istanbul&quot;</pre>
<p>or</p>
<pre class="brush: plain; title: ;">php_value date.timezone &quot;America/Chicago&quot;</pre>
<p>You can test date is change or not</p>
<pre class="brush: php; title: ;">
&lt;?php
 echo date('d-m-Y H:i:s');
?&gt;</pre>
<pre>If htaccess can't solve your problem, add this code to your php
<pre class="brush: php; title: ;">
&lt;?php
putenv(&quot;TZ=Europe/Istanbul&quot;);
?&gt;</pre>
<p><strong>Full List of Time Zone</strong><br />
AD Europe/Andorra<br />
AE Asia/Dubai<br />
AF Asia/Kabul<br />
AG America/Antigua<br />
AI America/Anguilla<br />
AL Europe/Tirane<br />
AM Asia/Yerevan<br />
AN America/Curacao<br />
AO Africa/Luanda<br />
AQ Antarctica/McMurdo<br />
AQ Antarctica/South_Pole<br />
AQ Antarctica/Palmer<br />
AQ Antarctica/Mawson<br />
AQ Antarctica/Davis<br />
AQ Antarctica/Casey<br />
AQ Antarctica/DumontDUrville<br />
AR America/Buenos_Aires<br />
AR America/Rosario<br />
AR America/Cordoba<br />
AR America/Jujuy<br />
AR America/Catamarca<br />
AR America/Mendoza<br />
AS Pacific/Pago_Pago<br />
AT Europe/Vienna<br />
AU Australia/Lord_Howe<br />
AU Australia/Hobart<br />
AU Australia/Melbourne<br />
AU Australia/Sydney<br />
AU Australia/Broken_Hill<br />
AU Australia/Brisbane<br />
AU Australia/Lindeman<br />
AU Australia/Adelaide<br />
AU Australia/Darwin<br />
AU Australia/Perth<br />
AW America/Aruba<br />
AZ Asia/Baku<br />
BA Europe/Sarajevo<br />
BB America/Barbados<br />
BD Asia/Dacca<br />
BE Europe/Brussels<br />
BF Africa/Ouagadougou<br />
BG Europe/Sofia<br />
BH Asia/Bahrain<br />
BI Africa/Bujumbura<br />
BJ Africa/Porto-Novo<br />
BM Atlantic/Bermuda<br />
BN Asia/Brunei<br />
BO America/La_Paz<br />
BR America/Noronha<br />
BR America/Belem<br />
BR America/Fortaleza<br />
BR America/Araguaina<br />
BR America/Maceio<br />
BR America/Sao_Paulo<br />
BR America/Cuiaba<br />
BR America/Porto_Velho<br />
BR America/Manaus<br />
BR America/Porto_Acre<br />
BS America/Nassau<br />
BT Asia/Thimbu<br />
BW Africa/Gaborone<br />
BY Europe/Minsk<br />
BZ America/Belize<br />
CA America/St_Johns<br />
CA America/Halifax<br />
CA America/Glace_Bay<br />
CA America/Goose_Bay<br />
CA America/Pangnirtung<br />
CA America/Montreal<br />
CA America/Nipigon<br />
CA America/Thunder_Bay<br />
CA America/Iqaluit<br />
CA America/Winnipeg<br />
CA America/Rainy_River<br />
CA America/Rankin_Inlet<br />
CA America/Regina<br />
CA America/Swift_Current<br />
CA America/Edmonton<br />
CA America/Yellowknife<br />
CA America/Inuvik<br />
CA America/Dawson_Creek<br />
CA America/Vancouver<br />
CA America/Whitehorse<br />
CA America/Dawson<br />
CC Indian/Cocos<br />
CD Africa/Kinshasa<br />
CD Africa/Lubumbashi<br />
CF Africa/Bangui<br />
CG Africa/Brazzaville<br />
CH Europe/Zurich<br />
CI Africa/Abidjan<br />
CK Pacific/Rarotonga<br />
CL America/Santiago<br />
CL Pacific/Easter<br />
CM Africa/Douala<br />
CN Asia/Harbin<br />
CN Asia/Shanghai<br />
CN Asia/Hong_Kong<br />
CN Asia/Chungking<br />
CN Asia/Urumqi<br />
CN Asia/Kashgar<br />
CO America/Bogota<br />
CR America/Costa_Rica<br />
CU America/Havana<br />
CV Atlantic/Cape_Verde<br />
CX Indian/Christmas<br />
CY Asia/Nicosia<br />
CZ Europe/Prague<br />
DE Europe/Berlin<br />
DJ Africa/Djibouti<br />
DK Europe/Copenhagen<br />
DM America/Dominica<br />
DO America/Santo_Domingo<br />
DZ Africa/Algiers<br />
EC America/Guayaquil<br />
EC Pacific/Galapagos<br />
EE Europe/Tallinn<br />
EG Africa/Cairo<br />
EH Africa/El_Aaiun<br />
ER Africa/Asmera<br />
ES Europe/Madrid<br />
ES Africa/Ceuta<br />
ES Atlantic/Canary<br />
ET Africa/Addis_Ababa<br />
FI Europe/Helsinki<br />
FJ Pacific/Fiji<br />
FK Atlantic/Stanley<br />
FM Pacific/Yap<br />
FM Pacific/Truk<br />
FM Pacific/Ponape<br />
FM Pacific/Kosrae<br />
FO Atlantic/Faeroe<br />
FR Europe/Paris<br />
GA Africa/Libreville<br />
GB Europe/London<br />
GB Europe/Belfast<br />
GD America/Grenada<br />
GE Asia/Tbilisi<br />
GF America/Cayenne<br />
GH Africa/Accra<br />
GI Europe/Gibraltar<br />
GL America/Scoresbysund<br />
GL America/Godthab<br />
GL America/Thule<br />
GM Africa/Banjul<br />
GN Africa/Conakry<br />
GP America/Guadeloupe<br />
GQ Africa/Malabo<br />
GR Europe/Athens<br />
GS Atlantic/South_Georgia<br />
GT America/Guatemala<br />
GU Pacific/Guam<br />
GW Africa/Bissau<br />
GY America/Guyana<br />
HN America/Tegucigalpa<br />
HR Europe/Zagreb<br />
HT America/Port-au-Prince<br />
HU Europe/Budapest<br />
ID Asia/Jakarta<br />
ID Asia/Ujung_Pandang<br />
ID Asia/Jayapura<br />
IE Europe/Dublin<br />
IL Asia/Jerusalem<br />
IN Asia/Calcutta<br />
IO Indian/Chagos<br />
IQ Asia/Baghdad<br />
IR Asia/Tehran<br />
IS Atlantic/Reykjavik<br />
IT Europe/Rome<br />
JM America/Jamaica<br />
JO Asia/Amman<br />
JP Asia/Tokyo<br />
KE Africa/Nairobi<br />
KG Asia/Bishkek<br />
KH Asia/Phnom_Penh<br />
KI Pacific/Tarawa<br />
KI Pacific/Enderbury<br />
KI Pacific/Kiritimati<br />
KM Indian/Comoro<br />
KN America/St_Kitts<br />
KP Asia/Pyongyang<br />
KR Asia/Seoul<br />
KW Asia/Kuwait<br />
KY America/Cayman<br />
KZ Asia/Almaty<br />
KZ Asia/Aqtobe<br />
KZ Asia/Aqtau<br />
LA Asia/Vientiane<br />
LB Asia/Beirut<br />
LC America/St_Lucia<br />
LI Europe/Vaduz<br />
LK Asia/Colombo<br />
LR Africa/Monrovia<br />
LS Africa/Maseru<br />
LT Europe/Vilnius<br />
LU Europe/Luxembourg<br />
LV Europe/Riga<br />
LY Africa/Tripoli<br />
MA Africa/Casablanca<br />
MC Europe/Monaco<br />
MD Europe/Chisinau<br />
MG Indian/Antananarivo<br />
MH Pacific/Majuro<br />
MH Pacific/Kwajalein<br />
MK Europe/Skopje<br />
ML Africa/Bamako<br />
ML Africa/Timbuktu<br />
MM Asia/Rangoon<br />
MN Asia/Ulan_Bator<br />
MO Asia/Macao<br />
MP Pacific/Saipan<br />
MQ America/Martinique<br />
MR Africa/Nouakchott<br />
MS America/Montserrat<br />
MT Europe/Malta<br />
MU Indian/Mauritius<br />
MV Indian/Maldives<br />
MW Africa/Blantyre<br />
MX America/Cancun<br />
MX America/Mexico_City<br />
MX America/Mazatlan<br />
MX America/Chihuahua<br />
MX America/Ensenada<br />
MX America/Tijuana<br />
MY Asia/Kuala_Lumpur<br />
MY Asia/Kuching<br />
MZ Africa/Maputo<br />
NA Africa/Windhoek<br />
NC Pacific/Noumea<br />
NE Africa/Niamey<br />
NF Pacific/Norfolk<br />
NG Africa/Lagos<br />
NI America/Managua<br />
NL Europe/Amsterdam<br />
NO Europe/Oslo<br />
NP Asia/Katmandu<br />
NR Pacific/Nauru<br />
NU Pacific/Niue<br />
NZ Pacific/Auckland<br />
NZ Pacific/Chatham<br />
OM Asia/Muscat<br />
PA America/Panama<br />
PE America/Lima<br />
PF Pacific/Tahiti<br />
PF Pacific/Marquesas<br />
PF Pacific/Gambier<br />
PG Pacific/Port_Moresby<br />
PH Asia/Manila<br />
PK Asia/Karachi<br />
PL Europe/Warsaw<br />
PM America/Miquelon<br />
PN Pacific/Pitcairn<br />
PR America/Puerto_Rico<br />
PS Asia/Gaza<br />
PT Europe/Lisbon<br />
PT Atlantic/Madeira<br />
PT Atlantic/Azores<br />
PW Pacific/Palau<br />
PY America/Asuncion<br />
QA Asia/Qatar<br />
RE Indian/Reunion<br />
RO Europe/Bucharest<br />
RU Europe/Kaliningrad<br />
RU Europe/Moscow<br />
RU Europe/Samara<br />
RU Asia/Yekaterinburg<br />
RU Asia/Omsk<br />
RU Asia/Novosibirsk<br />
RU Asia/Krasnoyarsk<br />
RU Asia/Irkutsk<br />
RU Asia/Yakutsk<br />
RU Asia/Vladivostok<br />
RU Asia/Magadan<br />
RU Asia/Kamchatka<br />
RU Asia/Anadyr<br />
RW Africa/Kigali<br />
SA Asia/Riyadh<br />
SB Pacific/Guadalcanal<br />
SC Indian/Mahe<br />
SD Africa/Khartoum<br />
SE Europe/Stockholm<br />
SG Asia/Singapore<br />
SH Atlantic/St_Helena<br />
SI Europe/Ljubljana<br />
SJ Arctic/Longyearbyen<br />
SJ Atlantic/Jan_Mayen<br />
SK Europe/Bratislava<br />
SL Africa/Freetown<br />
SM Europe/San_Marino<br />
SN Africa/Dakar<br />
SO Africa/Mogadishu<br />
SR America/Paramaribo<br />
ST Africa/Sao_Tome<br />
SV America/El_Salvador<br />
SY Asia/Damascus<br />
SZ Africa/Mbabane<br />
TC America/Grand_Turk<br />
TD Africa/Ndjamena<br />
TF Indian/Kerguelen<br />
TG Africa/Lome<br />
TH Asia/Bangkok<br />
TJ Asia/Dushanbe<br />
TK Pacific/Fakaofo<br />
TM Asia/Ashkhabad<br />
TN Africa/Tunis<br />
TO Pacific/Tongatapu<br />
TR Europe/Istanbul<br />
TT America/Port_of_Spain<br />
TV Pacific/Funafuti<br />
TW Asia/Taipei<br />
TZ Africa/Dar_es_Salaam<br />
UA Europe/Kiev<br />
UA Europe/Simferopol<br />
UG Africa/Kampala<br />
UM Pacific/Johnston<br />
UM Pacific/Midway<br />
UM Pacific/Wake<br />
US America/New_York<br />
US America/Detroit<br />
US America/Louisville<br />
US America/Indianapolis<br />
US America/Indiana/Marengo<br />
US America/Indiana/Knox<br />
US America/Indiana/Vevay<br />
US America/Chicago<br />
US America/Menominee<br />
US America/Denver<br />
US America/Boise<br />
US America/Shiprock<br />
US America/Phoenix<br />
US America/Los_Angeles<br />
US America/Anchorage<br />
US America/Juneau<br />
US America/Yakutat<br />
US America/Nome<br />
US America/Adak<br />
US Pacific/Honolulu<br />
UY America/Montevideo<br />
UZ Asia/Samarkand<br />
UZ Asia/Tashkent<br />
VA Europe/Vatican<br />
VC America/St_Vincent<br />
VE America/Caracas<br />
VG America/Tortola<br />
VI America/St_Thomas<br />
VN Asia/Saigon<br />
VU Pacific/Efate<br />
WF Pacific/Wallis<br />
WS Pacific/Apia<br />
YE Asia/Aden<br />
YT Indian/Mayotte<br />
YU Europe/Belgrade<br />
ZA Africa/Johannesburg<br />
ZM Africa/Lusaka<br />
ZW Africa/Harare</p>
<p>Source : <a href="http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html" target="_blank">http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html</a></pre>
<p><span style="font-family: Georgia; font-size: small;"><span style="line-height: 19px; white-space: normal;"> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/change-time-zone-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>htaccess Tips, Tricks and Guide</title>
		<link>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/</link>
		<comments>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[default directory htaccess]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htaccess guide]]></category>
		<category><![CDATA[htaccess tips]]></category>
		<category><![CDATA[htaccess tricks]]></category>
		<category><![CDATA[redirecting subdirectories]]></category>
		<category><![CDATA[security htaccess]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=187</guid>
		<description><![CDATA[
			
				
			
		
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&#8217;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 Requests for a Nonexistent File [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhtaccess-tips-tricks-and-guide%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhtaccess-tips-tricks-and-guide%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I like .htaccess file, when i need anything that file help me. I collect htaccess tips, tricks and guide list from <a href="http://perishablepress.com" target="_blank">PerishablePress</a>. I hope you&#8217;ll be enjoy.</p>
<ul>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/">Stupid htaccess Tricks</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/11/02/better-default-directory-views-with-htaccess/">Better Default Directory Views with HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/10/13/wordpress-feedburner-htaccess-redirect-default-feeds/">WordPress Feedburner HTAccess Redirect for Default (Non-Permalink) Feed URLs</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/10/06/redirect-subdirectory-to-root-via-htaccess/">Redirecting Subdirectories to the Root Directory via HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/08/12/redirect-all-requests-for-a-nonexistent-file-to-the-actual-file/">Redirect All Requests for a Nonexistent File to the Actual File</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/06/17/perishable-press-htaccess-spring-cleaning-part-2/">Perishable Press HTAccess Spring Cleaning, Part 2</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/05/20/perishable-press-htaccess-spring-cleaning-part-1/">Perishable Press HTAccess Spring Cleaning, Part 1</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/05/20/improve-site-security-by-protecting-htaccess-files/">Improve Site Security by Protecting HTAccess Files</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/12/31/redirect-all-broken-links-from-any-domain-via-htaccess/">Redirect All (Broken) Links from any Domain via HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2009/05/11/htaccess-spring-cleaning/">HTAccess Spring Cleaning 2009</a></li>
</ul>
<p><a href="http://perishablepress.com/press/search/htaccess/" target="_blank">For all search result &gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Directory Security with htaccess</title>
		<link>http://www.webmastersucks.com/image-directory-security-with-htaccess/</link>
		<comments>http://www.webmastersucks.com/image-directory-security-with-htaccess/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 16:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[close cgi]]></category>
		<category><![CDATA[close execution]]></category>
		<category><![CDATA[directory forbidden]]></category>
		<category><![CDATA[forbidden cgi]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image directory]]></category>
		<category><![CDATA[image directory security]]></category>
		<category><![CDATA[uploaded file security]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=179</guid>
		<description><![CDATA[
			
				
			
		
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


# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fimage-directory-security-with-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fimage-directory-security-with-htaccess%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-full wp-image-180" title="Image Directory" src="http://www.webmastersucks.com/uploads/image-directory.jpg" alt="Image Directory" width="80" height="100" />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.</p>
<p><strong>.htaccess<br />
</strong></p>
<pre class="brush: plain; title: ;">
# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi .aspx
Options -ExecCGI
</pre>
<p>From: <a href="http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16">http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/image-directory-security-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Watermark All Uploaded Images in Wordpress</title>
		<link>http://www.webmastersucks.com/watermark-all-uploaded-images-in-wordpress/</link>
		<comments>http://www.webmastersucks.com/watermark-all-uploaded-images-in-wordpress/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 21:39:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[download watermark php]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[watermark]]></category>
		<category><![CDATA[watermark images]]></category>
		<category><![CDATA[watermark images php]]></category>
		<category><![CDATA[watermark images wordpress]]></category>
		<category><![CDATA[watermark wordpress]]></category>
		<category><![CDATA[watermarking]]></category>
		<category><![CDATA[wordpress watermark plugin]]></category>
		<category><![CDATA[wp glamour]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=171</guid>
		<description><![CDATA[
			
				
			
		
I need a code for watermarked all uploaded images in wordpress. I google it, and i find a solution in WP Glamour. You only add this codes and all of your upload images are watermarked. This very easy solution for watermark your images. Because if you try to add watermark with PhotoShop or another image [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fwatermark-all-uploaded-images-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fwatermark-all-uploaded-images-in-wordpress%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-full wp-image-177" title="Water Mark" src="http://www.webmastersucks.com/uploads/water-mark.jpg" alt="Water Mark" width="268" height="123" />I need a code for watermarked all uploaded images in wordpress. I google it, and i find a solution in <a href="http://wpglamour.com/how-to-watermark-all-your-uploaded-images/" target="_blank">WP Glamour</a>. You only add this codes and all of your upload images are watermarked. This very easy solution for watermark your images. Because if you try to add watermark with PhotoShop or another image program, it will be so hard for you.</p>
<p>Firstly create a file with name &#8220;watermark.php&#8221;, after you will add a rule to .htaccess file.</p>
<p><strong>watermark.php</strong></p>
<pre class="brush: php; title: ;">

&lt;?
$src = $_GET['src'];

header('Content-type: image/jpeg');

//this will prevent the watermark from showing up in the thumbnail images
if (eregi(&quot;150x150&quot;, $src)) {
 $watermark = imagecreatefrompng('empty.png');
} else {
 $watermark = imagecreatefrompng('watermark.png');
}
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
if(eregi('.gif',$src)) {
$image = imagecreatefromgif($src);
}
elseif(eregi('.jpeg',$src)||eregi('.jpg',$src)) {
$image = imagecreatefromjpeg($src);
}
elseif(eregi('.png',$src)) {
$image = imagecreatefrompng($src);
}
else {
exit(&quot;Your image is not a gif, jpeg or png image. Sorry.&quot;);
}
$size = getimagesize($src);
$dest_x = $size[0] - $watermark_width - 0;
$dest_y = $size[1] - $watermark_height - 0;
imagecolortransparent($watermark,imagecolorat($watermark,0,0));
imagecopyresampled($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $watermark_width, $watermark_height);

imagejpeg($image, &quot;&quot;, 95);
imagedestroy($image);
imagedestroy($watermark);
?&gt;</pre>
<p><strong>.htaccess file</strong></p>
<pre class="brush: plain; title: ;">RewriteRule ^(.*)wp-content/uploads/(.*) $1watermark.php?src=wp-content/uploads/$2</pre>
<p><a href="http://wpglamour.com/download/Watermark.zip" target="_blank">Download Source Codes &gt;</a></p>
<p><a href="http://wpglamour.com/how-to-watermark-all-your-uploaded-images/" target="_blank">Full description of script &gt;</a></p>
<p><a href="http://www.wp-watermark.com/" target="_blank">Wordpress Watermark Plugin &gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/watermark-all-uploaded-images-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect Image From Other Sites</title>
		<link>http://www.webmastersucks.com/protect-image-from-other-sites/</link>
		<comments>http://www.webmastersucks.com/protect-image-from-other-sites/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 21:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hot link]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image protection]]></category>
		<category><![CDATA[protect image]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=154</guid>
		<description><![CDATA[
			
				
			
		
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 &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to .htaccess
Change domain with your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>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 &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to <strong>.htaccess</strong></p>
<p>Change domain with your domain name and sucks.jpe is your image to show</p>
<pre class="brush: plain; title: ;">
&lt;IfModule mod_rewrite.c&gt;
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
 RewriteRule .*\.(gif|jpg)$ http://www.domain.com/sucks.jpe [R,NC,L]
&lt;/ifModule&gt;
</pre>
<p>If you want to serve a standard 403 forbidden error page</p>
<pre class="brush: plain; title: ;">RewriteRule .*\.(gif|jpg)$ - [F,L]</pre>
<p>If you want to add your friends sites to allow link</p>
<pre class="brush: plain; title: ;">RewriteCond %{HTTP_REFERER} !^http://(www\.)?myfriend\.com/.*$ [NC]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/protect-image-from-other-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deny Directory Listing in .htaccess</title>
		<link>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/</link>
		<comments>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:25:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[deny directory]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[directoryindex]]></category>
		<category><![CDATA[disable directory]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=108</guid>
		<description><![CDATA[
			
				
			
		
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
Options -Indexes
Allow directory index, remove the that code or change
Options +Indexes
If you want to list files in directory, but except some of filetypes. Example [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fdeny-directory-listing-in-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fdeny-directory-listing-in-htaccess%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>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</p>
<pre class="brush: plain; title: ;">Options -Indexes</pre>
<p>Allow directory index, remove the that code or change</p>
<pre class="brush: plain; title: ;">Options +Indexes</pre>
<p>If you want to list files in directory, but except some of filetypes. Example this code is ignoring zip and rar files.</p>
<pre class="brush: plain; title: ;">IndexIgnore *.zip *.rar</pre>
<p> <span>You can disable directory indexing with indexignore too</span></p>
<p><span>
<pre class="brush: plain; title: ;">IndexIgnore *</pre>
<p> <span>Another way is changing the directory index file</span></p>
<p></span><span>
<pre class="brush: plain; title: ;">DirectoryIndex this_my_index_file.html</pre>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FeedBurner HtAccess Redirect for WordPress Feeds</title>
		<link>http://www.webmastersucks.com/feedburner-htaccess-redirect-for-wordpress-feeds/</link>
		<comments>http://www.webmastersucks.com/feedburner-htaccess-redirect-for-wordpress-feeds/#comments</comments>
		<pubDate>Fri, 29 May 2009 07:47:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=9</guid>
		<description><![CDATA[
			
				
			
		
Firstly, we burn our wordpress feeds to FeedBurner. You can burn in www.feedburner.com , we get a feedburner link like &#8220;http://feeds2.feedburner.com/WebmasterSucks&#8220;. I also burned comments feed. We redirect our WordPress feed to FeedBurner. Its help us to track our feed and add adsense code to our feeds.
&#60;IfModule mod_rewrite.c&#62;
 RewriteEngine on
 RewriteCond %{REQUEST_URI}      ^/?(feed.*&#124;comments.*)        [NC]
 RewriteCond %{HTTP_USER_AGENT} !^.*(feedburner&#124;feedvalidator) [NC]
 RewriteRule [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Ffeedburner-htaccess-redirect-for-wordpress-feeds%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Ffeedburner-htaccess-redirect-for-wordpress-feeds%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Firstly, we burn our wordpress feeds to FeedBurner. You can burn in <a href="http://www.feedburner.com">www.feedburner.com</a> , we get a feedburner link like &#8220;<a href="http://feeds2.feedburner.com/WebmasterSucks">http://feeds2.feedburner.com/WebmasterSucks</a>&#8220;. I also burned comments feed. We redirect our WordPress feed to FeedBurner. Its help us to track our feed and add adsense code to our feeds.</p>
<blockquote><p>&lt;IfModule mod_rewrite.c&gt;<br />
 RewriteEngine on<br />
 RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC]<br />
 RewriteCond %{HTTP_USER_AGENT} !^.*(feedburner|feedvalidator) [NC]<br />
 RewriteRule ^feed/?.*$ <a href="http://feeds2.feedburner.com/WebmasterSucks">http://feeds2.feedburner.com/WebmasterSucks</a>         [L,NC,R=302]<br />
 RewriteRule ^comments/?.*$ <a href="http://feeds2.feedburner.com/WebmasterSucksComments">http://feeds2.feedburner.com/WebmasterSucksComments</a> [L,NC,R=302]<br />
&lt;/IfModule&gt;</p></blockquote>
<p><strong>For more information : </strong><br />
<a href="http://perishablepress.com/press/2008/10/13/wordpress-feedburner-htaccess-redirect-default-feeds/">http://perishablepress.com/press/2008/10/13/wordpress-feedburner-htaccess-redirect-default-feeds/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/feedburner-htaccess-redirect-for-wordpress-feeds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

