Skip to content

Commit dffe007

Browse files
committed
Add SEO enhancements: configure noindex settings, update meta tags, and create robots.txt
1 parent 9fc5a31 commit dffe007

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
lines changed

.htaccess

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Prevent directory browsing
2+
Options -Indexes
3+
4+
# Prevent scraping
5+
Header set X-Robots-Tag "noindex, nofollow"
6+
7+
# Prevent framing
8+
Header always append X-Frame-Options DENY
9+
Header set X-Content-Type-Options "nosniff"
10+
11+
# Block bad bots
12+
RewriteEngine On
13+
RewriteCond %{HTTP_USER_AGENT} ^.*bot.*$ [NC,OR]
14+
RewriteCond %{HTTP_USER_AGENT} ^.*spider.*$ [NC,OR]
15+
RewriteCond %{HTTP_USER_AGENT} ^.*crawler.*$ [NC]
16+
RewriteRule ^(.*)$ - [F,L]

_config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ markdown: kramdown
99
plugins:
1010
- jekyll-seo-tag
1111

12+
# SEO settings
13+
kramdown:
14+
syntax_highlighter_opts:
15+
disable: true
16+
17+
defaults:
18+
- scope:
19+
path: "" # all files
20+
values:
21+
sitemap: false
22+
noindex: true
23+
1224
# Exclude files
1325
exclude:
1426
- .sass-cache/

_layouts/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="robots" content="noindex, nofollow" />
7+
<meta name="googlebot" content="noindex, nofollow" />
8+
<meta http-equiv="X-Frame-Options" content="DENY" />
9+
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
610
<title>
711
{{ site.title }}{% if page.title != "Home" %} - {{ page.title }}{% endif
812
%}

index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ <h2 class="text-2xl md:text-3xl lg:text-4xl font-bold">
115115
class="text-gray-700 text-base md:text-lg leading-relaxed max-w-2xl mx-auto"
116116
>
117117
🌱 Learning LLM's use case for making videos, music, sounds, art,
118-
and so much more. 👯 Searching collaborate on Web, Apps, Design, and
119-
Project Launching. 🤔 Searching for help with networking with
120-
freelancer, enthusiasts, creatives, and creators. 💬 Let's Talk!
121-
Technology, collaboration, or business opportunities in the San
122-
Diego Region. 📫 Reach me: Email: WebDev.Josue@gmail.com ⚡ Fun
123-
fact: Chihuahuas are the Strongest Dogs in the World. :)
118+
and so much more.<br />
119+
👯 Searching to collaborate on Web, Apps, Design, and Project
120+
Launching.<br />
121+
🤔 Searching for help with networking with freelancers, enthusiasts,
122+
creatives, and creators.<br />
123+
💬 Let's Talk! Technology, collaboration, or business opportunities
124+
online!<br />
125+
📫 Click Contact Me to reach out by E-Mail.<br />
126+
⚡ Fun fact: Chihuahuas are the Strongest Dogs in the World. :)<br />
124127
</p>
125128
</div>
126129
</section>

robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
User-agent: *
3+
Disallow: /

0 commit comments

Comments
 (0)