.htaccess

Secure Your WordPress, Playing With Your .htaccess File.

In this article we will learn how to secure our wordpress blog using some .htaccess technique. Of course there is no system perfect in this world. Everything should have bug, no matter it’s high or low risk. When last time you have seen blog with wordpress got hacked? Well, This happen to me 3 times on one of my crazyp**n blog. The hackers always controlling my admin panel and it’s happen 3 times until I playing with my new toys to stop this guy. What is .htaccess? In several web servers (most commonly Apache), .htaccess (hypertext access) is the default… Read More »Secure Your WordPress, Playing With Your .htaccess File.

Playing with .htaccess file

Crazy! I think all of my site has been targeted to get spammed by someone or maybe group.. Last 2 days ago I give notification in some of my site tell them to stop spamming or I will banned them. Mostly they are spamming for V****a, x**, p**n, rubbish stuff, etc. Seems like spam business make a lot money for them… eh?

Looks like they was thinking I’m joke? hell no I’m not joke this time *bad temperament lol* I banned all they IP from accessing my website. I don’t care about traffic may decrease for a weeks this stupid guys group must be stopped!

I searching the way to do it and i found it lately to play with simple .htaccess file to stop this noob from spamming..

blocking their IP using this sample code:

## USER IP BANNING
<Limit GET POST>
order allow,deny
deny from 123.123.123.123
deny from 123.123.123.
deny from 123.123.
deny from 123.
allow from all
</Limit>

Read the rules:

123.123.123.123 (Blocks a specific IP address)
123.123.123. (Blocks ALL IPs within the range 123.123.123.xxx)
123.123. (Blocks ALL IPs within the range 123.123.xxx.xxx)
123. (Blocks ALL IPs within the range 123.xxx.xxx.xxx)

I recommended you to blocks specific IP adress to minimize your lost traffic.

Now for disable hotlinking from bandwith stealer use this sample code:

Read More »Playing with .htaccess file

RELATED SEARCH TERMS:

Stop bandwith thief using rewrite rules on .htaccess file

Annoyed! when some people hotlink your files/images and not giving link-back to your site, They run their own ads code using your bandwidth. I think this is not allowed! at least they should giving link-back not just stolen our bandwidth without anything like that. Would you give them some psycho attack? Then you’re on right page keep continue reading on this article.

If you want people back to your site you should make an code to stop hotlink files and give warning message on it… like my very easy sample 😛

hotlink.jpg

I made an warning message in some of my site to stop hotlink, photoshop images are good but I prefer html/flash files with click action script so when people click on it it will redirect to your own site.

Once you make your own warning message time to edit .htaccess files and put this code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?YOURSITE.com [NC]
RewriteRule \.(swf|jpg|gif|etc)$ hotlink.jpg [NC,L]
Read More »Stop bandwith thief using rewrite rules on .htaccess file