Archive for the 'php' Category

how to configure htaccess file

1. Prevent Hotlinking Options +FollowSymlinks #Protect against hotlinking RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc] RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/stop_stealing_bandwidth.gif[nc] 2. Block All Requests From User Agents #Block bad bots SetEnvIfNoCase user-Agent ^FrontPage [NC,OR] SetEnvIfNoCase user-Agent ^Java.* [NC,OR] SetEnvIfNoCase user-Agent ^Microsoft.URL [NC,OR] SetEnvIfNoCase user-Agent ^MSFrontPage [NC,OR] SetEnvIfNoCase user-Agent ^Offline.Explorer [NC,OR] SetEnvIfNoCase user-Agent ^[Ww]eb[Bb]andit [NC,OR] SetEnvIfNoCase [...]

how to send email from localhost using php

how to send email from localhost: if you are not able to send emails from  localhost while using XAMPP or WAMP or any other PHP servers in windows environment then I will suggest you to follow the given steps. 1) Open the “php.ini“. It is located  upon the particular server you’re running. 2) Search for [...]

how to send email after downloaded a file/php code for downloading a file

php code for send email when downloading a file Add Email Notification To Download File Code I have used some free code for listing files for download, and it is useful to send an email to the administrator when the file has been downloaded. step 1.create download link step 2.create send mail after download a [...]