wordpress - Change .htaccess to forbid spam links -
my site got hacked , bunch of links in spammer-created /up
sub-directory getting lot of hits.
i have cleared out mess (a .htaccess
rewrite , wp-stat.php
file, , ignore/forbid requests /up
directory.
currently have simple wordpress created .htaccess, can't find way of trapping requests /up
before rewrite rules take on , give 404 page wordpress theme.
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule>
you can replace current code one
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_uri} ^/up(/.*|$) [nc] rewriterule ^ - [f] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^ index.php [l] </ifmodule>
this forbid /up
urls
Comments
Post a Comment