Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:11:47+00:00 2026-06-18T06:11:47+00:00

I am developing a new website for our company, so I have put the

  • 0

I am developing a new website for our company, so I have put the site on to the internet, but restricted access through .htaccess to certain IP addresses.

However, part of the new site is a ‘Share on Facebook’ button, so I need to test that, but Facebook is unable to connect to my site, and this is not grabbing the OpenGraph titles, descriptions, images, etc.

I’ve added allow from facebook.com to .htaccess, but this doesn’t work, and the Facebook linter reports a 403 when trying to connect. Temporaraly removing the access restrictions to the site allows the Facebook linter to connect.

Here is my full .htaccess file (minus real IP addresses) –

ErrorDocument 404 /index.php?error=404

# 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

# Only allow access to the site from the IP's listed below
#order deny,allow
allow from 1.2.3.1 # sh_adsl
allow from 1.2.3.2 #sh_lease_lines
allow from 1.3.1.1 # sh
allow from 1.2.2.1 # sm
allow from 1.2.3.1 # wi
allow from 1.2.4.1 # fr
allow from 4.3.2.1 # dgard -  home local range
allow from facebook.com # to allow the Facebook sharing
#allow from all
deny from all

# Block access to wp-config.php
<Files wp-config.php>
    order allow,deny
    deny from all
</Files>

# Deny directory browsing
Options All -Indexes

# Prevent access to any file that begins with '.hta' (i.e. protect this file!)
<Files ~ "^.*\.([Hh][Tt][Aa])">
    order allow,deny
    deny from all
    satisfy all
</Files>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:11:48+00:00Added an answer on June 18, 2026 at 6:11 am

    List of FB crawlers IPs: https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper

    Add them to your .htaccess and you should be good to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing requirements for a new website design for my company. I have
I am currently developing a new website and have problems with IE7. First image
I have been developing a nodejs server to provide server-side-events for a new website
I'm developing a new Joomla 2.5 website and I have to implement a fade
I'm currently developing a new website powered by Play! framework 2.0 and I have
I am in the middle of developing a new website with my existing site
I just started developing a new website and I have some questions. You can
I'm developing a new website in kohana2.3.4. I have created a folder called admin
I'm developing a new website . Testing out the page in different browsers, I
I'm developing a new website (ASP.Net, VB codebehind pages, .Net 3.5) to replace a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.