If you’re looking for ways to boost WordPress security, then one area that you should consider is by blocking people from being able to browse your directory files. Here’s how to disable directory browsing in WordPress using .htaccess?
Why Disabling Directory Browsing is Good for Security
Stop and consider this for a moment:
Let’s say that you have one of those cabinets made for keeping your personal and private files you wish to keep in a safest place. Now, even though you likely don’t have those under lock and keys, it’s pretty much a given that people should stay out of that cabinet unless they get the go-ahead from you.
Now imagine that you find someone going through those files without your permission. Wouldn’t you be annoyed and cautious of that person’s intentions?
Most of us would. And my guess would be that you would probably start locking that cabinet up from that point on.
Well, this somewhat illustrates the importance of your directory files on your WordPress websites.
Those files are important and you would think that people would have the civility to keep their nose out of things that don’t belong to them, but history paints another sad reality. Truth is that your site’s directory files are on display for anyone in the world to find if they know where to look, and they’re easy to find.
You can easily access WordPress site’s directory files by entering /wp-includes/ at the end of your base URL.
Read More : How to Make Video Autoplay on Shopify?
If you do this to your own site and you find a similar picture to the one mentioned below, then your directory files are accessible to anyone and everyone who wants to take a peek.
That’s a bit frightening when you consider that these files contain sensitive information. It can give access to the hackers finding a way to sneak in and tamper or virtually set your site ablaze. Thus, keeping a WordPress backup of your website is also necessary to prevent and reinstate the files if something went wrong.
Want to prevent that from happening? Then there is a simple fix to put your files under lock and key.
Disable Directory Browsing in Your WordPress Site
Now, you’re going to want to access the .htaccess file of your site. You can do these one of two ways:
- Using an FTP client like FileZilla
- Through your File Manager in your host’s cPanel
For this WordPress tutorial, I’m going to explain how to do this through your CPanel.
Next, go down to the Files section and click on File Manager. Once you click there, you’ll have a box pop up asking when files you wish to look at (the files in a certain URL).
Select the Web Root directory option, select your domain and then make sure to check the box that says Show Hidden Files.
You will see listing with all the files within that certain domain. Scroll through the files that appear and look for the .htaccess file.
Before you open the file, download it and keep it somewhere safe. Next, click on the file and then go to the top of the screen that says View to that you can view the file. There you should find a few lines of code including the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now take the following code:
Options All -Indexes
Your code will be look like the following code snippet.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Options All -Indexes
Save your changes and you have no locked down your directory from prying eyes. You can double check this by going to your site and adding /wp-includes/ to your URL again.
If you’ve done this correctly, you will get a 404 Error or Permission Error which means that your efforts have been successful!
Conclusion
Even though this isn’t a necessary step, it’s probably a step you should be taking anyway. Your files are important and should be kept private.
It will take a few minutes to do this, but it’s better to keep things safe.
Apoiar ferramentas de apostas e estar equipado com uma plataforma diversificada de transações financeiras, a 20Bet oferece suporte tangível aos jogadores. Este é um lugar onde eles podem apostar com dinheiro real, respaldados por concorrentes de diversas disciplinas esportivas. 20bet
allergy pills for adults best cold medicine without antihistamine exact allergy pills
levitra online pharmacy in usa L Sniffer patch with Best1 shRNA expressing astrocyte
prescription sleep meds for elderly melatonin 3 mg brand
prednisone over the counter prednisone 5mg over the counter
stomach cramps quick medicine purchase allopurinol for sale
nausea medication near me most effective proton pump inhibitor
order absorica generic how to buy accutane accutane 20mg brand
where to buy sleeping pill cheap melatonin
I think that is among the so much significant info for me. And i’m glad reading your article. But wanna statement on some normal issues, The site style is perfect, the articles is in point of fact nice : D. Excellent process, cheers
amoxil 250mg us cheap amoxil 250mg buy amoxil paypal
prescription sleeping pills online sleeping tablets without a prescription
buy zithromax generic buy azithromycin 500mg generic buy zithromax 250mg generic
neurontin 600mg pills order gabapentin 600mg sale
purchase azithromycin online where can i buy azithromycin buy azipro 500mg
buy furosemide diuretic buy lasix 40mg
prednisolone 20mg oral buy omnacortil generic buy generic omnacortil for sale
amoxil 1000mg oral order amoxicillin 1000mg buy amoxil generic
purchase doxycycline pills doxycycline where to buy
Наша команда искусных специалистов готова предъявить вам передовые методы, которые не только гарантируют долговечную безопасность от заморозков, но и дарят вашему собственности стильный вид.
Мы функционируем с новейшими средствами, ассигнуруя долгий время использования и замечательные результирующие показатели. Утепление фронтонов – это не только сбережение на подогреве, но и трепет о окружающей среде. Спасательные технические средства, какие мы производим, способствуют не только зданию, но и сохранению природных ресурсов.
Самое важное: [url=https://ppu-prof.ru/]Утепление стен дома снаружи цена[/url] у нас стартует всего от 1250 рублей за метр квадратный! Это бюджетное решение, которое превратит ваш дом в подлинный приятный уголок с минимальными издержками.
Наши пособия – это не всего лишь изолирование, это создание помещения, в где всякий элемент отражает ваш свой манеру. Мы примем во внимание все ваши пожелания, чтобы воплотить ваш дом еще еще более гостеприимным и привлекательным.
Подробнее на [url=https://ppu-prof.ru/]www.ppu-prof.ru[/url]
Не откладывайте дела о своем квартире на потом! Обращайтесь к экспертам, и мы сделаем ваш помещение не только более теплым, но и модернизированным. Заинтересовались? Подробнее о наших работах вы можете узнать на веб-ресурсе. Добро пожаловать в пределы комфорта и качества.
albuterol inhalator generic ventolin inhalator generic buy albuterol
order augmentin 375mg pill cheap augmentin 625mg
synthroid oral brand levothyroxine levothyroxine brand
buy generic vardenafil for sale order levitra 10mg for sale
order clomiphene 50mg sale buy clomiphene generic buy clomid 50mg generic
rybelsus 14 mg cheap buy semaglutide generic semaglutide 14 mg generic
buy generic deltasone 20mg buy deltasone 5mg pill buy prednisone 40mg pills
rybelsus cost buy rybelsus no prescription buy semaglutide 14 mg
accutane 10mg cost buy accutane 20mg accutane 10mg over the counter
buy albuterol inhalator for sale ventolin inhalator tablet albuterol 4mg for sale
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.com/pt-BR/join?ref=UM6SMJM3
purchase amoxil for sale amoxil for sale online amoxil 250mg over the counter
Data concerning the type of cancer and the nature of the comorbidities were also collected cheap cialis from india
brand clavulanate cheap amoxiclav augmentin 1000mg tablet
order azithromycin 250mg online cheap buy azithromycin 500mg pills order azithromycin 500mg
buy synthroid 100mcg sale order synthroid 100mcg without prescription order levothyroxine online cheap
order omnacortil 40mg online omnacortil 40mg canada prednisolone sale
Você pode usar o software de gerenciamento dos pais para orientar e supervisionar o comportamento dos filhos na Internet. Com a ajuda dos 10 softwares de gerenciamento de pais mais inteligentes a seguir, você pode rastrear o histórico de chamadas de seu filho, histórico de navegação, acesso a conteúdo perigoso, aplicativos que eles instalam etc.
order clomid 50mg serophene medication cost clomiphene
buy gabapentin 800mg buy gabapentin 600mg pills buy neurontin 100mg pills
order generic furosemide 40mg order furosemide 40mg online cheap order furosemide generic
order viagra 100mg for sale sildenafil price sildenafil 100mg generic
MyCellSpy é um aplicativo poderoso para monitoramento remoto em tempo real de telefones Android.
buy doxycycline 100mg sale buy vibra-tabs generic buy doxycycline 100mg pills
buy semaglutide generic buy rybelsus 14mg generic semaglutide ca
online slots for real money roulette wheel online roulette online real money
vardenafil us buy generic levitra over the counter vardenafil 10mg pill
order pregabalin 75mg sale buy pregabalin 150mg without prescription pregabalin 75mg over the counter
order plaquenil 200mg without prescription plaquenil 200mg us hydroxychloroquine 400mg us
zithromax prescribing information
triamcinolone 4mg brand order aristocort 4mg without prescription order aristocort 4mg online cheap
cialis online canada buy tadalafil 5mg pills tadalafil 40mg drug
clarinex order online desloratadine 5mg pills clarinex 5mg uk
Дорогие Гости!
Вводим вам инновационное моду в мире дизайна домашней обстановки – шторы плиссе. Если вы стремитесь к высшему качеству в всей подробности вашего дома, то эти перила окажутся прекрасным паттерном для вас.
Что делает шторы плиссе столькими необычными? Они сочетают в себе в себе выгоду, использование и сущность. Благодаря особенной конструкции, инновационным материалам, шторы плиссе идеально соответствуют для какого бы то ни интерьера, будь то светлица, гнездо, кухонное пространство или офисное поле.
Закажите [url=https://tulpan-pmr.ru]рольшторы плиссе[/url] – совершите уют и красоту в вашем жилище!
Чем понравятся шторы плиссе для вас? Во-первых, их индивидуальный бренд, который присоединяет шарм и изысканность вашему месту. Вы можете отыскивать из разнообразных структур, расцветок и подходов, чтобы выделить отличительность вашего дома.
Кроме того, шторы плиссе предлагают массивный ассортимент эксплуатационных возможностей. Они могут контролировать уровень сияния в месте, защищать от солнечного света, обеспечивать секретность и создавать уютную среду в вашем доме.
Наш ресурс: [url=https://tulpan-pmr.ru]www.tulpan-pmr.ru[/url]
Мы сами поддержим вам выбрать шторы плиссе, которые превосходно гармонизируются с для вашего внутреннего пространства!
order cenforce generic generic cenforce cenforce 100mg pill
loratadine uk claritin online order loratadine for sale online
aralen ca aralen for sale order aralen 250mg generic
metformin long-term side effects
brand priligy 60mg order generic cytotec cytotec uk
ryasmq
how to buy glycomet metformin 1000mg generic metformin 500mg over the counter
buy orlistat without a prescription xenical for sale brand diltiazem 180mg
torsemide furosemide equivalent dose
lisinopril 10mg
flagyl neurotoxicity
what is the lowest dose of zoloft
order norvasc 10mg online amlodipine cheap norvasc order
brand acyclovir 800mg zovirax 800mg price buy zyloprim without a prescription
how do you spell lasix
how long does it take gabapentin to work
zithromax z pak
mylan glucophage
cost lisinopril 5mg buy zestril 2.5mg without prescription order lisinopril 10mg pills
rosuvastatin 10mg cost crestor price cheap ezetimibe 10mg
cephalexin 500mg capsules used for
prilosec without prescription prilosec 20mg pill buy generic omeprazole online
india pharmacy CANADIAN Pharmacy Online to Usa
canadian pharmacies generic drugs online [url=http://canadianphrmacy23.com/]Find Out More[/url]
buy cheap domperidone order domperidone 10mg online tetracycline 250mg us
gabapentin withdrawal
can amoxicillin raise blood pressure
escitalopram liver
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/sv/register?ref=T7KCZASX
buy metoprolol 50mg buy lopressor 100mg sale lopressor 100mg us
purchase flexeril pills buy flexeril sale purchase lioresal
ciprofloxacin for food poisoning
cephalexin for uti
does bactrim cause nausea
buy atenolol 100mg pills order generic tenormin 50mg buy atenolol 50mg sale
ketorolac canada gloperba us order colchicine 0.5mg generic
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/ru/register-person?ref=B4EPR6J0
order depo-medrol online cheap purchase depo-medrol cost of depo-medrol
i need help with my essay practice essay writing online affordable term papers
buy inderal pills purchase inderal online cheap order clopidogrel 150mg pill
bactrim for impetigo
cephalexin and metformin
methotrexate 10mg over the counter buy coumadin 5mg online cheap coumadin 2mg cost
Usually I do not read article on blogs however I would like to say that this writeup very compelled me to take a look at and do so Your writing taste has been amazed me Thanks quite nice post
order meloxicam 7.5mg online cheap cost celebrex order celebrex sale
amoxicillin dose
purchase maxolon online cheap oral hyzaar buy losartan generic
flomax 0.4mg sale celecoxib price celecoxib pills
buy gabapentin online
escitalopram shortage
esomeprazole over the counter buy nexium 20mg online cheap topamax 200mg canada
zofran uk buy ondansetron 8mg for sale spironolactone 25mg drug
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
imitrex 25mg for sale buy levaquin paypal buy levaquin sale
simvastatin 20mg usa zocor 20mg pill how to get valtrex without a prescription
when is the best time to take citalopram
buy avodart 0.5mg online order generic ranitidine 150mg cost zantac 300mg
depakote dosing for bipolar
ddavp for children
side effects of cozaar blood pressure medication
buy propecia online cheap brand diflucan 100mg order forcan online cheap
ampicillin oral order monodox sale amoxil usa
buy cipro – amoxiclav pills buy augmentin 1000mg generic
buy ciprofloxacin paypal – ciprofloxacin 1000mg cost buy generic augmentin online
lowest effective dose of citalopram
is depakote a narcotic
how long before cozaar kicks in?
ddavp for factor 8
flagyl 400mg brand – flagyl 200mg canada azithromycin pill
ciplox 500 mg generic – purchase tinidazole pill buy cheap erythromycin
diclofenac na 50mg ec tab
ezetimibe side effects cancer
augmentin 875-125 mg
cheap valtrex 1000mg – buy generic mebendazole 100mg purchase acyclovir online cheap
diltiazem dose for afib
stromectol 2mg – cefuroxime medication order sumycin 500mg online
how long does it take flexeril to work
effexor for headaches
is flomax a sulfa drug
flagyl 400mg without prescription – metronidazole us azithromycin 500mg over the counter
contravention 4 ou 5 classe
ampicillin medication amoxil ca buy amoxicillin without a prescription
how long does it take allopurinol to work
aripiprazole para que sirve
order lasix 40mg online – lasix 100mg usa capoten where to buy
can you give dogs aspirin
low dose amitriptyline
Мы компания специалистов по поисковой оптимизации, занимающихся увеличением трафика и улучшением рейтинга вашего сайта в поисковых системах.
Мы преуспели в своей деятельности и предлагаем вам воспользоваться нашим опытом и знаниями.
Какие преимущества вы получите:
• [url=https://seo-prodvizhenie-ulyanovsk1.ru/]раскрутка seo сколько стоит[/url]
• Анализ всех аспектов вашего сайта и разработка уникальной стратегии продвижения.
• Оптимизация контента и технических параметров вашего сайта для лучших результатов.
• Ежемесячный мониторинг и анализ данных для постоянного совершенствования вашего онлайн-присутствия.
Подробнее [url=https://seo-prodvizhenie-ulyanovsk1.ru/]https://seo-prodvizhenie-ulyanovsk1.ru/[/url]
Уже много клиентов оценили результаты: увеличение посещаемости, улучшение позиций в поисковых запросах и, конечно же, рост своего бизнеса. Мы готовы предоставить вам бесплатную консультацию, для обсуждения ваших требований и разработки стратегии продвижения, соответствующей вашим целям и бюджету.
Не упустите возможность увеличить прибыль вашего бизнеса в онлайн-мире. Обращайтесь к нам уже сегодня.
q89zhs
buy glycomet generic – glucophage 1000mg sale lincomycin 500 mg sale
celebrex drug interactions
baclofen and xanax
order zidovudine 300mg generic – buy lamivudine 100 mg without prescription brand zyloprim 300mg
what is in augmentin
can you stop taking bupropion suddenly
buy cheap generic clozapine – order frumil 5 mg online cheap pepcid 40mg usa
gaia herbs ashwagandha root
is celecoxib a painkiller?
wellbutrin vs celexa
buspirone 7.5 mg
buy quetiapine 100mg pill – order eskalith generic purchase eskalith without prescription
order anafranil 50mg generic – cheap paxil doxepin 25mg for sale
hydroxyzine 10mg price – oral fluoxetine 40mg endep generic
amoxil generic – cefuroxime canada cipro 500mg cheap
buy generic clavulanate – augmentin 375mg tablet baycip tablet
actos tolerantes
keeping weight off after semaglutide
acarbose suppliers
abilify for ocd
remeron dosages
what are the side effects of robaxin
protonix side effects weight gain
biotransformation of repaglinide
cleocin 300mg cheap – cheap chloramphenicol generic buy chloramphenicol without prescription
zithromax 500mg cheap – how to get flagyl without a prescription buy ciplox 500 mg generic
hello!,I like your writing very much! share we communicate more about your post on AOL? I need an expert on this area to solve my problem. May be that’s you! Looking forward to see you.
Somebody essentially help to make seriously articles I would state. This is the first time I frequented your website page and thus far? I surprised with the research you made to make this particular publish amazing. Fantastic job!
stromectol for sale – eryc cheap order cefaclor pill
purchase ventolin generic – buy generic seroflo over the counter generic theo-24 Cr 400mg
You made some first rate factors there. I looked on the internet for the problem and located most people will go along with with your website.
remeron common side effects
snort synthroid
getting off spironolactone
Thank you for sharing excellent informations. Your web-site is very cool. I am impressed by the details that you have on this blog. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found simply the information I already searched everywhere and just could not come across. What a great web-site.
I’ve been surfing online more than 3 hours as of late, but I never found any fascinating article like yours. It’s lovely value enough for me. Personally, if all website owners and bloggers made good content as you probably did, the net can be a lot more helpful than ever before. “A winner never whines.” by Paul Brown.
desloratadine order online – ketotifen 1mg generic purchase albuterol without prescription
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
rybelsus vs sitagliptin
Generally I do not read post on blogs, but I would like to say that this write-up very forced me to try and do so! Your writing style has been surprised me. Thanks, very nice post.
buy methylprednisolone 4mg – depo-medrol online buy buy astelin online
I have recently started a blog, the information you offer on this website has helped me tremendously. Thanks for all of your time & work.
synthroid tests
order glyburide 2.5mg generic – buy pioglitazone 15mg pills dapagliflozin without prescription
tamsulosin vs uroxatral
what are the pros and cons of venlafaxine?
tizanidine other names
voltaren usage instruction pdf
Wonderful blog you have here but I was curious about if you knew of any message boards that cover the same topics talked about here? I’d really love to be a part of group where I can get suggestions from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Bless you!